summaryrefslogtreecommitdiffstats
path: root/test/big.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-10-23 18:16:48 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-10-23 18:16:48 (GMT)
commit3a7c54b06f37b0648e1d8f337d11a1f13b67d60c (patch)
tree7d5dc6b2904a184459367a71a2f45817309ff38f /test/big.c
parent9bba487ca4dc89140684da78cd541aba4403df53 (diff)
downloadhdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.zip
hdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.tar.gz
hdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.tar.bz2
[svn-r781] Windows NT port-tested on Unix and NT
changes: defined __unused__ as nothing, other little changes. all changes are surrounded by #if defined(WIN32)
Diffstat (limited to 'test/big.c')
-rw-r--r--test/big.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/big.c b/test/big.c
index c2c81bf..108c1de 100644
--- a/test/big.c
+++ b/test/big.c
@@ -21,8 +21,11 @@
#define WRT_N 50
#define WRT_SIZE 4*1024
#define FAMILY_SIZE 1024*1024*1024
+#if defined(WIN32)
+#define GB8LL ((unsigned __int64)8*1024*1024*1024)
+#else
#define GB8LL ((unsigned long long)8*1024*1024*1024)
-
+#endif
static hsize_t
randll (hsize_t limit)
{
@@ -87,7 +90,11 @@ 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)
return (sb.st_blocks*512 < (unsigned)sb.st_size);
+#else
+ return (0);
+#endif
}