Dmitry V. Levin
92e347b556
We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
23 lines
403 B
C
23 lines
403 B
C
/*
|
|
* Copyright (c) 2016-2018 The strace developers.
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
/* 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;
|
|
}
|