Dmitry V. Levin | d95eaef | 2016-07-18 23:39:18 +0000 | [diff] [blame] | 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 | } |