d46695866eabb5f679846b3c08e9acbbc43885ca
[yaffs2.git] / direct / timothy_tests / linux_tests / mkdir_link.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 =symlink("timothy/home/tests/new_dir" "timothy/home/test/new_dir_link");
10         output=mkdir("timothy/home/test/new_dir_link" );
11         printf("output %d\n",output);
12         if (output <0 ) {
13                 error_code = errno;
14                 printf("error code %d\n",error_code);
15                 printf("Error description is : %s\n",strerror(errno));
16         }
17         return 0;
18 }