Dmitry V. Levin
d95eaefb45
* tests/shutdown.c: New file. * tests/shutdown.test: New test. * tests/.gitignore: Add shutdown. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add shutdown.test.
16 lines
273 B
C
16 lines
273 B
C
/* Check decoding of shutdown syscall. */
|
|
|
|
#include "tests.h"
|
|
#include <stdio.h>
|
|
#include <sys/socket.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
int rc = shutdown(-1, SHUT_RDWR);
|
|
printf("shutdown(-1, SHUT_RDWR) = %d %s (%m)\n", rc, errno2name());
|
|
|
|
puts("+++ exited with 0 +++");
|
|
return 0;
|
|
}
|