summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 13:32:40 (GMT)
committerGitHub <noreply@github.com>2023-06-29 13:32:40 (GMT)
commita90bdbbcfc6db6718d368fe7d0c570238e302bc7 (patch)
tree41e896d50e68458fa5cadddafeca80ef44c327e3 /test/links.c
parent651b20ccb7b83d5e9ef215594542cdb8119071a5 (diff)
downloadhdf5-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/links.c')
-rw-r--r--test/links.c4
1 files changed, 2 insertions, 2 deletions
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" */