1 #include "tests.h"
2 #include <asm/unistd.h>
3 
4 #ifdef __NR_setdomainname
5 
6 # include <stdio.h>
7 # include <unistd.h>
8 
9 int
main(void)10 main(void)
11 {
12 	long rc = syscall(__NR_setdomainname, 0, 63);
13 	printf("setdomainname(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_setdomainname")
23 
24 #endif
25