From ebd95ae5d8f5a7e592ef6733efff4e278bea1bc2 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: [PATCH] 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 f14b54b953b..c08da407f5e 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 fb62f169fff..d47420a43aa 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 }