projects
/
yaffs2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[yaffs2.git]
/
timothy_tests
/
linux_tests
/
rename.c
1
#include <stdio.h>
2
#include <errno.h>
3
4
5
int main()
6
{
7
int output=0;
8
int error_code =0 ;
9
output=rename( "/home/timothy/test/cat/","/home/timothy/test/dog/");
10
printf("output %d\n",output);
11
if (output <0 ) {
12
error_code = errno;
13
printf("error code %d\n",error_code);
14
printf("Error description is : %s\n",strerror(errno));
15
}
16
return 0;
17
}