mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[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:
parent
f18ae07925
commit
3fe6ec1141
@ -383,7 +383,7 @@ char *bp;
|
|||||||
H5Fclose(fid);
|
H5Fclose(fid);
|
||||||
|
|
||||||
|
|
||||||
fd = open(FILE8,O_RDWR);
|
fd = HDopen(FILE8,O_RDWR, 0);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
/* panic */
|
/* panic */
|
||||||
}
|
}
|
||||||
@ -394,7 +394,7 @@ char *bp;
|
|||||||
*bp++ = pattern[i%10];
|
*bp++ = pattern[i%10];
|
||||||
}
|
}
|
||||||
|
|
||||||
write(fd,buf,512);
|
HDwrite(fd,buf,512);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
@ -527,7 +527,7 @@ char *bp;
|
|||||||
H5Fclose(fid);
|
H5Fclose(fid);
|
||||||
|
|
||||||
|
|
||||||
fd = open(FILE9,O_RDWR);
|
fd = HDopen(FILE9,O_RDWR, 0);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
/* panic */
|
/* panic */
|
||||||
}
|
}
|
||||||
@ -538,7 +538,7 @@ char *bp;
|
|||||||
*bp++ = pattern[i%10];
|
*bp++ = pattern[i%10];
|
||||||
}
|
}
|
||||||
|
|
||||||
write(fd,buf,1024);
|
HDwrite(fd,buf,1024);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
@ -565,7 +565,7 @@ char *bp;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
write(fd,buf,size);
|
HDwrite(fd,buf,size);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
@ -593,7 +593,7 @@ char *bp;
|
|||||||
*bp++ = (char) i & 0xff;
|
*bp++ = (char) i & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
write(fd,buf,size);
|
HDwrite(fd,buf,size);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user