X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Flinux_tests%2Frename.c;fp=direct%2Ftimothy_tests%2Flinux_tests%2Frename.c;h=9c40c2faada25fac2a15793b628c2606463efcde;hp=0000000000000000000000000000000000000000;hb=5f61aa469fb4b46a5a1f4aacbe459323b5d13edd;hpb=8a946551046502799aca7086e585f4b9e2437587 diff --git a/direct/timothy_tests/linux_tests/rename.c b/direct/timothy_tests/linux_tests/rename.c new file mode 100644 index 0000000..9c40c2f --- /dev/null +++ b/direct/timothy_tests/linux_tests/rename.c @@ -0,0 +1,17 @@ +#include +#include + + +int main() +{ + int output=0; + int error_code =0 ; + output=rename( "/home/timothy/test/cat/","/home/timothy/test/dog/"); + printf("output %d\n",output); + if (output <0 ) { + error_code = errno; + printf("error code %d\n",error_code); + printf("Error description is : %s\n",strerror(errno)); + } + return 0; +}