mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-10 02:29:23 +01:00
16 lines
257 B
C
16 lines
257 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);
|
||
|
}
|
||
|
|