mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r859] Changes since 19981030
---------------------- ./MANIFEST Added new Pablo files HDF5record_RT.h and ProcIDs.h ./acconfig.h ./configure [REGENERATED] ./configure.in ./src/H5.c ./src/H5Vprivate.h ./src/H5config.h.in [REGENERATED] ./src/H5private.h ./src/H5public.h ./test/big.c Added more configuration stuff for the Win32 environment. Removed all the #ifdef WIN32 from the source and replaced them with OS-independent stuff. Specifics follow: Check for non-Posix.1 `st_blocks' field in `struct stat' which is used by the big file test to decide if the file system supports holes. If the st_blocks field isn't present then we just skip the test. Configure checks for <io.h> <sys/resource.h> <sys/time.h> and <winsock.h> and defines HAVE_IO_H, HAVE_SYS_RESOURCE_H, HAVE_SYS_TIME_H and HAVE_WINSOCK_H when they're found. Configure checks whether both <sys/time.h> and <time.h> can be included and defines SYS_TIME_WITH_TIME if so. Otherwise include only <sys/time.h> or <time.h> even if both exist. Configure checks sizeof(__int64) and defines SIZEOF___INT64 to the result or to zero if __int64 isn't defined. The source uses `long long' in preference to `__int64'. Removed null WIN32 definition for `inline' since such a definition already exists in H5config.h Protected gettimeofday() calls in debugging code with HAVE_GETTIMEOFDAY instead of WIN32. ./src/H5F.c ./src/H5Flow.c ./src/H5Fmpio.c ./src/H5Fsec2.c ./src/H5Fstdio.h ./src/H5P.c ./src/H5Tconv.c ./src/H5private.h Removed #include of system files from library source files and consolodated them into H5private.h where they're protected by various configuration macros (most of them were duplicated there already anyway). ./test/big.c ./test/chunk.c ./test/cmpd_dset.c ./test/dsets.c ./test/dtypes.c ./test/extend.c ./test/external.c ./test/fillval.c ./test/flush1.c ./test/flush2.c ./test/iopipe.c ./test/links.c ./test/mount.c ./test/mtime.c ./test/overhead.c ./test/ragged.c ./test/shtype.c ./test/unlink.c Protected system #include's with #ifdef's from H5config.h. Undefined NDEBUG since some of the tests rely on assert() to check return values. Removed WIN32 definitions for __unused__ since this can be controlled by the definition of HAVE_ATTRIBUTE in H5config.h ./test/testhdf5.h Removed the CLEAN_CMD definition because we no longer use it. Albert's cleanup() functions replaced it. ./test/fillval.c Initialized auto hid_t variables to fix warnings in error recovery code when data flow analysis is turned on in compilers. ./test/h5tools.c Initialized an auto variable to fix a compiler warning. ./test/chunk.c ./test/ragged.c The WIN32 had some unsigned variables changed to signed because the compiler generates warnings when coercing unsigned to double(?). I changed them back to unsigned because they really are unsigned quantities. If this the change was just to shut up extraneous warnings then perhaps a compiler flag can do the same; otherwise if the compiler generates bad code then we should supply a patch file instead messing up source code with bug work-arounds. ./src/H5detect.c Protected system #include's with #ifdef's from H5config.h thereby removing a WIN32. If getpwuid() doesn't exist (HAVE_GETPWUID) then we assume that `struct passwd' doesn't exist either (we don't really need it in that case). The H5T_NATIVE_LLONG and H5T_NATIVE_ULLONG are defined in terms of `long long' or else `__int64' or else `long' depending on what's available. ./src/H5Flow.c ./src/H5Ofill.c Added __unused__ to some function arguments that aren't used when assertions are turned off. ./src/H5V.c Changed an auto variable name in some hand-inlined code to get rid of a warning about the variable shadowing a previous auto.
This commit is contained in:
parent
a125ee351b
commit
254ae8d43d
2
MANIFEST
2
MANIFEST
@ -188,11 +188,13 @@
|
||||
./examples/h5_select.c
|
||||
./examples/h5_attribute.c
|
||||
|
||||
./pablo/HDF5record_RT.h
|
||||
./pablo/HDFentries.txt
|
||||
./pablo/Makefile.in
|
||||
./pablo/PabloHDF.c
|
||||
./pablo/PabloHDF_RT.c
|
||||
./pablo/PabloHDF_SDDF.c
|
||||
./pablo/ProcIDs.h
|
||||
|
||||
./src/.distdep
|
||||
./src/.indent.pro _DO_NOT_DISTRIBUTE_
|
||||
|
2
README
2
README
@ -1,4 +1,4 @@
|
||||
This is hdf5-1.1.5 released on Mon Nov 2 04:20:02 CST 1998
|
||||
This is hdf5-1.1.20 released on Mon Nov 2 12:13:25 CST 1998
|
||||
Please refer to the INSTALL file for installation instructions.
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
/* Define if it's safe to use `long long' for hsize_t and hssize_t */
|
||||
#undef HAVE_LARGE_HSIZET
|
||||
|
||||
/* The width parameter for printf formats for type `long long', us. `ll' */
|
||||
/* Width for printf() for type `long long' or `__int64', us. `ll' */
|
||||
#undef PRINTF_LL_WIDTH
|
||||
|
||||
/* Define if `tm_gmtoff' is a member of `struct tm' */
|
||||
@ -21,3 +21,6 @@
|
||||
|
||||
/* Define if `struct timezone' is defined */
|
||||
#undef HAVE_STRUCT_TIMEZONE
|
||||
|
||||
/* Define if `struct stat' has the `st_blocks' field */
|
||||
#undef HAVE_STAT_ST_BLOCKS
|
||||
|
291
configure
vendored
291
configure
vendored
@ -1298,21 +1298,56 @@ EOF
|
||||
|
||||
fi
|
||||
|
||||
for ac_hdr in unistd.h zlib.h
|
||||
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
||||
echo "configure:1303: checking whether time.h and sys/time.h may both be included" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1308 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
int main() {
|
||||
struct tm *tp;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time=yes
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time=no
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_header_time" 1>&6
|
||||
if test $ac_cv_header_time = yes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
for ac_hdr in io.h sys/resource.h sys/time.h unistd.h winsock.h zlib.h
|
||||
do
|
||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
echo "configure:1306: checking for $ac_hdr" >&5
|
||||
echo "configure:1341: checking for $ac_hdr" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1311 "configure"
|
||||
#line 1346 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
@ -1341,12 +1376,12 @@ done
|
||||
|
||||
|
||||
echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
||||
echo "configure:1345: checking for off_t" >&5
|
||||
echo "configure:1380: checking for off_t" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1350 "configure"
|
||||
#line 1385 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#if STDC_HEADERS
|
||||
@ -1374,12 +1409,12 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
||||
echo "configure:1378: checking for size_t" >&5
|
||||
echo "configure:1413: checking for size_t" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1383 "configure"
|
||||
#line 1418 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#if STDC_HEADERS
|
||||
@ -1407,14 +1442,14 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
||||
echo "configure:1411: checking whether byte ordering is bigendian" >&5
|
||||
echo "configure:1446: checking whether byte ordering is bigendian" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_cv_c_bigendian=unknown
|
||||
# See if sys/param.h defines the BYTE_ORDER macro.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1418 "configure"
|
||||
#line 1453 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -1425,11 +1460,11 @@ int main() {
|
||||
#endif
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
# It does; now see whether it defined to BIG_ENDIAN or not.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1433 "configure"
|
||||
#line 1468 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -1440,7 +1475,7 @@ int main() {
|
||||
#endif
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_c_bigendian=yes
|
||||
else
|
||||
@ -1460,7 +1495,7 @@ if test "$cross_compiling" = yes; then
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1464 "configure"
|
||||
#line 1499 "configure"
|
||||
#include "confdefs.h"
|
||||
main () {
|
||||
/* Are we little or big endian? From Harbison&Steele. */
|
||||
@ -1473,7 +1508,7 @@ main () {
|
||||
exit (u.c[sizeof (long) - 1] == 1);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_c_bigendian=no
|
||||
else
|
||||
@ -1497,7 +1532,7 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking size of short""... $ac_c" 1>&6
|
||||
echo "configure:1501: checking size of short" >&5
|
||||
echo "configure:1536: checking size of short" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1505,7 +1540,7 @@ else
|
||||
ac_cv_sizeof_short=2
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1509 "configure"
|
||||
#line 1544 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1516,7 +1551,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_short=`cat conftestval`
|
||||
else
|
||||
@ -1536,7 +1571,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of int""... $ac_c" 1>&6
|
||||
echo "configure:1540: checking size of int" >&5
|
||||
echo "configure:1575: checking size of int" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1544,7 +1579,7 @@ else
|
||||
ac_cv_sizeof_int=4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1548 "configure"
|
||||
#line 1583 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1555,7 +1590,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_int=`cat conftestval`
|
||||
else
|
||||
@ -1575,7 +1610,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of long""... $ac_c" 1>&6
|
||||
echo "configure:1579: checking size of long" >&5
|
||||
echo "configure:1614: checking size of long" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1583,7 +1618,7 @@ else
|
||||
ac_cv_sizeof_long=4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1587 "configure"
|
||||
#line 1622 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1594,7 +1629,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_long=`cat conftestval`
|
||||
else
|
||||
@ -1614,7 +1649,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
||||
echo "configure:1618: checking size of long long" >&5
|
||||
echo "configure:1653: checking size of long long" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1622,7 +1657,7 @@ else
|
||||
ac_cv_sizeof_long_long=8
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1626 "configure"
|
||||
#line 1661 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1633,7 +1668,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_long_long=`cat conftestval`
|
||||
else
|
||||
@ -1652,8 +1687,47 @@ cat >> confdefs.h <<EOF
|
||||
EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of __int64""... $ac_c" 1>&6
|
||||
echo "configure:1692: checking size of __int64" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then
|
||||
ac_cv_sizeof___int64=8
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1700 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
{
|
||||
FILE *f=fopen("conftestval", "w");
|
||||
if (!f) exit(1);
|
||||
fprintf(f, "%d\n", sizeof(__int64));
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof___int64=`cat conftestval`
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -fr conftest*
|
||||
ac_cv_sizeof___int64=0
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
|
||||
fi
|
||||
echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
|
||||
cat >> confdefs.h <<EOF
|
||||
#define SIZEOF___INT64 $ac_cv_sizeof___int64
|
||||
EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of float""... $ac_c" 1>&6
|
||||
echo "configure:1657: checking size of float" >&5
|
||||
echo "configure:1731: checking size of float" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1661,7 +1735,7 @@ else
|
||||
ac_cv_sizeof_float=4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1665 "configure"
|
||||
#line 1739 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1672,7 +1746,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_float=`cat conftestval`
|
||||
else
|
||||
@ -1692,7 +1766,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of double""... $ac_c" 1>&6
|
||||
echo "configure:1696: checking size of double" >&5
|
||||
echo "configure:1770: checking size of double" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1700,7 +1774,7 @@ else
|
||||
ac_cv_sizeof_double=8
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1704 "configure"
|
||||
#line 1778 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1711,7 +1785,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_double=`cat conftestval`
|
||||
else
|
||||
@ -1731,7 +1805,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
||||
echo "configure:1735: checking size of long double" >&5
|
||||
echo "configure:1809: checking size of long double" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1739,7 +1813,7 @@ else
|
||||
ac_cv_sizeof_long_double=8
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1743 "configure"
|
||||
#line 1817 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1750,7 +1824,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_long_double=`cat conftestval`
|
||||
else
|
||||
@ -1770,7 +1844,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking size of size_t""... $ac_c" 1>&6
|
||||
echo "configure:1774: checking size of size_t" >&5
|
||||
echo "configure:1848: checking size of size_t" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1778,7 +1852,7 @@ else
|
||||
ac_cv_sizeof_size_t=4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1782 "configure"
|
||||
#line 1856 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1789,7 +1863,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_size_t=`cat conftestval`
|
||||
else
|
||||
@ -1812,7 +1886,7 @@ cat >>confdefs.h <<\EOF
|
||||
#include <sys/types.h> /*for off_t definition*/
|
||||
EOF
|
||||
echo $ac_n "checking size of off_t""... $ac_c" 1>&6
|
||||
echo "configure:1816: checking size of off_t" >&5
|
||||
echo "configure:1890: checking size of off_t" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -1820,7 +1894,7 @@ else
|
||||
ac_cv_sizeof_off_t=4
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1824 "configure"
|
||||
#line 1898 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
main()
|
||||
@ -1831,7 +1905,7 @@ main()
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_sizeof_off_t=`cat conftestval`
|
||||
else
|
||||
@ -1858,7 +1932,7 @@ if test "${enable_hsizet+set}" = set; then
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for sizeof hsize_t and hssize_t""... $ac_c" 1>&6
|
||||
echo "configure:1862: checking for sizeof hsize_t and hssize_t" >&5
|
||||
echo "configure:1936: checking for sizeof hsize_t and hssize_t" >&5
|
||||
case $HSIZET in
|
||||
no|small)
|
||||
echo "$ac_t""small" 1>&6
|
||||
@ -1874,9 +1948,9 @@ esac
|
||||
|
||||
|
||||
echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
|
||||
echo "configure:1878: checking for tm_gmtoff in struct tm" >&5
|
||||
echo "configure:1952: checking for tm_gmtoff in struct tm" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1880 "configure"
|
||||
#line 1954 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
@ -1885,7 +1959,7 @@ int main() {
|
||||
struct tm tm; tm.tm_gmtoff=0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_TM_GMTOFF 1
|
||||
@ -1901,9 +1975,9 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
|
||||
echo "configure:1905: checking for global timezone variable" >&5
|
||||
echo "configure:1979: checking for global timezone variable" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1907 "configure"
|
||||
#line 1981 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
@ -1912,7 +1986,7 @@ int main() {
|
||||
timezone=0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_TIMEZONE 1
|
||||
@ -1928,12 +2002,12 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
||||
echo "configure:1932: checking whether struct tm is in sys/time.h or time.h" >&5
|
||||
echo "configure:2006: checking whether struct tm is in sys/time.h or time.h" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1937 "configure"
|
||||
#line 2011 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
@ -1941,7 +2015,7 @@ int main() {
|
||||
struct tm *tp; tp->tm_sec;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_struct_tm=time.h
|
||||
else
|
||||
@ -1962,12 +2036,12 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
||||
echo "configure:1966: checking for tm_zone in struct tm" >&5
|
||||
echo "configure:2040: checking for tm_zone in struct tm" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1971 "configure"
|
||||
#line 2045 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <$ac_cv_struct_tm>
|
||||
@ -1975,7 +2049,7 @@ int main() {
|
||||
struct tm tm; tm.tm_zone;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_struct_tm_zone=yes
|
||||
else
|
||||
@ -1995,12 +2069,12 @@ EOF
|
||||
|
||||
else
|
||||
echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
||||
echo "configure:1999: checking for tzname" >&5
|
||||
echo "configure:2073: checking for tzname" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2004 "configure"
|
||||
#line 2078 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <time.h>
|
||||
#ifndef tzname /* For SGI. */
|
||||
@ -2010,7 +2084,7 @@ int main() {
|
||||
atoi(*tzname);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
ac_cv_var_tzname=yes
|
||||
else
|
||||
@ -2032,9 +2106,9 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
|
||||
echo "configure:2036: checking for struct timezone" >&5
|
||||
echo "configure:2110: checking for struct timezone" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2038 "configure"
|
||||
#line 2112 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -2044,7 +2118,7 @@ int main() {
|
||||
struct timezone tz; tz.tz_minuteswest=0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_STRUCT_TIMEZONE 1
|
||||
@ -2059,16 +2133,41 @@ else
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
|
||||
echo "configure:2138: checking for st_blocks in struct stat" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2140 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
int main() {
|
||||
struct stat sb; sb.st_blocks=0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_STAT_ST_BLOCKS 1
|
||||
EOF
|
||||
|
||||
echo "$ac_t""yes" 1>&6
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
for ac_func in getpwuid gethostname system getrusage fork waitpid
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:2067: checking for $ac_func" >&5
|
||||
echo "configure:2166: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2072 "configure"
|
||||
#line 2171 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@ -2091,7 +2190,7 @@ $ac_func();
|
||||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
@ -2118,12 +2217,12 @@ done
|
||||
for ac_func in gettimeofday BSDgettimeofday difftime sigaction
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:2122: checking for $ac_func" >&5
|
||||
echo "configure:2221: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2127 "configure"
|
||||
#line 2226 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@ -2146,7 +2245,7 @@ $ac_func();
|
||||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
@ -2172,24 +2271,24 @@ done
|
||||
|
||||
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2176 "configure"
|
||||
#line 2275 "configure"
|
||||
#include "confdefs.h"
|
||||
#include<sys/types.h>
|
||||
int main() {
|
||||
off64_t n = 0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
for ac_func in lseek64 fseek64
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:2188: checking for $ac_func" >&5
|
||||
echo "configure:2287: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2193 "configure"
|
||||
#line 2292 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
@ -2212,7 +2311,7 @@ $ac_func();
|
||||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
@ -2247,12 +2346,12 @@ rm -f conftest*
|
||||
|
||||
|
||||
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
||||
echo "configure:2251: checking for working const" >&5
|
||||
echo "configure:2350: checking for working const" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2256 "configure"
|
||||
#line 2355 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
@ -2301,7 +2400,7 @@ ccp = (char const *const *) p;
|
||||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_c_const=yes
|
||||
else
|
||||
@ -2322,21 +2421,21 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
||||
echo "configure:2326: checking for inline" >&5
|
||||
echo "configure:2425: checking for inline" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_cv_c_inline=no
|
||||
for ac_kw in inline __inline__ __inline; do
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2333 "configure"
|
||||
#line 2432 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
} $ac_kw foo() {
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_c_inline=$ac_kw; break
|
||||
else
|
||||
@ -2363,16 +2462,16 @@ esac
|
||||
|
||||
|
||||
echo $ac_n "checking for __attribute__ extension""... $ac_c" 1>&6
|
||||
echo "configure:2367: checking for __attribute__ extension" >&5
|
||||
echo "configure:2466: checking for __attribute__ extension" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2369 "configure"
|
||||
#line 2468 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
int __attribute__((unused)) f(void){return 1;}
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_ATTRIBUTE 1
|
||||
@ -2388,16 +2487,16 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
echo $ac_n "checking for __FUNCTION__ extension""... $ac_c" 1>&6
|
||||
echo "configure:2392: checking for __FUNCTION__ extension" >&5
|
||||
echo "configure:2491: checking for __FUNCTION__ extension" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2394 "configure"
|
||||
#line 2493 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
int f(void){return __FUNCTION__;}
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_FUNCTION 1
|
||||
@ -2413,7 +2512,7 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
echo $ac_n "checking how to print long long""... $ac_c" 1>&6
|
||||
echo "configure:2417: checking how to print long long" >&5
|
||||
echo "configure:2516: checking how to print long long" >&5
|
||||
if eval "test \"`echo '$''{'hdf5_cv_printf_ll'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@ -2422,7 +2521,7 @@ else
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2426 "configure"
|
||||
#line 2525 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
@ -2433,7 +2532,7 @@ else
|
||||
sprintf(s,"%${hdf5_cv_printf_ll}d",x);
|
||||
exit (strcmp(s,"1099511627776"));}
|
||||
EOF
|
||||
if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
break
|
||||
else
|
||||
@ -2454,7 +2553,7 @@ EOF
|
||||
|
||||
|
||||
echo $ac_n "checking for debug flags""... $ac_c" 1>&6
|
||||
echo "configure:2458: checking for debug flags" >&5
|
||||
echo "configure:2557: checking for debug flags" >&5
|
||||
# Check whether --enable-debug or --disable-debug was given.
|
||||
if test "${enable_debug+set}" = set; then
|
||||
enableval="$enable_debug"
|
||||
@ -2486,7 +2585,7 @@ if test "X" != "X$DEBUG_PKG"; then
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for API tracing""... $ac_c" 1>&6
|
||||
echo "configure:2490: checking for API tracing" >&5;
|
||||
echo "configure:2589: checking for API tracing" >&5;
|
||||
# Check whether --enable-trace or --disable-trace was given.
|
||||
if test "${enable_trace+set}" = set; then
|
||||
enableval="$enable_trace"
|
||||
@ -2509,7 +2608,7 @@ if test "${enable_parallel+set}" = set; then
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for parallel support""... $ac_c" 1>&6
|
||||
echo "configure:2513: checking for parallel support" >&5;
|
||||
echo "configure:2612: checking for parallel support" >&5;
|
||||
|
||||
|
||||
case "X-$PARALLEL" in
|
||||
@ -2534,7 +2633,7 @@ EOF
|
||||
CFLAGS="$CFLAGS $MPI_LIB"
|
||||
RUNTEST="$RUNTEST"
|
||||
echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6
|
||||
echo "configure:2538: checking for main in -lmpi" >&5
|
||||
echo "configure:2637: checking for main in -lmpi" >&5
|
||||
ac_lib_var=`echo mpi'_'main | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@ -2542,14 +2641,14 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lmpi $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2546 "configure"
|
||||
#line 2645 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
main()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@ -2576,7 +2675,7 @@ else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
echo $ac_n "checking for main in -lmpio""... $ac_c" 1>&6
|
||||
echo "configure:2580: checking for main in -lmpio" >&5
|
||||
echo "configure:2679: checking for main in -lmpio" >&5
|
||||
ac_lib_var=`echo mpio'_'main | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@ -2584,14 +2683,14 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lmpio $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2588 "configure"
|
||||
#line 2687 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
main()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
|
13
configure.in
13
configure.in
@ -133,7 +133,8 @@ dnl ----------------------------------------------------------------------
|
||||
dnl Check for header files.
|
||||
dnl
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(unistd.h zlib.h)
|
||||
AC_HEADER_TIME
|
||||
AC_CHECK_HEADERS(io.h sys/resource.h sys/time.h unistd.h winsock.h zlib.h)
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------
|
||||
@ -146,6 +147,7 @@ AC_CHECK_SIZEOF(short, 2)
|
||||
AC_CHECK_SIZEOF(int, 4)
|
||||
AC_CHECK_SIZEOF(long, 4)
|
||||
AC_CHECK_SIZEOF(long long, 8)
|
||||
AC_CHECK_SIZEOF(__int64, 8)
|
||||
AC_CHECK_SIZEOF(float, 4)
|
||||
AC_CHECK_SIZEOF(double, 8)
|
||||
AC_CHECK_SIZEOF(long double, 8)
|
||||
@ -208,6 +210,15 @@ AC_DEFINE(HAVE_STRUCT_TIMEZONE)
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no))
|
||||
|
||||
dnl ----------------------------------------------------------------------
|
||||
dnl Does the struct stat have the st_blocks field? This field is not Posix.
|
||||
dnl
|
||||
AC_MSG_CHECKING(for st_blocks in struct stat)
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/stat.h>],[struct stat sb; sb.st_blocks=0;],
|
||||
AC_DEFINE(HAVE_STAT_ST_BLOCKS)
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no))
|
||||
|
||||
dnl ----------------------------------------------------------------------
|
||||
dnl Check for functions.
|
||||
|
243
src/.distdep
243
src/.distdep
@ -25,7 +25,10 @@ H5.o: \
|
||||
H5Gprivate.h \
|
||||
H5Gpublic.h \
|
||||
H5Oprivate.h \
|
||||
H5Opublic.h
|
||||
H5Opublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h
|
||||
H5A.o: \
|
||||
H5A.c \
|
||||
H5private.h \
|
||||
@ -56,9 +59,7 @@ H5A.o: \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h \
|
||||
H5Pprivate.h \
|
||||
H5Ppublic.h \
|
||||
H5Apkg.h \
|
||||
H5Aprivate.h
|
||||
H5Ppublic.h
|
||||
H5AC.o: \
|
||||
H5AC.c \
|
||||
H5private.h \
|
||||
@ -69,9 +70,7 @@ H5AC.o: \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Ipublic.h \
|
||||
H5Dpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h
|
||||
H5Dpublic.h
|
||||
H5B.o: \
|
||||
H5B.c \
|
||||
H5private.h \
|
||||
@ -87,9 +86,7 @@ H5B.o: \
|
||||
H5Bpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h \
|
||||
H5MMprivate.h
|
||||
H5MFprivate.h
|
||||
H5D.o: \
|
||||
H5D.c \
|
||||
H5private.h \
|
||||
@ -125,17 +122,13 @@ H5D.o: \
|
||||
H5MFpublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h \
|
||||
H5Pprivate.h \
|
||||
H5Ppublic.h \
|
||||
H5TBprivate.h
|
||||
H5Pprivate.h
|
||||
H5E.o: \
|
||||
H5E.c \
|
||||
H5private.h \
|
||||
H5public.h \
|
||||
H5config.h \
|
||||
H5Iprivate.h \
|
||||
H5Ipublic.h \
|
||||
H5Eprivate.h
|
||||
H5Iprivate.h
|
||||
H5F.o: \
|
||||
H5F.c \
|
||||
H5private.h \
|
||||
@ -166,11 +159,7 @@ H5F.o: \
|
||||
H5ACprivate.h \
|
||||
H5ACpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h \
|
||||
H5Pprivate.h \
|
||||
H5Ppublic.h
|
||||
H5Epublic.h
|
||||
H5Farray.o: \
|
||||
H5Farray.c \
|
||||
H5private.h \
|
||||
@ -196,9 +185,7 @@ H5Farray.o: \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h
|
||||
H5Epublic.h
|
||||
H5Fcore.o: \
|
||||
H5Fcore.c \
|
||||
H5private.h \
|
||||
@ -206,7 +193,10 @@ H5Fcore.o: \
|
||||
H5config.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5Ipublic.h
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h
|
||||
H5Ffamily.o: \
|
||||
H5Ffamily.c \
|
||||
H5private.h \
|
||||
@ -214,7 +204,10 @@ H5Ffamily.o: \
|
||||
H5config.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5Ipublic.h
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h
|
||||
H5Fistore.o: \
|
||||
H5Fistore.c \
|
||||
H5private.h \
|
||||
@ -240,9 +233,7 @@ H5Fistore.o: \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h
|
||||
H5Epublic.h
|
||||
H5Flow.o: \
|
||||
H5Flow.c \
|
||||
H5private.h \
|
||||
@ -253,9 +244,7 @@ H5Flow.o: \
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Dpublic.h
|
||||
H5Fmpio.o: \
|
||||
H5Fmpio.c \
|
||||
H5private.h \
|
||||
@ -281,9 +270,7 @@ H5Fmpio.o: \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Zpublic.h
|
||||
H5Fsec2.o: \
|
||||
H5Fsec2.c \
|
||||
H5private.h \
|
||||
@ -294,9 +281,7 @@ H5Fsec2.o: \
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Dpublic.h
|
||||
H5Fsplit.o: \
|
||||
H5Fsplit.c \
|
||||
H5private.h \
|
||||
@ -307,9 +292,7 @@ H5Fsplit.o: \
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h
|
||||
H5Dpublic.h
|
||||
H5Fstdio.o: \
|
||||
H5Fstdio.c \
|
||||
H5private.h \
|
||||
@ -320,9 +303,7 @@ H5Fstdio.o: \
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Dpublic.h
|
||||
H5G.o: \
|
||||
H5G.c \
|
||||
H5private.h \
|
||||
@ -355,7 +336,10 @@ H5G.o: \
|
||||
H5ACprivate.h \
|
||||
H5ACpublic.h \
|
||||
H5HLprivate.h \
|
||||
H5HLpublic.h
|
||||
H5HLpublic.h \
|
||||
H5Iprivate.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Gent.o: \
|
||||
H5Gent.c \
|
||||
H5private.h \
|
||||
@ -373,7 +357,10 @@ H5Gent.o: \
|
||||
H5Gprivate.h \
|
||||
H5Gpublic.h \
|
||||
H5Bprivate.h \
|
||||
H5Bpublic.h
|
||||
H5Bpublic.h \
|
||||
H5HLprivate.h \
|
||||
H5HLpublic.h \
|
||||
H5MMprivate.h
|
||||
H5Gnode.o: \
|
||||
H5Gnode.c \
|
||||
H5private.h \
|
||||
@ -404,9 +391,7 @@ H5Gnode.o: \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Sprivate.h
|
||||
H5Gstab.o: \
|
||||
H5Gstab.c \
|
||||
H5private.h \
|
||||
@ -435,7 +420,9 @@ H5Gstab.o: \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5HG.o: \
|
||||
H5HG.c \
|
||||
H5private.h \
|
||||
@ -451,9 +438,7 @@ H5HG.o: \
|
||||
H5Epublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h \
|
||||
H5MMprivate.h
|
||||
H5MFprivate.h
|
||||
H5HL.o: \
|
||||
H5HL.c \
|
||||
H5private.h \
|
||||
@ -469,17 +454,13 @@ H5HL.o: \
|
||||
H5Epublic.h \
|
||||
H5HLprivate.h \
|
||||
H5HLpublic.h \
|
||||
H5MFprivate.h \
|
||||
H5MFpublic.h \
|
||||
H5MMprivate.h
|
||||
H5MFprivate.h
|
||||
H5I.o: \
|
||||
H5I.c \
|
||||
H5private.h \
|
||||
H5public.h \
|
||||
H5config.h \
|
||||
H5Iprivate.h \
|
||||
H5Ipublic.h \
|
||||
H5Eprivate.h
|
||||
H5Iprivate.h
|
||||
H5MF.o: \
|
||||
H5MF.c \
|
||||
H5private.h \
|
||||
@ -487,15 +468,16 @@ H5MF.o: \
|
||||
H5config.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5Ipublic.h
|
||||
H5Ipublic.h \
|
||||
H5Fprivate.h \
|
||||
H5Fpublic.h \
|
||||
H5Dpublic.h
|
||||
H5MM.o: \
|
||||
H5MM.c \
|
||||
H5private.h \
|
||||
H5public.h \
|
||||
H5config.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5Ipublic.h
|
||||
H5Eprivate.h
|
||||
H5O.o: \
|
||||
H5O.c \
|
||||
H5private.h \
|
||||
@ -521,9 +503,7 @@ H5O.o: \
|
||||
H5Bpublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h
|
||||
H5Tprivate.h
|
||||
H5Oattr.o: \
|
||||
H5Oattr.c \
|
||||
H5private.h \
|
||||
@ -549,9 +529,7 @@ H5Oattr.o: \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Apkg.h
|
||||
H5Zprivate.h
|
||||
H5Ocomp.o: \
|
||||
H5Ocomp.c \
|
||||
H5private.h \
|
||||
@ -574,7 +552,10 @@ H5Ocomp.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Ocont.o: \
|
||||
H5Ocont.c \
|
||||
H5private.h \
|
||||
@ -597,7 +578,10 @@ H5Ocont.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Odtype.o: \
|
||||
H5Odtype.c \
|
||||
H5private.h \
|
||||
@ -623,9 +607,7 @@ H5Odtype.o: \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Tpkg.h
|
||||
H5Zprivate.h
|
||||
H5Oefl.o: \
|
||||
H5Oefl.c \
|
||||
H5private.h \
|
||||
@ -651,9 +633,7 @@ H5Oefl.o: \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Sprivate.h
|
||||
H5Ofill.o: \
|
||||
H5Ofill.c \
|
||||
H5private.h \
|
||||
@ -676,7 +656,10 @@ H5Ofill.o: \
|
||||
H5Bpublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h
|
||||
H5Olayout.o: \
|
||||
H5Olayout.c \
|
||||
H5private.h \
|
||||
@ -699,7 +682,10 @@ H5Olayout.o: \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h
|
||||
H5Omtime.o: \
|
||||
H5Omtime.c \
|
||||
H5private.h \
|
||||
@ -722,7 +708,10 @@ H5Omtime.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Oname.o: \
|
||||
H5Oname.c \
|
||||
H5private.h \
|
||||
@ -745,7 +734,10 @@ H5Oname.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Onull.o: \
|
||||
H5Onull.c \
|
||||
H5private.h \
|
||||
@ -763,7 +755,10 @@ H5Onull.o: \
|
||||
H5Bpublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h
|
||||
H5Osdspace.o: \
|
||||
H5Osdspace.c \
|
||||
H5private.h \
|
||||
@ -786,7 +781,10 @@ H5Osdspace.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Oshared.o: \
|
||||
H5Oshared.c \
|
||||
H5private.h \
|
||||
@ -809,7 +807,10 @@ H5Oshared.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5Ostab.o: \
|
||||
H5Ostab.c \
|
||||
H5private.h \
|
||||
@ -832,7 +833,10 @@ H5Ostab.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h
|
||||
H5P.o: \
|
||||
H5P.c \
|
||||
H5private.h \
|
||||
@ -858,9 +862,7 @@ H5P.o: \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MMprivate.h
|
||||
H5Eprivate.h
|
||||
H5R.o: \
|
||||
H5R.c \
|
||||
H5private.h \
|
||||
@ -886,9 +888,7 @@ H5R.o: \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5Rprivate.h
|
||||
H5Eprivate.h
|
||||
H5RA.o: \
|
||||
H5RA.c \
|
||||
H5RAprivate.h \
|
||||
@ -916,7 +916,10 @@ H5RA.o: \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h
|
||||
H5Epublic.h \
|
||||
H5Iprivate.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5S.o: \
|
||||
H5S.c \
|
||||
H5private.h \
|
||||
@ -939,7 +942,10 @@ H5S.o: \
|
||||
H5Bpublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h
|
||||
H5Sall.o: \
|
||||
H5Sall.c \
|
||||
H5private.h \
|
||||
@ -962,7 +968,10 @@ H5Sall.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5Tpublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Vprivate.h
|
||||
H5Shyper.o: \
|
||||
H5Shyper.c \
|
||||
H5private.h \
|
||||
@ -988,9 +997,7 @@ H5Shyper.o: \
|
||||
H5Tpublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Vprivate.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5Vprivate.h
|
||||
H5Smpio.o: \
|
||||
H5Smpio.c \
|
||||
H5private.h \
|
||||
@ -1011,9 +1018,7 @@ H5Smpio.o: \
|
||||
H5Oprivate.h \
|
||||
H5Opublic.h \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h
|
||||
H5HGpublic.h
|
||||
H5Spoint.o: \
|
||||
H5Spoint.c \
|
||||
H5private.h \
|
||||
@ -1039,9 +1044,7 @@ H5Spoint.o: \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h \
|
||||
H5Vprivate.h
|
||||
H5Zprivate.h
|
||||
H5Sselect.o: \
|
||||
H5Sselect.c \
|
||||
H5private.h \
|
||||
@ -1067,9 +1070,7 @@ H5Sselect.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h
|
||||
H5Tpublic.h
|
||||
H5T.o: \
|
||||
H5T.c \
|
||||
H5private.h \
|
||||
@ -1097,7 +1098,10 @@ H5T.o: \
|
||||
H5Iprivate.h \
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MMprivate.h
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h \
|
||||
H5Tpkg.h \
|
||||
H5Rprivate.h
|
||||
H5Tbit.o: \
|
||||
H5Tbit.c \
|
||||
H5private.h \
|
||||
@ -1115,7 +1119,10 @@ H5Tbit.o: \
|
||||
H5Dpublic.h \
|
||||
H5Rprivate.h \
|
||||
H5Rpublic.h \
|
||||
H5Tprivate.h
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Gprivate.h \
|
||||
H5Gpublic.h
|
||||
H5Tconv.o: \
|
||||
H5Tconv.c \
|
||||
H5Iprivate.h \
|
||||
@ -1138,9 +1145,7 @@ H5Tconv.o: \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Gprivate.h \
|
||||
H5Gpublic.h \
|
||||
H5Bprivate.h \
|
||||
H5Bpublic.h
|
||||
H5Gpublic.h
|
||||
H5Tinit.o: \
|
||||
H5Tinit.c \
|
||||
H5private.h \
|
||||
@ -1161,9 +1166,7 @@ H5Tinit.o: \
|
||||
H5Rprivate.h \
|
||||
H5Rpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Gprivate.h \
|
||||
H5Gpublic.h
|
||||
H5Tpublic.h
|
||||
H5TB.o: \
|
||||
H5TB.c \
|
||||
H5private.h \
|
||||
@ -1171,7 +1174,10 @@ H5TB.o: \
|
||||
H5config.h \
|
||||
H5Iprivate.h \
|
||||
H5Ipublic.h \
|
||||
H5Eprivate.h
|
||||
H5Eprivate.h \
|
||||
H5Epublic.h \
|
||||
H5MMprivate.h \
|
||||
H5MMpublic.h
|
||||
H5V.o: \
|
||||
H5V.c \
|
||||
H5private.h \
|
||||
@ -1192,9 +1198,7 @@ H5V.o: \
|
||||
H5HGprivate.h \
|
||||
H5HGpublic.h \
|
||||
H5Tprivate.h \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h
|
||||
H5Tpublic.h
|
||||
H5Z.o: \
|
||||
H5Z.c \
|
||||
H5private.h \
|
||||
@ -1220,5 +1224,4 @@ H5Z.o: \
|
||||
H5Tpublic.h \
|
||||
H5Sprivate.h \
|
||||
H5Spublic.h \
|
||||
H5Zprivate.h \
|
||||
H5Zpublic.h
|
||||
H5Zprivate.h
|
||||
|
58
src/H5.c
58
src/H5.c
@ -35,18 +35,6 @@ static char RcsId[] = "@(#)$Revision$";
|
||||
H5_init_interface -- initialize the H5 interface
|
||||
+ */
|
||||
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#if defined(WIN32)
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
/* We need this on Irix64 even though we've included stdio.h as documented */
|
||||
FILE *fdopen(int fd, const char *mode);
|
||||
|
||||
/* private headers */
|
||||
#include <H5private.h> /*library */
|
||||
@ -61,6 +49,9 @@ FILE *fdopen(int fd, const char *mode);
|
||||
#include <H5Tprivate.h> /*data types */
|
||||
#include <H5Zprivate.h> /*filters */
|
||||
|
||||
/* We need this on Irix64 even though we've included stdio.h as documented */
|
||||
FILE *fdopen(int fd, const char *mode);
|
||||
|
||||
#define PABLO_MASK H5_mask
|
||||
|
||||
hbool_t library_initialize_g = FALSE;
|
||||
@ -653,27 +644,21 @@ HDfprintf (FILE *stream, const char *fmt, ...)
|
||||
if (HDstrchr ("ZHhlq", *s)) {
|
||||
switch (*s) {
|
||||
case 'H':
|
||||
if (sizeof(hsize_t)==sizeof(long)) {
|
||||
if (sizeof(hsize_t)<sizeof(long)) {
|
||||
modifier[0] = '\0';
|
||||
} else if (sizeof(hsize_t)==sizeof(long)) {
|
||||
HDstrcpy (modifier, "l");
|
||||
#if defined(WIN32)
|
||||
} else if (sizeof(hsize_t)==sizeof(__int64)) {
|
||||
#else
|
||||
} else if (sizeof(hsize_t)==sizeof(long long)) {
|
||||
#endif
|
||||
} else {
|
||||
HDstrcpy (modifier, PRINTF_LL_WIDTH);
|
||||
}
|
||||
break;
|
||||
case 'Z':
|
||||
if (sizeof(size_t)==sizeof(long)) {
|
||||
HDstrcpy (modifier, "l");
|
||||
#if defined(WIN32)
|
||||
} else if (sizeof(size_t)==sizeof(__int64)) {
|
||||
#else
|
||||
} else if (sizeof(size_t)==sizeof(long long)) {
|
||||
#endif
|
||||
HDstrcpy (modifier, PRINTF_LL_WIDTH);
|
||||
} else if (sizeof(size_t)==sizeof(int)) {
|
||||
if (sizeof(size_t)<sizeof(long)) {
|
||||
modifier[0] = '\0';
|
||||
} else if (sizeof(size_t)==sizeof(long)) {
|
||||
HDstrcpy (modifier, "l");
|
||||
} else {
|
||||
HDstrcpy (modifier, PRINTF_LL_WIDTH);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -718,11 +703,7 @@ HDfprintf (FILE *stream, const char *fmt, ...)
|
||||
long x = va_arg (ap, long);
|
||||
n = fprintf (stream, template, x);
|
||||
} else {
|
||||
#if defined(WIN32)
|
||||
__int64 x = va_arg(ap, __int64);
|
||||
#else
|
||||
long long x = va_arg (ap, long long);
|
||||
#endif
|
||||
int64 x = va_arg(ap, int64);
|
||||
n = fprintf (stream, template, x);
|
||||
}
|
||||
break;
|
||||
@ -741,12 +722,8 @@ HDfprintf (FILE *stream, const char *fmt, ...)
|
||||
unsigned long x = va_arg (ap, unsigned long);
|
||||
n = fprintf (stream, template, x);
|
||||
} else {
|
||||
#if defined(WIN32)
|
||||
unsigned __int64 x = va_arg (ap, unsigned __int64);
|
||||
#else
|
||||
unsigned long long x = va_arg (ap, unsigned long long);
|
||||
#endif
|
||||
n = fprintf (stream, template, x);
|
||||
uint64 x = va_arg(ap, uint64);
|
||||
n = fprintf (stream, template, x);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -794,6 +771,9 @@ HDfprintf (FILE *stream, const char *fmt, ...)
|
||||
} else if (sizeof(x->offset)==SIZEOF_LONG_LONG) {
|
||||
HDstrcat(template, PRINTF_LL_WIDTH);
|
||||
HDstrcat(template, "d");
|
||||
} else if (sizeof(x->offset)==SIZEOF___INT64) {
|
||||
HDstrcat(template, PRINTF_LL_WIDTH);
|
||||
HDstrcat(template, "d");
|
||||
}
|
||||
n = fprintf(stream, template, x->offset);
|
||||
} else {
|
||||
@ -1003,7 +983,6 @@ H5_timer_reset (H5_timer_t *timer)
|
||||
void
|
||||
H5_timer_begin (H5_timer_t *timer)
|
||||
{
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
struct rusage rusage;
|
||||
#endif
|
||||
@ -1024,7 +1003,6 @@ H5_timer_begin (H5_timer_t *timer)
|
||||
|
||||
gettimeofday (&etime, NULL);
|
||||
timer->etime = (double)etime.tv_sec + (double)etime.tv_usec/1e6;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -49,10 +49,6 @@ static char RcsId[] = "@(#)$Revision$";
|
||||
#include <H5Pprivate.h> /*property lists */
|
||||
#include <H5Tprivate.h> /*data types */
|
||||
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/*
|
||||
* Define the following if you want H5F_block_read() and H5F_block_write() to
|
||||
* keep track of the file position and attempt to minimize calls to the file
|
||||
|
@ -15,9 +15,6 @@
|
||||
#include <H5Fprivate.h>
|
||||
#include <H5MMprivate.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define addr_defined(X) (((uint64)(-1)!=(X)->offset) ? TRUE : FALSE)
|
||||
|
||||
#define PABLO_MASK H5F_low
|
||||
@ -1017,7 +1014,7 @@ H5F_addr_hash(const haddr_t *addr, uintn mod)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
herr_t
|
||||
H5F_addr_pack(H5F_t *f, haddr_t *addr, const long objno[2])
|
||||
H5F_addr_pack(H5F_t __unused__ *f, haddr_t *addr, const long objno[2])
|
||||
{
|
||||
assert(f);
|
||||
assert(objno);
|
||||
|
@ -47,9 +47,6 @@
|
||||
#include <H5Dprivate.h>
|
||||
#include <H5MMprivate.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef HAVE_PARALLEL
|
||||
/*
|
||||
* The H5F_mpio_xxxx functions are for parallel I/O only and are
|
||||
|
@ -19,9 +19,6 @@
|
||||
#include <H5Fprivate.h>
|
||||
#include <H5MMprivate.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define PABLO_MASK H5F_sec2
|
||||
static hbool_t interface_initialize_g = FALSE;
|
||||
#define INTERFACE_INIT NULL
|
||||
|
@ -13,9 +13,6 @@
|
||||
#include <H5Fprivate.h>
|
||||
#include <H5MMprivate.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define PABLO_MASK H5F_stdio
|
||||
static hbool_t interface_initialize_g = FALSE;
|
||||
#define INTERFACE_INIT NULL
|
||||
|
@ -20,16 +20,16 @@
|
||||
#define H5G_PACKAGE /*suppress error message about including H5Gpkg.h */
|
||||
|
||||
/* Packages needed by this file... */
|
||||
#include <H5private.h> /*library */
|
||||
#include <H5ACprivate.h> /*cache */
|
||||
#include <H5Bprivate.h> /*B-link trees */
|
||||
#include <H5Eprivate.h> /*error handling */
|
||||
#include <H5Fprivate.h> /*file access */
|
||||
#include <H5Gpkg.h> /*me */
|
||||
#include <H5HLprivate.h> /*heap */
|
||||
#include <H5MFprivate.h> /*file memory management */
|
||||
#include <H5MMprivate.h> /*core memory management */
|
||||
#include <H5Oprivate.h> /*header messages */
|
||||
#include <H5private.h> /*library */
|
||||
#include <H5ACprivate.h> /*cache */
|
||||
#include <H5Bprivate.h> /*B-link trees */
|
||||
#include <H5Eprivate.h> /*error handling */
|
||||
#include <H5Fprivate.h> /*file access */
|
||||
#include <H5Gpkg.h> /*me */
|
||||
#include <H5HLprivate.h> /*local heap */
|
||||
#include <H5MFprivate.h> /*file memory management */
|
||||
#include <H5MMprivate.h> /*core memory management */
|
||||
#include <H5Oprivate.h> /*header messages */
|
||||
|
||||
#define PABLO_MASK H5G_node_mask
|
||||
|
||||
|
@ -61,7 +61,8 @@ static hbool_t interface_initialize_g = FALSE;
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static void *
|
||||
H5O_fill_decode(H5F_t *f, const uint8 *p, H5O_shared_t *sh)
|
||||
H5O_fill_decode(H5F_t __unused__ *f, const uint8 *p,
|
||||
H5O_shared_t __unused__ *sh)
|
||||
{
|
||||
H5O_fill_t *mesg=NULL;
|
||||
void *ret_value = NULL;
|
||||
@ -110,7 +111,7 @@ H5O_fill_decode(H5F_t *f, const uint8 *p, H5O_shared_t *sh)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5O_fill_encode(H5F_t *f, uint8 *p, const void *_mesg)
|
||||
H5O_fill_encode(H5F_t __unused__ *f, uint8 *p, const void *_mesg)
|
||||
{
|
||||
const H5O_fill_t *mesg = (const H5O_fill_t *)_mesg;
|
||||
|
||||
@ -201,7 +202,7 @@ H5O_fill_copy(const void *_mesg, void *_dest)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static size_t
|
||||
H5O_fill_size(H5F_t *f, const void *_mesg)
|
||||
H5O_fill_size(H5F_t __unused__ *f, const void *_mesg)
|
||||
{
|
||||
const H5O_fill_t *mesg = (const H5O_fill_t *)_mesg;
|
||||
|
||||
@ -261,8 +262,8 @@ H5O_fill_reset(void *_mesg)
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t
|
||||
H5O_fill_debug(H5F_t *f, const void *_mesg, FILE *stream, intn indent,
|
||||
intn fwidth)
|
||||
H5O_fill_debug(H5F_t __unused__ *f, const void *_mesg, FILE *stream,
|
||||
intn indent, intn fwidth)
|
||||
{
|
||||
const H5O_fill_t *mesg = (const H5O_fill_t *)_mesg;
|
||||
|
||||
|
@ -16,8 +16,6 @@ static char RcsId[] = "@(#)$Revision$";
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
/* Private header files */
|
||||
#include <H5private.h> /* Generic Functions */
|
||||
#include <H5Iprivate.h> /* IDs */
|
||||
|
@ -24,11 +24,11 @@
|
||||
* Reference types allowed.
|
||||
*/
|
||||
typedef enum {
|
||||
H5R_BADTYPE = (-1), /* invalid Reference Type */
|
||||
H5R_OBJECT, /* Object reference */
|
||||
H5R_DATASET_REGION, /* Dataset Region Reference */
|
||||
H5R_INTERNAL, /* Internal Reference */
|
||||
H5R_MAXTYPE /* highest type in group (Invalid as true type)*/
|
||||
H5R_BADTYPE = (-1), /*invalid Reference Type */
|
||||
H5R_OBJECT, /*Object reference */
|
||||
H5R_DATASET_REGION, /*Dataset Region Reference */
|
||||
H5R_INTERNAL, /*Internal Reference */
|
||||
H5R_MAXTYPE /*highest type (Invalid as true type) */
|
||||
} H5R_type_t;
|
||||
|
||||
#ifdef LATER
|
||||
@ -53,7 +53,7 @@ extern "C" {
|
||||
|
||||
/* Functions in H5R.c */
|
||||
herr_t H5Rcreate(void *ref, hid_t loc_id, const char *name,
|
||||
H5R_type_t ref_type, hid_t space_id);
|
||||
H5R_type_t ref_type, hid_t space_id);
|
||||
hid_t H5Rdereference(hid_t dataset, H5R_type_t ref_type, void *ref);
|
||||
hid_t H5Rget_region(hid_t dataset, H5R_type_t ref_type, void *ref);
|
||||
|
||||
|
@ -14,8 +14,6 @@
|
||||
#include <H5Eprivate.h>
|
||||
#include <H5MMprivate.h>
|
||||
#include <H5Tpkg.h>
|
||||
#include <math.h> /*for ceil() */
|
||||
#include <float.h> /*for FLT_MAX and HUGE_VAL */
|
||||
|
||||
/* Conversion data for H5T_conv_struct() */
|
||||
typedef struct H5T_conv_struct_t {
|
||||
|
20
src/H5V.c
20
src/H5V.c
@ -415,7 +415,7 @@ H5V_hyper_copy(intn n, const hsize_t *_size,
|
||||
{
|
||||
hsize_t dst_acc; /*accumulator */
|
||||
hsize_t src_acc; /*accumulator */
|
||||
int i; /*counter */
|
||||
int ii; /*counter */
|
||||
|
||||
/* init */
|
||||
dst_stride[n-1] = 1;
|
||||
@ -424,17 +424,17 @@ H5V_hyper_copy(intn n, const hsize_t *_size,
|
||||
src_start = src_offset ? src_offset[n-1] : 0;
|
||||
|
||||
/* others */
|
||||
for (i=n-2, dst_acc=1, src_acc=1; i>=0; --i) {
|
||||
hsize_t tmp1 = dst_acc * (dst_size[i+1] - size[i+1]);
|
||||
hsize_t tmp2 = src_acc * (src_size[i+1] - size[i+1]);
|
||||
for (ii=n-2, dst_acc=1, src_acc=1; ii>=0; --ii) {
|
||||
hsize_t tmp1 = dst_acc * (dst_size[ii+1] - size[ii+1]);
|
||||
hsize_t tmp2 = src_acc * (src_size[ii+1] - size[ii+1]);
|
||||
assert (tmp1<((hsize_t)1<<(8*sizeof(hssize_t)-1)));
|
||||
assert (tmp2<((hsize_t)1<<(8*sizeof(hssize_t)-1)));
|
||||
dst_stride[i] = (hssize_t)tmp1; /*overflow checked*/
|
||||
src_stride[i] = (hssize_t)tmp2; /*overflow checked*/
|
||||
dst_acc *= dst_size[i+1];
|
||||
src_acc *= src_size[i+1];
|
||||
dst_start += dst_acc * (dst_offset ? dst_offset[i] : 0);
|
||||
src_start += src_acc * (src_offset ? src_offset[i] : 0);
|
||||
dst_stride[ii] = (hssize_t)tmp1; /*overflow checked*/
|
||||
src_stride[ii] = (hssize_t)tmp2; /*overflow checked*/
|
||||
dst_acc *= dst_size[ii+1];
|
||||
src_acc *= src_size[ii+1];
|
||||
dst_start += dst_acc * (dst_offset ? dst_offset[ii] : 0);
|
||||
src_start += src_acc * (src_offset ? src_offset[ii] : 0);
|
||||
}
|
||||
}
|
||||
#endif /* NO_INLINED_CODE */
|
||||
|
@ -22,11 +22,6 @@
|
||||
#define H5V_vector_le_u(N,V1,V2) (H5V_vector_cmp_u (N, V1, V2)<=0)
|
||||
#define H5V_vector_ge_u(N,V1,V2) (H5V_vector_cmp_u (N, V1, V2)>=0)
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef inline
|
||||
#define inline
|
||||
#endif
|
||||
|
||||
/* Other functions */
|
||||
#define H5V_vector_cpy(N,DST,SRC) { \
|
||||
assert (sizeof(*(DST))==sizeof(*(SRC))); \
|
||||
|
@ -22,6 +22,9 @@
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define if your <sys/time.h> declares struct tm. */
|
||||
#undef TM_IN_SYS_TIME
|
||||
|
||||
@ -53,6 +56,9 @@
|
||||
/* Define if `struct timezone' is defined */
|
||||
#undef HAVE_STRUCT_TIMEZONE
|
||||
|
||||
/* The number of bytes in a __int64. */
|
||||
#undef SIZEOF___INT64
|
||||
|
||||
/* The number of bytes in a double. */
|
||||
#undef SIZEOF_DOUBLE
|
||||
|
||||
@ -116,9 +122,21 @@
|
||||
/* Define if you have the waitpid function. */
|
||||
#undef HAVE_WAITPID
|
||||
|
||||
/* Define if you have the <io.h> header file. */
|
||||
#undef HAVE_IO_H
|
||||
|
||||
/* Define if you have the <sys/resource.h> header file. */
|
||||
#undef HAVE_SYS_RESOURCE_H
|
||||
|
||||
/* Define if you have the <sys/time.h> header file. */
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define if you have the <winsock.h> header file. */
|
||||
#undef HAVE_WINSOCK_H
|
||||
|
||||
/* Define if you have the <zlib.h> header file. */
|
||||
#undef HAVE_ZLIB_H
|
||||
|
||||
|
@ -30,19 +30,33 @@ static const char *FileHeader = "\n\
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#if !defined(WIN32)
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <pwd.h>
|
||||
#include <H5config.h>
|
||||
|
||||
/* See H5private.h for how to include files */
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <H5config.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef _POSIX_VERSION
|
||||
# include <pwd.h>
|
||||
#endif
|
||||
|
||||
#if defined(TIME_WITH_SYS_TIME)
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#elif defined(HAVE_SYS_TIME_H)
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
#define MAXDETECT 16
|
||||
|
||||
@ -801,11 +815,15 @@ print_header(void)
|
||||
|
||||
time_t now = time(NULL);
|
||||
struct tm *tm = localtime(&now);
|
||||
struct passwd *pwd = NULL;
|
||||
char real_name[30];
|
||||
char host_name[256];
|
||||
int i;
|
||||
const char *s;
|
||||
#ifdef HAVE_GETPWUID
|
||||
struct passwd *pwd = NULL;
|
||||
#else
|
||||
int pwd = 1;
|
||||
#endif
|
||||
static const char *month_name[] =
|
||||
{
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
@ -895,7 +913,7 @@ bit.\n";
|
||||
if (pwd || real_name[0] || host_name[0]) {
|
||||
printf(" *\t\t\t");
|
||||
if (real_name[0]) printf("%s <", real_name);
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETPWUID
|
||||
if (pwd) fputs(pwd->pw_name, stdout);
|
||||
#endif
|
||||
if (host_name[0]) printf("@%s", host_name);
|
||||
@ -953,23 +971,21 @@ main(void)
|
||||
DETECT_I(long, LONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned long, ULONG, d[nd]); nd++;
|
||||
|
||||
#if SIZEOF_LONG == SIZEOF_LONG_LONG
|
||||
#if SIZEOF_LONG_LONG > SIZEOF_LONG
|
||||
DETECT_I(long long, LLONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned long long, ULLONG, d[nd]); nd++;
|
||||
#elif SIZEOF___INT64 > SIZEOF_LONG
|
||||
DETECT_I(__int64, LLONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned __int64, ULLONG, d[nd]); nd++;
|
||||
#else
|
||||
/*
|
||||
* If sizeof(long)==sizeof(long long) then assume that `long long' isn't
|
||||
* supported and use `long' instead. This suppresses warnings on some
|
||||
* systems.
|
||||
* This architecture doesn't support an integer type larger than `long'
|
||||
* so we'll just make H5T_NATIVE_LLONG the same as H5T_NATIVE_LONG.
|
||||
*/
|
||||
DETECT_I(long, LLONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned long, ULLONG, d[nd]); nd++;
|
||||
#else
|
||||
#if defined(WIN32)
|
||||
DETECT_I(__int64, LLONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned __int64, ULLONG, d[nd]); nd++;
|
||||
#else
|
||||
DETECT_I(long long, LLONG, d[nd]); nd++;
|
||||
DETECT_I(unsigned long long, ULLONG, d[nd]); nd++;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
DETECT_F(float, FLOAT, d[nd]); nd++;
|
||||
DETECT_F(double, DOUBLE, d[nd]); nd++;
|
||||
|
||||
|
216
src/H5private.h
216
src/H5private.h
@ -1,26 +1,123 @@
|
||||
/****************************************************************************
|
||||
* NCSA HDF *
|
||||
* Software Development Group *
|
||||
* National Center for Supercomputing Applications *
|
||||
* University of Illinois at Urbana-Champaign *
|
||||
* 605 E. Springfield, Champaign IL 61820 *
|
||||
* *
|
||||
* For conditions of distribution and use, see the accompanying *
|
||||
* hdf/COPYING file. *
|
||||
* *
|
||||
****************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
* This file contains macros & private information for general HDF5 functions.
|
||||
* Every HDF5 source file will include this file immediately after any
|
||||
* system include files but before any other private include files.
|
||||
* Copyright (C) 1998 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Friday, October 30, 1998
|
||||
*
|
||||
* Purpose: This file is included by all HDF5 library source files to
|
||||
* define common things which are not defined in the HDF5 API.
|
||||
* The configuration constants like HAVE_UNISTD_H etc. are
|
||||
* defined in H5config.h which is included by H5public.h.
|
||||
*/
|
||||
#ifndef _H5private_H
|
||||
#define _H5private_H
|
||||
#include <H5public.h> /* Include Public Definitions */
|
||||
|
||||
/*
|
||||
* Include ANSI-C header files.
|
||||
*/
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <ctype.h>
|
||||
# include <errno.h>
|
||||
# include <fcntl.h>
|
||||
# include <float.h>
|
||||
# include <math.h>
|
||||
# include <stdarg.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If _POSIX_VERSION is defined in unistd.h then this system is Posix.1
|
||||
* compliant. Otherwise all bets are off.
|
||||
*/
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef _POSIX_VERSION
|
||||
# include <sys/stat.h>
|
||||
# include <sys/wait.h>
|
||||
# include <pwd.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If a program may include both `time.h' and `sys/time.h' then
|
||||
* TIME_WITH_SYS_TIME is defined (see AC_HEADER_TIME in configure.in).
|
||||
* On some older systems, `sys/time.h' includes `time.h' but `time.h' is not
|
||||
* protected against multiple inclusion, so programs should not explicitly
|
||||
* include both files. This macro is useful in programs that use, for example,
|
||||
* `struct timeval' or `struct timezone' as well as `struct tm'. It is best
|
||||
* used in conjunction with `HAVE_SYS_TIME_H', whose existence is checked
|
||||
* by `AC_CHECK_HEADERS(sys/time.h)' in configure.in.
|
||||
*/
|
||||
#if defined(TIME_WITH_SYS_TIME)
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#elif defined(HAVE_SYS_TIME_H)
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Resource usage is not Posix.1 but HDF5 uses it anyway for some performance
|
||||
* and debugging code if available.
|
||||
*/
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
# include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Win32 is severely broken when it comes to ANSI-C and Posix.1 compliance.
|
||||
*/
|
||||
#ifdef HAVE_IO_H
|
||||
# include <io.h>
|
||||
#endif
|
||||
#ifdef HAVE_WINSOCK_H
|
||||
# include <winsock.h>
|
||||
# include <winsock2.h>
|
||||
#endif
|
||||
#ifndef F_OK
|
||||
# define F_OK 00
|
||||
# define W_OK 02
|
||||
# define R_OK 04
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Pablo support files.
|
||||
*/
|
||||
#ifdef HAVE_PABLO
|
||||
# define IOTRACE
|
||||
# define HDFIOTRACE
|
||||
# include "HDFIOTrace.h"
|
||||
# include "ProcIDs.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Does the compiler support the __attribute__(()) syntax? This is how gcc
|
||||
* suppresses warnings about unused function arguments. It's no big deal if
|
||||
* we don't.
|
||||
*/
|
||||
#ifdef HAVE_ATTRIBUTE
|
||||
# define __unused__ __attribute__((unused))
|
||||
#else
|
||||
# define __attribute__(X) /*void*/
|
||||
# define __unused__ /*void*/
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Does the compiler expand __FUNCTION__ to be the name of the function
|
||||
* currently being defined? If not then define it to be some constant
|
||||
* string.
|
||||
*/
|
||||
#ifndef HAVE_FUNCTION
|
||||
# define __FUNCTION__ "NoFunctionName"
|
||||
#endif
|
||||
|
||||
/* Version #'s of the major components of the file format */
|
||||
#define HDF5_BOOTBLOCK_VERSION 0 /* of the boot block format */
|
||||
#define HDF5_FREESPACE_VERSION 0 /* of the Free-Space Info */
|
||||
@ -40,81 +137,24 @@
|
||||
#define FAIL (-1)
|
||||
#define UFAIL (unsigned)(-1)
|
||||
|
||||
|
||||
/*
|
||||
* Include those things that almost all source files need.
|
||||
*/
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <ctype.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
# include <time.h>
|
||||
|
||||
#if defined(WIN32)
|
||||
# include<sys\types.h>
|
||||
# include<io.h>
|
||||
#define F_OK 00
|
||||
#define R_OK 04
|
||||
#define W_OK 02
|
||||
#else
|
||||
# include <sys/time.h>
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif /*if defined(WIN32)*/
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Pablo support files.
|
||||
*/
|
||||
#ifdef HAVE_PABLO
|
||||
# define IOTRACE
|
||||
# define HDFIOTRACE
|
||||
# include "HDFIOTrace.h"
|
||||
# include "ProcIDs.h"
|
||||
#endif
|
||||
|
||||
/* Does the compiler support the __attribute__(()) syntax? */
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# define __attribute__(X) /*void*/
|
||||
# define __unused__ /*void*/
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
/* Does the compiler expand __FUNCTION__? */
|
||||
#ifndef HAVE_FUNCTION
|
||||
# define __FUNCTION__ "NoFuntionName"
|
||||
#endif
|
||||
|
||||
/* number of members in an array */
|
||||
#ifndef NELMTS
|
||||
# define NELMTS(X) (sizeof(X)/sizeof(X[0]))
|
||||
#endif
|
||||
|
||||
/* minimum of two, three, or four values */
|
||||
#ifndef MIN
|
||||
# define MIN(a,b) (((a)<(b)) ? (a) : (b))
|
||||
# define MIN2(a,b) MIN(a,b)
|
||||
# define MIN3(a,b,c) MIN(a,MIN(b,c))
|
||||
# define MIN4(a,b,c,d) MIN(MIN(a,b),MIN(c,d))
|
||||
#endif
|
||||
#undef MIN
|
||||
#define MIN(a,b) (((a)<(b)) ? (a) : (b))
|
||||
#define MIN2(a,b) MIN(a,b)
|
||||
#define MIN3(a,b,c) MIN(a,MIN(b,c))
|
||||
#define MIN4(a,b,c,d) MIN(MIN(a,b),MIN(c,d))
|
||||
|
||||
/* maximum of two, three, or four values */
|
||||
#ifndef MAX
|
||||
# define MAX(a,b) (((a)>(b)) ? (a) : (b))
|
||||
# define MAX2(a,b) MAX(a,b)
|
||||
# define MAX3(a,b,c) MAX(a,MAX(b,c))
|
||||
# define MAX4(a,b,c,d) MAX(MAX(a,b),MAX(c,d))
|
||||
#endif
|
||||
#undef MAX
|
||||
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
|
||||
#define MAX2(a,b) MAX(a,b)
|
||||
#define MAX3(a,b,c) MAX(a,MAX(b,c))
|
||||
#define MAX4(a,b,c,d) MAX(MAX(a,b),MAX(c,d))
|
||||
|
||||
/* limit the middle value to be within a range (inclusive) */
|
||||
#define RANGE(LO,X,HI) MAX(LO,MIN(X,HI))
|
||||
@ -178,13 +218,11 @@ typedef unsigned uint64;
|
||||
typedef long int64;
|
||||
typedef unsigned long uint64;
|
||||
#elif SIZEOF_LONG_LONG==8
|
||||
#if defined(WIN32)
|
||||
typedef __int64 int64;
|
||||
typedef unsigned __int64 uint64;
|
||||
#else
|
||||
typedef long long int64;
|
||||
typedef unsigned long long uint64;
|
||||
#endif
|
||||
#elif SIZEOF___INT64==8
|
||||
typedef __int64 int64;
|
||||
typedef unsigned __int64 uint64;
|
||||
#else
|
||||
# error "no 64-bit integer type"
|
||||
#endif
|
||||
|
@ -27,10 +27,10 @@
|
||||
/* Version numbers */
|
||||
#define H5_VERS_MAJOR 1 /* For major interface/format changes */
|
||||
#define H5_VERS_MINOR 1 /* For minor interface/format changes */
|
||||
#define H5_VERS_RELEASE 6 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_RELEASE 20 /* For tweaks, bug-fixes, or development */
|
||||
|
||||
#define H5check() H5check_version(H5_VERS_MAJOR,H5_VERS_MINOR, \
|
||||
H5_VERS_RELEASE)
|
||||
H5_VERS_RELEASE)
|
||||
|
||||
/*
|
||||
* Status return values. Failed integer functions in HDF5 result almost
|
||||
@ -64,24 +64,22 @@ typedef int herr_t;
|
||||
typedef unsigned int hbool_t;
|
||||
typedef int htri_t;
|
||||
|
||||
|
||||
/*
|
||||
* The sizes of file-objects in hdf5 have their own types defined here. On
|
||||
* most systems, these are the same as size_t and ssize_t, but on systems
|
||||
* with small address spaces these are defined to be larger.
|
||||
* The sizes of file objects have their own types defined here. If large
|
||||
* sizes are enabled then use a 64-bit data type, otherwise use the size of
|
||||
* memory objects.
|
||||
*/
|
||||
#if defined(HAVE_LARGE_HSIZET) && SIZEOF_SIZE_T<SIZEOF_LONG_LONG
|
||||
#if defined(WIN32)
|
||||
typedef unsigned __int64 hsize_t;
|
||||
typedef signed __int64 hssize_t;
|
||||
typedef signed int ssize_t;
|
||||
#ifdef HAVE_LARGE_HSIZET
|
||||
# if SIZEOF_LONG_LONG==8
|
||||
typedef unsigned long long hsize_t;
|
||||
typedef signed long long hssize_t;
|
||||
# elif SIZEOF___INT64==8
|
||||
typedef unsigned __int64 hsize_t;
|
||||
typedef signed __int64 hssize_t;
|
||||
# endif
|
||||
#else
|
||||
typedef unsigned long long hsize_t;
|
||||
typedef signed long long hssize_t;
|
||||
#endif
|
||||
#else
|
||||
typedef size_t hsize_t;
|
||||
typedef ssize_t hssize_t;
|
||||
typedef size_t hsize_t;
|
||||
typedef ssize_t hssize_t;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
142
test/.distdep
142
test/.distdep
@ -30,8 +30,7 @@ tattr.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h
|
||||
../src/H5RApublic.h
|
||||
tfile.o: \
|
||||
tfile.c \
|
||||
testhdf5.h \
|
||||
@ -45,7 +44,9 @@ tfile.o: \
|
||||
../src/H5Bpublic.h \
|
||||
../src/H5Fprivate.h \
|
||||
../src/H5Fpublic.h \
|
||||
../src/H5Dpublic.h
|
||||
../src/H5Dpublic.h \
|
||||
../src/H5Pprivate.h \
|
||||
../src/H5Ppublic.h
|
||||
theap.o: \
|
||||
theap.c \
|
||||
testhdf5.h \
|
||||
@ -62,7 +63,9 @@ theap.o: \
|
||||
../src/H5Fpublic.h \
|
||||
../src/H5Dpublic.h \
|
||||
../src/H5Pprivate.h \
|
||||
../src/H5Ppublic.h
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5HLprivate.h
|
||||
tmeta.o: \
|
||||
tmeta.c \
|
||||
testhdf5.h \
|
||||
@ -72,8 +75,7 @@ tmeta.o: \
|
||||
../src/H5Eprivate.h \
|
||||
../src/H5Epublic.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Fprivate.h \
|
||||
../src/H5Fpublic.h
|
||||
../src/H5Fprivate.h
|
||||
tohdr.o: \
|
||||
tohdr.c \
|
||||
testhdf5.h \
|
||||
@ -102,7 +104,9 @@ tohdr.o: \
|
||||
../src/H5HGpublic.h \
|
||||
../src/H5Tprivate.h \
|
||||
../src/H5Tpublic.h \
|
||||
../src/H5Sprivate.h
|
||||
../src/H5Sprivate.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Zprivate.h
|
||||
trefer.o: \
|
||||
trefer.c \
|
||||
testhdf5.h \
|
||||
@ -127,8 +131,7 @@ trefer.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h
|
||||
../src/H5RApublic.h
|
||||
tselect.o: \
|
||||
tselect.c \
|
||||
testhdf5.h \
|
||||
@ -153,8 +156,7 @@ tselect.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h
|
||||
../src/H5RApublic.h
|
||||
tstab.o: \
|
||||
tstab.c \
|
||||
testhdf5.h \
|
||||
@ -183,7 +185,9 @@ tstab.o: \
|
||||
../src/H5HGpublic.h \
|
||||
../src/H5Tprivate.h \
|
||||
../src/H5Tpublic.h \
|
||||
../src/H5Sprivate.h
|
||||
../src/H5Sprivate.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Zprivate.h
|
||||
th5s.o: \
|
||||
th5s.c \
|
||||
testhdf5.h \
|
||||
@ -208,13 +212,12 @@ th5s.o: \
|
||||
../src/H5HGpublic.h \
|
||||
../src/H5Tprivate.h \
|
||||
../src/H5Tpublic.h \
|
||||
../src/H5Zprivate.h \
|
||||
../src/H5Zpublic.h
|
||||
../src/H5Zprivate.h
|
||||
dtypes.o: \
|
||||
dtypes.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -238,16 +241,13 @@ dtypes.o: \
|
||||
../src/H5HGprivate.h \
|
||||
../src/H5Fprivate.h \
|
||||
../src/H5private.h \
|
||||
../src/H5Rprivate.h \
|
||||
../src/H5Tprivate.h \
|
||||
../src/H5Gprivate.h
|
||||
../src/H5Rprivate.h
|
||||
hyperslab.o: \
|
||||
hyperslab.c \
|
||||
../src/H5private.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5MMprivate.h \
|
||||
../src/H5MMpublic.h
|
||||
../src/H5MMprivate.h
|
||||
istore.o: \
|
||||
istore.c \
|
||||
../src/H5private.h \
|
||||
@ -274,13 +274,12 @@ istore.o: \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Iprivate.h \
|
||||
../src/H5Pprivate.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5MMprivate.h
|
||||
../src/H5Ppublic.h
|
||||
dsets.o: \
|
||||
dsets.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -297,14 +296,12 @@ dsets.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
cmpd_dset.o: \
|
||||
cmpd_dset.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -320,15 +317,12 @@ cmpd_dset.o: \
|
||||
../src/H5Opublic.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Rpublic.h
|
||||
extend.o: \
|
||||
extend.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -345,14 +339,12 @@ extend.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
external.o: \
|
||||
external.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -368,15 +360,12 @@ external.o: \
|
||||
../src/H5Opublic.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Rpublic.h
|
||||
iopipe.o: \
|
||||
iopipe.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -393,9 +382,7 @@ iopipe.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
gheap.o: \
|
||||
gheap.c \
|
||||
../src/H5private.h \
|
||||
@ -413,13 +400,12 @@ gheap.o: \
|
||||
../src/H5Bpublic.h \
|
||||
../src/H5HGprivate.h \
|
||||
../src/H5HGpublic.h \
|
||||
../src/H5Pprivate.h \
|
||||
../src/H5Ppublic.h
|
||||
../src/H5Pprivate.h
|
||||
shtype.o: \
|
||||
shtype.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -436,14 +422,12 @@ shtype.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
big.o: \
|
||||
big.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -466,9 +450,9 @@ big.o: \
|
||||
../src/H5private.h
|
||||
links.o: \
|
||||
links.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -485,14 +469,12 @@ links.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
chunk.o: \
|
||||
chunk.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -508,10 +490,7 @@ chunk.o: \
|
||||
../src/H5Opublic.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Rpublic.h
|
||||
bittests.o: \
|
||||
bittests.c \
|
||||
../src/H5Tpkg.h \
|
||||
@ -529,13 +508,12 @@ bittests.o: \
|
||||
../src/H5Tprivate.h \
|
||||
../src/H5Tpublic.h \
|
||||
../src/H5Gprivate.h \
|
||||
../src/H5Gpublic.h \
|
||||
../src/H5Bprivate.h
|
||||
../src/H5Gpublic.h
|
||||
mtime.o: \
|
||||
mtime.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -558,9 +536,9 @@ mtime.o: \
|
||||
../src/H5private.h
|
||||
ragged.o: \
|
||||
ragged.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -583,9 +561,9 @@ ragged.o: \
|
||||
../src/H5private.h
|
||||
unlink.o: \
|
||||
unlink.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -601,15 +579,12 @@ unlink.o: \
|
||||
../src/H5Opublic.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Rpublic.h
|
||||
overhead.o: \
|
||||
overhead.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -627,13 +602,12 @@ overhead.o: \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Spublic.h
|
||||
fillval.o: \
|
||||
fillval.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -651,13 +625,12 @@ fillval.o: \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Spublic.h
|
||||
mount.o: \
|
||||
mount.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -673,15 +646,12 @@ mount.o: \
|
||||
../src/H5Opublic.h \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5Rpublic.h
|
||||
flush1.o: \
|
||||
flush1.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -698,14 +668,12 @@ flush1.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
flush2.o: \
|
||||
flush2.c \
|
||||
../src/H5config.h \
|
||||
../src/hdf5.h \
|
||||
../src/H5public.h \
|
||||
../src/H5config.h \
|
||||
../src/H5Ipublic.h \
|
||||
../src/H5Apublic.h \
|
||||
../src/H5ACpublic.h \
|
||||
@ -722,6 +690,4 @@ flush2.o: \
|
||||
../src/H5Ppublic.h \
|
||||
../src/H5Zpublic.h \
|
||||
../src/H5Rpublic.h \
|
||||
../src/H5RApublic.h \
|
||||
../src/H5Spublic.h \
|
||||
../src/H5Tpublic.h
|
||||
../src/H5RApublic.h
|
||||
|
35
test/big.c
35
test/big.c
@ -5,15 +5,22 @@
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Wednesday, April 8, 1998
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <hdf5.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <ctype.h>
|
||||
# include <fcntl.h>
|
||||
# include <math.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <H5private.h> /*needed for HDfprintf() */
|
||||
|
||||
#define FNAME "big%05d.h5"
|
||||
@ -21,11 +28,15 @@
|
||||
#define WRT_N 50
|
||||
#define WRT_SIZE 4*1024
|
||||
#define FAMILY_SIZE 1024*1024*1024
|
||||
#if defined(WIN32)
|
||||
|
||||
#if SIZEOF_LONG_LONG > SIZEOF_LONG
|
||||
#define GB8LL ((unsigned long long)8*1024*1024*1024)
|
||||
#elif SIZEOF___INT64 > SIZEOF_LONG
|
||||
#define GB8LL ((unsigned __int64)8*1024*1024*1024)
|
||||
#else
|
||||
#define GB8LL ((unsigned long long)8*1024*1024*1024)
|
||||
#define GB8LL ((long)1)
|
||||
#endif
|
||||
|
||||
static hsize_t
|
||||
randll (hsize_t limit)
|
||||
{
|
||||
@ -90,10 +101,10 @@ is_sparse(void)
|
||||
if (5!=write(fd, "hello", 5)) return 0;
|
||||
if (stat("x.h5", &sb)<0) return 0;
|
||||
if (unlink("x.h5")<0) return 0;
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_STAT_ST_BLOCKS
|
||||
return (sb.st_blocks*512 < (unsigned)sb.st_size);
|
||||
#else
|
||||
return (0);
|
||||
return (0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
29
test/chunk.c
29
test/chunk.c
@ -8,15 +8,21 @@
|
||||
* Purpose: Checks the effect of various I/O request sizes and raw data
|
||||
* cache sizes. Performance depends on the amount of data read
|
||||
* from disk and we use a filter to get that number.
|
||||
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -25,11 +31,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#define FILE_NAME "chunk.h5"
|
||||
#define LINESPOINTS "lines"
|
||||
#define CH_SIZE 100 /*squared in terms of bytes */
|
||||
@ -241,11 +242,7 @@ test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
|
||||
{
|
||||
hid_t file, dset, mem_space, file_space;
|
||||
hsize_t i, hs_size[2];
|
||||
#if defined(WIN32)
|
||||
hssize_t nio = 0;
|
||||
#else
|
||||
hsize_t nio = 0;
|
||||
#endif
|
||||
hsize_t nio = 0;
|
||||
hssize_t hs_offset[2];
|
||||
char *buf = calloc (1, SQUARE (io_size));
|
||||
int mdc_nelmts, rdcc_nelmts;
|
||||
|
@ -5,14 +5,20 @@
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Friday, January 23, 1998
|
||||
*/
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -21,11 +27,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#define TEST_FILE_NAME "cmpd_dset.h5"
|
||||
|
||||
/* The first dataset */
|
||||
|
32
test/dsets.c
32
test/dsets.c
@ -7,16 +7,26 @@
|
||||
*
|
||||
* Purpose: Tests the dataset interface (H5D)
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(WIN32)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* See H5private.h for how to include files */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -24,10 +34,6 @@
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FUNCTION
|
||||
# undef __FUNCTION__
|
||||
|
@ -7,24 +7,33 @@
|
||||
*
|
||||
* Purpose: Tests the data type interface (H5T)
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <float.h>
|
||||
#include <hdf5.h>
|
||||
#include <math.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#if !defined (WIN32)
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <float.h>
|
||||
# include <math.h>
|
||||
# include <signal.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef _POSIX_VERSION
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#define H5T_PACKAGE
|
||||
#include <H5Tpkg.h> /*to turn off hardware conversions*/
|
||||
|
||||
#include <H5config.h>
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -32,10 +41,6 @@
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#if SIZEOF_DOUBLE != SIZEOF_LONG_DOUBLE
|
||||
# define USE_LDOUBLE
|
||||
|
@ -7,9 +7,17 @@
|
||||
*
|
||||
* Purpose: Tests extendible datasets.
|
||||
*/
|
||||
#include <assert.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define TEST_FILE_NAME "extend.h5"
|
||||
#define NX 100 /* USE AN EVEN NUMBER!*/
|
||||
|
@ -7,17 +7,26 @@
|
||||
*
|
||||
* Purpose: Tests datasets stored in external raw files.
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(WIN32)
|
||||
#include <unistd.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <H5config.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -26,11 +35,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#define TEST_FILE_NAME1 "extern_1.h5"
|
||||
#define TEST_FILE_NAME2 "extern_2.h5"
|
||||
#define TEST_FILE_NAME3 "extern_3.h5"
|
||||
@ -606,7 +610,8 @@ test_2 (void)
|
||||
|
||||
hs_space = H5Scopy (space);
|
||||
assert (hs_space>=0);
|
||||
status = H5Sselect_hyperslab (hs_space, H5S_SELECT_SET, &hs_start, NULL, &hs_count, NULL);
|
||||
status = H5Sselect_hyperslab (hs_space, H5S_SELECT_SET, &hs_start,
|
||||
NULL, &hs_count, NULL);
|
||||
assert (status>=0);
|
||||
|
||||
memset (whole, 0, sizeof(whole));
|
||||
|
@ -7,12 +7,23 @@
|
||||
*
|
||||
* Purpose: Tests dataset fill values.
|
||||
*/
|
||||
#include <fcntl.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
#if !defined(WIN32)
|
||||
#include <unistd.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <fcntl.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
/*
|
||||
* Define NO_FILLING if you want to compare how this test works when there is
|
||||
* no fill value (that is, when the fill value is zero).
|
||||
@ -28,7 +39,6 @@
|
||||
#define FILE_NAME_6 "fillval_6.h5"
|
||||
#define FILE_NAME_RAW "fillval.raw"
|
||||
|
||||
#include <H5config.h>
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -36,10 +46,7 @@
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: cleanup
|
||||
@ -232,7 +239,7 @@ test_getset(void)
|
||||
static int
|
||||
test_create(const char *filename, H5D_layout_t layout)
|
||||
{
|
||||
hid_t file, space, dcpl, dset1, dset2, dset3;
|
||||
hid_t file=-1, space=-1, dcpl=-1, dset1=-1, dset2=-1, dset3=-1;
|
||||
hsize_t cur_size[5] = {32, 16, 8, 4, 2};
|
||||
hsize_t ch_size[5] = {1, 1, 1, 4, 2};
|
||||
short rd_s, fill_s = 0x1234;
|
||||
@ -376,7 +383,7 @@ test_create(const char *filename, H5D_layout_t layout)
|
||||
static int
|
||||
test_rdwr(const char *filename, H5D_layout_t layout)
|
||||
{
|
||||
hid_t file, fspace, mspace, dcpl, dset;
|
||||
hid_t file=-1, fspace=-1, mspace=-1, dcpl=-1, dset=-1;
|
||||
hsize_t cur_size[5] = {32, 16, 8, 4, 2};
|
||||
hsize_t ch_size[5] = {1, 16, 8, 4, 2};
|
||||
hsize_t one[5] = {1, 1, 1, 1, 1};
|
||||
@ -520,7 +527,7 @@ test_rdwr(const char *filename, H5D_layout_t layout)
|
||||
static int
|
||||
test_extend(const char *filename, H5D_layout_t layout)
|
||||
{
|
||||
hid_t file, fspace, mspace, dcpl, dset;
|
||||
hid_t file=-1, fspace=-1, mspace=-1, dcpl=-1, dset=-1;
|
||||
hsize_t cur_size[5] = {32, 16, 8, 4, 2};
|
||||
hsize_t max_size[5] = {128, 64, 32, 16, 8};
|
||||
hsize_t ch_size[5] = {1, 16, 8, 4, 2};
|
||||
|
@ -11,11 +11,18 @@
|
||||
* calling _exit(0) since this doesn't flush HDF5 caches but
|
||||
* still exits with success.
|
||||
*/
|
||||
#include <hdf5.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdio.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
|
@ -10,14 +10,20 @@
|
||||
* as the file was flushed first. This half tries to read the
|
||||
* file created by the first half.
|
||||
*/
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
|
@ -5,25 +5,43 @@
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Thursday, March 12, 1998
|
||||
*/
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <H5config.h>
|
||||
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <time.h>
|
||||
#include <Winsock.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdio.h>
|
||||
# include <string.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(TIME_WITH_SYS_TIME)
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#elif defined(HAVE_SYS_TIME_H)
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
# include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINSOCK_H
|
||||
#include <Winsock.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#define RAW_FILE_NAME "iopipe.raw"
|
||||
#define HDF5_FILE_NAME "iopipe.h5"
|
||||
#define HEADING "%-16s"
|
||||
@ -148,20 +166,16 @@ synchronize (void)
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
#if defined(WIN32)
|
||||
static hssize_t size[2] = {REQUEST_SIZE_X, REQUEST_SIZE_Y};
|
||||
#else
|
||||
static hsize_t size[2] = {REQUEST_SIZE_X, REQUEST_SIZE_Y};
|
||||
#endif
|
||||
static int nread=NREAD_REQUESTS, nwrite=NWRITE_REQUESTS;
|
||||
|
||||
unsigned char *the_data = NULL;
|
||||
hid_t file, dset, file_space=-1;
|
||||
herr_t status;
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
struct rusage r_start, r_stop;
|
||||
#else
|
||||
struct timeval r_start, r_stop;
|
||||
struct timeval r_start, r_stop;
|
||||
#endif
|
||||
struct timeval t_start, t_stop;
|
||||
int i, fd;
|
||||
@ -194,7 +208,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "fill raw");
|
||||
@ -206,7 +220,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -220,7 +234,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "fill hdf5");
|
||||
@ -234,7 +248,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -247,7 +261,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "out raw");
|
||||
@ -262,7 +276,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -275,7 +289,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "out hdf5");
|
||||
@ -289,7 +303,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -302,7 +316,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "in raw");
|
||||
@ -317,7 +331,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -331,7 +345,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "in hdf5");
|
||||
@ -345,7 +359,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
@ -363,7 +377,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_start);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_start, NULL);
|
||||
#endif
|
||||
fprintf (stderr, HEADING, "in hdf5 partial");
|
||||
@ -377,7 +391,7 @@ main (void)
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
getrusage (RUSAGE_SELF, &r_stop);
|
||||
#endif
|
||||
#if !defined(WIN32)
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&t_stop, NULL);
|
||||
#endif
|
||||
putc ('\n', stderr);
|
||||
|
17
test/links.c
17
test/links.c
@ -7,11 +7,18 @@
|
||||
*
|
||||
* Purpose: Tests hard and soft (symbolic) links.
|
||||
*/
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -20,10 +27,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
#define TEST_FILE_NAME "links.h5"
|
||||
|
||||
#define FALSE 0
|
||||
|
16
test/mount.c
16
test/mount.c
@ -7,8 +7,16 @@
|
||||
*
|
||||
* Purpose: Tests file mounting.
|
||||
*/
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
@ -17,7 +25,6 @@
|
||||
#define FILE_NAME_2 "mount_2.h5"
|
||||
#define FILE_NAME_3 "mount_3.h5"
|
||||
|
||||
#include <H5config.h>
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -26,11 +33,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: cleanup
|
||||
|
36
test/mtime.c
36
test/mtime.c
@ -10,19 +10,30 @@
|
||||
* very OS-dependent and this test tries to figure out if it's
|
||||
* working properly.
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <math.h>
|
||||
#if !defined(WIN32)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <math.h>
|
||||
#endif
|
||||
|
||||
#if defined(TIME_WITH_SYS_TIME)
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#elif defined(HAVE_SYS_TIME_H)
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <H5private.h> /*for HDdifftime()*/
|
||||
|
||||
#define FILE_NAME_1 "mtime.h5"
|
||||
|
||||
#include <H5private.h>
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -30,10 +41,7 @@
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: display_error_cb
|
||||
|
@ -7,14 +7,25 @@
|
||||
*
|
||||
* Purpose: Creates a chunked dataset and measures the storage overhead.
|
||||
*/
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <ctype.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdlib.h>
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
|
@ -5,10 +5,18 @@
|
||||
* Programmer: Robb Matzke <robb@arborea.spizella.com>
|
||||
* Tuesday, August 25, 1998
|
||||
*/
|
||||
#include <assert.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <signal.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <H5private.h> /*for performance monitoring*/
|
||||
|
||||
@ -196,11 +204,7 @@ ragged_write_all(hid_t ra, hsize_t rows_at_once)
|
||||
hssize_t row; /*current row number */
|
||||
hsize_t i; /*counter */
|
||||
hsize_t max_width = quant_g[NELMTS(quant_g)-1].hi;
|
||||
#if !defined(WIN32)
|
||||
hsize_t interval_nelmts; /*elmts/interval timer */
|
||||
#else
|
||||
hssize_t interval_nelmts; /*elmts/interval timer */
|
||||
#endif
|
||||
hsize_t *size=NULL; /*size of each row */
|
||||
void **buf=NULL; /*buffer for each row */
|
||||
H5_timer_t timer, timer_total; /*performance timers */
|
||||
@ -302,11 +306,7 @@ ragged_read_all(hid_t ra, hsize_t rows_at_once)
|
||||
int total_nelmts=0;
|
||||
hsize_t i, j; /*counters */
|
||||
hssize_t row; /*current row number */
|
||||
#if !defined(WIN32)
|
||||
hsize_t interval_nelmts; /*elmts/interval timer */
|
||||
#else
|
||||
hssize_t interval_nelmts; /*elmts/interval timer */
|
||||
#endif
|
||||
hsize_t *size=NULL; /*size of each row */
|
||||
C_MTYPE **buf=NULL; /*buffer for each row */
|
||||
H5_timer_t timer, timer_total; /*performance timers */
|
||||
@ -437,14 +437,8 @@ ragged_read_short(hid_t ra, hsize_t rows_at_once, hsize_t width)
|
||||
int total_nelmts=0;
|
||||
hsize_t i, j;
|
||||
hssize_t row; /*current row number */
|
||||
#if !defined(WIN32)
|
||||
hsize_t interval_nelmts; /*elmts/interval timer */
|
||||
hsize_t read_nelmts=0; /*total elements read */
|
||||
#else
|
||||
hssize_t read_nelmts=0; /*total elements read */
|
||||
hssize_t interval_nelmts; /*elmts/interval timer */
|
||||
#endif
|
||||
|
||||
hsize_t read_nelmts=0; /*total elements read */
|
||||
hsize_t *size=NULL; /*size of each row */
|
||||
C_MTYPE **buf=NULL; /*buffer for each row */
|
||||
H5_timer_t timer, timer_total; /*performance timers */
|
||||
|
@ -7,11 +7,18 @@
|
||||
*
|
||||
* Purpose: Tests datasets with shared data types.
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <assert.h>
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -20,11 +27,6 @@
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#define TEST_FILE_NAME0 "shtype0.h5"
|
||||
#define TEST_FILE_NAME1 "shtype1.h5"
|
||||
#define TEST_FILE_NAME2A "shtype2a.h5"
|
||||
|
@ -113,18 +113,6 @@ extern int Verbosity;
|
||||
#define TEST_STR "Test"
|
||||
#define CLEAN_STR "Cleanup"
|
||||
|
||||
/* System command to use for Cleanup */
|
||||
#ifdef VMS
|
||||
#define CLEAN_CMD "delete *.hdf;*"
|
||||
#else
|
||||
# ifdef WIN32
|
||||
# define CLEAN_CMD "del *.hdf"
|
||||
# else
|
||||
/* default is Unix */
|
||||
# define CLEAN_CMD "rm -f *.hdf"
|
||||
# endif /* WIN32 */
|
||||
#endif /*VMS */
|
||||
|
||||
/* Prototypes for the support routines */
|
||||
int print_func(const char *,...);
|
||||
|
||||
|
@ -7,10 +7,17 @@
|
||||
*
|
||||
* Purpose: Test H5Gunlink().
|
||||
*/
|
||||
#include <hdf5.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* See H5private.h for how to include headers */
|
||||
#undef NDEBUG
|
||||
#include <H5config.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <hdf5.h>
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE
|
||||
# undef __attribute__
|
||||
# define __attribute__(X) /*void*/
|
||||
@ -18,15 +25,10 @@
|
||||
#else
|
||||
# define __unused__ __attribute__((unused))
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#undef __unused__
|
||||
#define __unused__
|
||||
#endif
|
||||
|
||||
#define FILE_NAME_1 "unlink.h5"
|
||||
#define THE_OBJECT "/foo"
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: cleanup
|
||||
|
@ -53,7 +53,7 @@ h5dump_prefix(char *s/*out*/, const h5dump_t *info, hsize_t elmtno, int ndims,
|
||||
hsize_t min_idx[], hsize_t max_idx[])
|
||||
{
|
||||
hsize_t p_prod[H5S_MAX_RANK], p_idx[H5S_MAX_RANK];
|
||||
hsize_t n, i;
|
||||
hsize_t n, i=0;
|
||||
char temp[1024];
|
||||
|
||||
if (ndims>0) {
|
||||
|
Loading…
Reference in New Issue
Block a user