summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 20:01:26 (GMT)
committerGitHub <noreply@github.com>2023-06-28 20:01:26 (GMT)
commit96d89bcae7b47402b97e87787a007d558ddcb66b (patch)
tree8f5cc2ef9daca6818f440c3d12359b64ff16eea8
parentd87efd3a46f55d4f994e79f5d8c88b56d866da34 (diff)
downloadhdf5-96d89bcae7b47402b97e87787a007d558ddcb66b.zip
hdf5-96d89bcae7b47402b97e87787a007d558ddcb66b.tar.gz
hdf5-96d89bcae7b47402b97e87787a007d558ddcb66b.tar.bz2
Rename HDsystem() to system() (#3197)
system() is only used in the iopipe test and the things it calls (which are POSIX-y) are protected by an ifdef.
-rw-r--r--src/H5private.h3
-rw-r--r--tools/test/perform/iopipe.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/H5private.h b/src/H5private.h
index f14b54b..c08da40 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1158,9 +1158,6 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation);
#ifndef HDsymlink
#define HDsymlink(F1, F2) symlink(F1, F2)
#endif
-#ifndef HDsystem
-#define HDsystem(S) system(S)
-#endif
#ifndef HDtime
#define HDtime(T) time(T)
#endif
diff --git a/tools/test/perform/iopipe.c b/tools/test/perform/iopipe.c
index fb62f16..d47420a 100644
--- a/tools/test/perform/iopipe.c
+++ b/tools/test/perform/iopipe.c
@@ -99,10 +99,10 @@ synchronize(void)
#else
int H5_ATTR_NDEBUG_UNUSED status;
- status = HDsystem("sync");
+ status = system("sync");
assert(status >= 0);
- status = HDsystem("df >/dev/null");
+ status = system("df >/dev/null");
assert(status >= 0);
#endif
}