Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-633 iokit: mds-survey script for MD echo client test
[fs/lustre-release.git]
/
libsysio
/
tests
/
test_rename.c
diff --git
a/libsysio/tests/test_rename.c
b/libsysio/tests/test_rename.c
index
7b78429
..
13aa1ee
100644
(file)
--- a/
libsysio/tests/test_rename.c
+++ b/
libsysio/tests/test_rename.c
@@
-41,25
+41,20
@@
* lee@sandia.gov
*/
* lee@sandia.gov
*/
-#define _BSD_SOURCE
-
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#ifndef REDSTORM
-#include <getopt.h>
-#endif
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/queue.h>
+#include <sys/uio.h>
+#include <getopt.h>
+#if defined(SYSIO_LABEL_NAMES)
#include "sysio.h"
#include "sysio.h"
-#include "mount.h"
-
-#include "fs_native.h"
-
+#endif
+#include "xtio.h"
#include "test.h"
/*
#include "test.h"
/*
@@
-102,7
+97,7
@@
main(int argc, char * const argv[])
exit(1);
}
exit(1);
}
- (void )
umask
(022);
+ (void )
SYSIO_INTERFACE_NAME(umask)
(022);
/*
* Source
/*
* Source
@@
-117,11
+112,11
@@
main(int argc, char * const argv[])
if (argc - optind)
usage();
if (argc - optind)
usage();
- err =
rename
(spath, dpath);
+ err =
SYSIO_INTERFACE_NAME(rename)
(spath, dpath);
if (err)
perror("rename");
if (err)
perror("rename");
- _sysio_shutdown();
+ _
test_
sysio_shutdown();
return err;
}
return err;
}