summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-03-31 20:39:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-03-31 20:39:18 (GMT)
commitf4e7559bd2d8bbd59535cbcafab78e162a6bffb6 (patch)
treeb4339300a7d08fe64266ad183213da8a38fb986e /perform/zip_perf.c
parent9c0a2b214519c6f0508964981be19bf2e3054e35 (diff)
downloadhdf5-f4e7559bd2d8bbd59535cbcafab78e162a6bffb6.zip
hdf5-f4e7559bd2d8bbd59535cbcafab78e162a6bffb6.tar.gz
hdf5-f4e7559bd2d8bbd59535cbcafab78e162a6bffb6.tar.bz2
[svn-r20383] Description:
Bring r19714:20382 from trunk to revise_chunks branch Tested: Linux 2.6/64 (chicago)
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 08177d8..5729baf 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -21,20 +21,6 @@
* -1 to -9 : compression level
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <math.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#ifdef H5_HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
/* our header files */
#include "h5test.h"
#include "h5tools_utils.h"
@@ -43,14 +29,6 @@
#include <zlib.h>
-#if defined(MSDOS) || defined(OS2) || defined(_WIN32)
-# include <fcntl.h>
-# include <io.h>
-# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
-#else
-# define SET_BINARY_MODE(file) /* nothing */
-#endif /* MSDOS || OS2 || _WIN32 */
-
#ifdef VMS
# define unlink delete
# define GZ_SUFFIX "-gz"
@@ -430,7 +408,7 @@ static void
fill_with_random_data(Bytef *src, uLongf src_len)
{
register unsigned u;
- struct stat stat_buf;
+ h5_stat_t stat_buf;
if (stat("/dev/urandom", &stat_buf) == 0) {
uLongf len = src_len;