(root)/
strace-6.5/
src/
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-2021 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  	/* sockfd */
      20  	printfd(tcp, tcp->u_arg[0]);
      21  	tprint_arg_next();
      22  
      23  	/* how */
      24  	printxval(shutdown_modes, tcp->u_arg[1], "SHUT_???");
      25  
      26  	return RVAL_DECODED;
      27  }