mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 17:29:38 +01:00
19 lines
371 B
C
19 lines
371 B
C
#include "wut_socket.h"
|
|
|
|
int
|
|
getsockopt(int sockfd,
|
|
int level,
|
|
int optname,
|
|
void *optval,
|
|
socklen_t *optlen)
|
|
{
|
|
int rc;
|
|
sockfd = __wut_get_nsysnet_fd(sockfd);
|
|
if (sockfd == -1) {
|
|
return -1;
|
|
}
|
|
rc = RPLWRAP(getsockopt)(sockfd, level, optname, optval, optlen);
|
|
return __wut_get_nsysnet_result(NULL, rc);
|
|
}
|
|
|