mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
15 lines
256 B
C
15 lines
256 B
C
#include "wut_socket.h"
|
|
|
|
int
|
|
shutdown(int sockfd,
|
|
int how)
|
|
{
|
|
int rc;
|
|
sockfd = __wut_get_nsysnet_fd(sockfd);
|
|
if (sockfd == -1) {
|
|
return -1;
|
|
}
|
|
rc = RPLWRAP(shutdown)(sockfd, how);
|
|
return __wut_get_nsysnet_result(NULL, rc);
|
|
}
|