From 96d89bcae7b47402b97e87787a007d558ddcb66b Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:01:26 -0700 Subject: 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. --- src/H5private.h | 3 --- tools/test/perform/iopipe.c | 4 ++-- 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 } -- cgit v0.12