summaryrefslogtreecommitdiffstats
path: root/tools/h5jam/h5jamgentest.c
diff options
context:
space:
mode:
authorXuan Bai <xuanbai@hdfgroup.org>2004-08-18 22:10:11 (GMT)
committerXuan Bai <xuanbai@hdfgroup.org>2004-08-18 22:10:11 (GMT)
commit3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d (patch)
tree20f88fb9c4af374444037f014b9c4f7d079f18b5 /tools/h5jam/h5jamgentest.c
parentf18ae07925a760001bc59cd9fe0d89fa04860df1 (diff)
downloadhdf5-3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d.zip
hdf5-3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d.tar.gz
hdf5-3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d.tar.bz2
[svn-r9113] Purpose:
Update. Description: Make some minor change so that h5jamgentest.c is compatible with Windows. Solution: Change open() and write() functions to HDopen(), and HDwrite(). Platforms tested: Windows 2000 Windows XP eirene (Note: I talked with Bob and Kent about these changes before check-in) Misc. update:
Diffstat (limited to 'tools/h5jam/h5jamgentest.c')
-rw-r--r--tools/h5jam/h5jamgentest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/h5jam/h5jamgentest.c b/tools/h5jam/h5jamgentest.c
index e3bf10f..7f6342f 100644
--- a/tools/h5jam/h5jamgentest.c
+++ b/tools/h5jam/h5jamgentest.c
@@ -383,7 +383,7 @@ char *bp;
H5Fclose(fid);
- fd = open(FILE8,O_RDWR);
+ fd = HDopen(FILE8,O_RDWR, 0);
if (fd < 0) {
/* panic */
}
@@ -394,7 +394,7 @@ char *bp;
*bp++ = pattern[i%10];
}
- write(fd,buf,512);
+ HDwrite(fd,buf,512);
close(fd);
}
@@ -527,7 +527,7 @@ char *bp;
H5Fclose(fid);
- fd = open(FILE9,O_RDWR);
+ fd = HDopen(FILE9,O_RDWR, 0);
if (fd < 0) {
/* panic */
}
@@ -538,7 +538,7 @@ char *bp;
*bp++ = pattern[i%10];
}
- write(fd,buf,1024);
+ HDwrite(fd,buf,1024);
close(fd);
}
@@ -565,7 +565,7 @@ char *bp;
}
- write(fd,buf,size);
+ HDwrite(fd,buf,size);
close(fd);
}
@@ -593,7 +593,7 @@ char *bp;
*bp++ = (char) i & 0xff;
}
- write(fd,buf,size);
+ HDwrite(fd,buf,size);
close(fd);
}