Dmitry V. Levin
3e15e018ef
Most of test executables were ready for the upcoming change, this change prepares all the rest. * tests/getdents.c (main): Use fixed name for the sample directory. * tests/getdents64.c (main): Likewise. * tests/readdir.c (main): Likewise. * tests/mknod.c (sample): Change to a pointer. (main): Use av[0] as a sample. * tests/symlink.c (main): Use av[0] as a linkpath. * tests/umode_t.c (sample): Change to a pointer. (test_syscall): Fix expected output. (main): Use av[0] as a sample.
26 lines
405 B
C
26 lines
405 B
C
#include "tests.h"
|
|
#include <asm/unistd.h>
|
|
|
|
#ifdef __NR_symlink
|
|
|
|
# include <stdio.h>
|
|
# include <unistd.h>
|
|
|
|
int
|
|
main(int ac, char **av)
|
|
{
|
|
static const char sample[] = "symlink.sample";
|
|
|
|
long rc = syscall(__NR_symlink, sample, av[0]);
|
|
printf("symlink(\"%s\", \"%s\") = %s\n", sample, av[0], sprintrc(rc));
|
|
|
|
puts("+++ exited with 0 +++");
|
|
return 0;
|
|
}
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_symlink")
|
|
|
|
#endif
|