X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libsysio%2Ftests%2Ftest_rename.c;h=13aa1eec2c87f0361ee903f25357de40699a2193;hb=24f601a0d459d48449d2e16b00f6ff3a889ed3b3;hp=7b784294d184f477b97ca00f309e49ac13599ab6;hpb=b8292c00324fbe9a25910ce53d03569186ea3e2c;p=fs%2Flustre-release.git diff --git a/libsysio/tests/test_rename.c b/libsysio/tests/test_rename.c index 7b78429..13aa1ee 100644 --- a/libsysio/tests/test_rename.c +++ b/libsysio/tests/test_rename.c @@ -41,25 +41,20 @@ * lee@sandia.gov */ -#define _BSD_SOURCE - #include #include #include -#ifndef REDSTORM -#include -#endif #include #include #include #include -#include +#include +#include +#if defined(SYSIO_LABEL_NAMES) #include "sysio.h" -#include "mount.h" - -#include "fs_native.h" - +#endif +#include "xtio.h" #include "test.h" /* @@ -102,7 +97,7 @@ main(int argc, char * const argv[]) exit(1); } - (void )umask(022); + (void )SYSIO_INTERFACE_NAME(umask)(022); /* * Source @@ -117,11 +112,11 @@ main(int argc, char * const argv[]) if (argc - optind) usage(); - err = rename(spath, dpath); + err = SYSIO_INTERFACE_NAME(rename)(spath, dpath); if (err) perror("rename"); - _sysio_shutdown(); + _test_sysio_shutdown(); return err; }