allwinner_a64/android/external/strace/tests-mx32/shutdown.c
2018-08-08 16:14:42 +08:00

15 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;
}