Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1c188806293403ff6f4becc072e8af553aa3fe6b
[fs/lustre-release.git]
/
lustre
/
tests
/
mrename.c
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include <errno.h>
4
#include <string.h>
5
6
int main(int argc, char *argv[])
7
{
8
int rc;
9
10
if (argc != 3) {
11
fprintf(stderr, "usage: %s from to\n", argv[0]);
12
exit(1);
13
}
14
15
rc = rename(argv[1], argv[2]);
16
printf("rename returned %d: %s\n", rc, strerror(errno));
17
18
return rc;
19
}