]> granicus.if.org Git - strace/blob - tests/shutdown.c
Remove XLAT_END
[strace] / tests / shutdown.c
1 /*
2  * Copyright (c) 2016-2018 The strace developers.
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  */
7
8 /* Check decoding of shutdown syscall. */
9
10 #include "tests.h"
11 #include <stdio.h>
12 #include <sys/socket.h>
13
14 int
15 main(void)
16 {
17         int rc = shutdown(-1, SHUT_RDWR);
18         printf("shutdown(-1, SHUT_RDWR) = %d %s (%m)\n", rc, errno2name());
19
20         puts("+++ exited with 0 +++");
21         return 0;
22 }