[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:
This commit is contained in:
Xuan Bai 2004-08-18 17:10:11 -05:00
parent f18ae07925
commit 3fe6ec1141

View File

@ -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);
}