Skip to content

Commit

Permalink
Rename HDsystem() to system() (#3197)
Browse files Browse the repository at this point in the history
system() is only used in the iopipe test and the things it calls
(which are POSIX-y) are protected by an ifdef.
  • Loading branch information
derobins authored Jun 28, 2023
1 parent d87efd3 commit 96d89bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/H5private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/test/perform/iopipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 96d89bc

Please sign in to comment.