From 3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d Mon Sep 17 00:00:00 2001 From: Xuan Bai Date: Wed, 18 Aug 2004 17:10:11 -0500 Subject: [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: --- tools/h5jam/h5jamgentest.c | 12 ++++++------ 1 file 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); } -- cgit v0.12