]> granicus.if.org Git - strace/blob - tests/shutdown.c
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / shutdown.c
1 /* Check decoding of shutdown syscall. */
2
3 #include "tests.h"
4 #include <stdio.h>
5 #include <sys/socket.h>
6
7 int
8 main(void)
9 {
10         int rc = shutdown(-1, SHUT_RDWR);
11         printf("shutdown(-1, SHUT_RDWR) = %d %s (%m)\n", rc, errno2name());
12
13         puts("+++ exited with 0 +++");
14         return 0;
15 }