]> granicus.if.org Git - strace/blob - tests/sethostname.c
Mpersify RTC_* ioctl parser
[strace] / tests / sethostname.c
1 #include "tests.h"
2 #include <sys/syscall.h>
3
4 #ifdef __NR_sethostname
5
6 # include <stdio.h>
7 # include <unistd.h>
8
9 int
10 main(void)
11 {
12         long rc = syscall(__NR_sethostname, 0, 63);
13         printf("sethostname(NULL, 63) = %ld %s (%m)\n",
14                rc, errno2name());
15
16         puts("+++ exited with 0 +++");
17         return 0;
18 }
19
20 #else
21
22 SKIP_MAIN_UNDEFINED("__NR_sethostname")
23
24 #endif