summaryrefslogtreecommitdiffstats
path: root/test/big.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-08-06 19:29:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-08-06 19:29:57 (GMT)
commitf16e814f515007c1a70cd04e364004fae82a136a (patch)
tree48019e40c0f36e6a654e2f9d29bfa737817d0d0e /test/big.c
parente3c46f3eef3278b748df19a36db0529af1eb99aa (diff)
downloadhdf5-f16e814f515007c1a70cd04e364004fae82a136a.zip
hdf5-f16e814f515007c1a70cd04e364004fae82a136a.tar.gz
hdf5-f16e814f515007c1a70cd04e364004fae82a136a.tar.bz2
[svn-r9039] Purpose:
Code cleanup Description: At user's suggestion, convert some "naked" standard library calls to use the HD*() macros. Platforms tested: FreeBSD 4.10 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test/big.c')
-rw-r--r--test/big.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/big.c b/test/big.c
index 4765e8a..38e96c1 100644
--- a/test/big.c
+++ b/test/big.c
@@ -140,13 +140,13 @@ enough_room(hid_t fapl)
/* Create files */
for (i=0; i<NELMTS(fd); i++) {
HDsnprintf(name, sizeof name, filename, i);
- if ((fd[i]=open(name, O_RDWR|O_CREAT|O_TRUNC, 0666))<0) {
+ if ((fd[i]=HDopen(name, O_RDWR|O_CREAT|O_TRUNC, 0666))<0) {
goto done;
}
- if ((off_t)size != lseek(fd[i], (off_t)size, SEEK_SET)) {
+ if ((off_t)size != HDlseek(fd[i], (off_t)size, SEEK_SET)) {
goto done;
}
- if (1!=write(fd[i], "X", 1)) {
+ if (1!=HDwrite(fd[i], "X", 1)) {
goto done;
}
}
@@ -155,9 +155,9 @@ enough_room(hid_t fapl)
done:
for (i=0; i<NELMTS(fd) && fd[i]>=0; i++) {
HDsnprintf(name, sizeof name, filename, i);
- if(close(fd[i])<0)
+ if(HDclose(fd[i])<0)
ret_value=0;
- unlink(name);
+ HDunlink(name);
}
return ret_value;