]> granicus.if.org Git - strace/blob - shutdown.c
xlat: add BPF_F_TEST_STATE_FREQ to bpf_prog_flags
[strace] / shutdown.c
1 /*
2  * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3  * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4  * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5  * Copyright (c) 1996-2000 Wichert Akkerman <wichert@cistron.nl>
6  * Copyright (c) 1999-2018 The strace developers.
7  * All rights reserved.
8  *
9  * SPDX-License-Identifier: LGPL-2.1-or-later
10  */
11
12 #include "defs.h"
13
14 #include <sys/socket.h>
15 #include "xlat/shutdown_modes.h"
16
17 SYS_FUNC(shutdown)
18 {
19         printfd(tcp, tcp->u_arg[0]);
20         tprints(", ");
21         printxval(shutdown_modes, tcp->u_arg[1], "SHUT_???");
22
23         return RVAL_DECODED;
24 }