diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-08-06 19:30:00 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-08-06 19:30:00 (GMT) |
commit | 8cf233090fad0849732841469b53e28749501ef6 (patch) | |
tree | e1086336a521273ff2a36294877c2bdb823792a8 /test/big.c | |
parent | 88997338e63abbf7284c1ea56c75f4c92dd6afad (diff) | |
download | hdf5-8cf233090fad0849732841469b53e28749501ef6.zip hdf5-8cf233090fad0849732841469b53e28749501ef6.tar.gz hdf5-8cf233090fad0849732841469b53e28749501ef6.tar.bz2 |
[svn-r9040] 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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |