diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-29 13:32:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 13:32:40 (GMT) |
commit | a90bdbbcfc6db6718d368fe7d0c570238e302bc7 (patch) | |
tree | 41e896d50e68458fa5cadddafeca80ef44c327e3 /test | |
parent | 651b20ccb7b83d5e9ef215594542cdb8119071a5 (diff) | |
download | hdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.zip hdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.tar.gz hdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.tar.bz2 |
Remove HD from protected POSIX calls (#3203)
These calls are non-C99 but protected by ifdefs and have no Windows
equivalents:
* HDalarm
* HDasprintf
* HDclock_gettime
* HDfcntl
* HDgethostname
* HDgetrusage
* HDsymlink
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 2 | ||||
-rw-r--r-- | test/links.c | 4 | ||||
-rw-r--r-- | test/testframe.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/h5test.c b/test/h5test.c index a35d8bf..d7a4116 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -958,7 +958,7 @@ h5_show_hostname(void) #endif #ifdef H5_HAVE_GETHOSTNAME - if (HDgethostname(hostname, (size_t)80) < 0) + if (gethostname(hostname, (size_t)80) < 0) printf(" gethostname failed\n"); else printf(" hostname=%s\n", hostname); diff --git a/test/links.c b/test/links.c index eda699e..a91186b 100644 --- a/test/links.c +++ b/test/links.c @@ -12519,7 +12519,7 @@ external_symlink(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) /* Create symbolic link #1 in temporary directory #1 to file #2 in temporary directory #2 */ /* (i.e. tmp_links/sym1.h5 -> <full path to>/tmp2_links/extlinks21B.h5) */ - if (HDsymlink(filename2b, SYMLINK1) < 0 && errno != EEXIST) + if (symlink(filename2b, SYMLINK1) < 0 && errno != EEXIST) TEST_ERROR; /* set up name for file #3 in temporary directory #2: "tmp2_links/extlinks21C" */ @@ -12533,7 +12533,7 @@ external_symlink(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) /* Create symbolic link #2 in temporary directory #2 to file #4 in temporary directory #1 */ /* (i.e. tmp2_links/sym2.h5 -> <full path to>/tmp_links/extlinks21D.h5) */ - if (HDsymlink(filename4b, SYMLINK2) < 0 && errno != EEXIST) + if (symlink(filename4b, SYMLINK2) < 0 && errno != EEXIST) TEST_ERROR; /* set up name for file #5 in temporary directory #1: "tmp_links/extlinks21E" */ diff --git a/test/testframe.c b/test/testframe.c index cd2947b..b69f42e 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -646,7 +646,7 @@ TestAlarmOn(void) alarm_sec = (unsigned)HDstrtoul(env_val, (char **)NULL, 10); /* Set the number of seconds before alarm goes off */ - HDalarm((unsigned)alarm_sec); + alarm((unsigned)alarm_sec); #endif } @@ -656,6 +656,6 @@ TestAlarmOff(void) { #ifdef H5_HAVE_ALARM /* Set the number of seconds to zero */ - HDalarm(0); + alarm(0); #endif } |