Whamcloud - gitweb
LU-4405 mdc: use ibits_known mask for lock match
[fs/lustre-release.git] / libsysio / tests / test_rename.c
index 8bc2ec8..13aa1ee 100644 (file)
@@ -41,8 +41,6 @@
  * lee@sandia.gov
  */
 
-#define _BSD_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/uio.h>
+#include <getopt.h>
 
+#if defined(SYSIO_LABEL_NAMES)
+#include "sysio.h"
+#endif
 #include "xtio.h"
 #include "test.h"
 
@@ -95,7 +97,7 @@ main(int argc, char * const argv[])
                exit(1);
        }       
 
-       (void )umask(022);
+       (void )SYSIO_INTERFACE_NAME(umask)(022);
 
        /*
         * Source
@@ -110,7 +112,7 @@ 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");