1 #include "tests.h" 2 #include <asm/unistd.h> 3 4 #ifdef __NR_symlink 5 6 # include <stdio.h> 7 # include <unistd.h> 8 9 int 10 main(int ac, char **av) 11 { 12 static const char sample[] = "symlink.sample"; 13 14 long rc = syscall(__NR_symlink, sample, av[0]); 15 printf("symlink(\"%s\", \"%s\") = %s\n", sample, av[0], sprintrc(rc)); 16 17 puts("+++ exited with 0 +++"); 18 return 0; 19 } 20 21 #else 22 23 SKIP_MAIN_UNDEFINED("__NR_symlink") 24 25 #endif 26