mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
17 lines
322 B
C
17 lines
322 B
C
#include "wut_socket.h"
|
|
|
|
int
|
|
getpeername(int sockfd,
|
|
struct sockaddr *addr,
|
|
socklen_t *addrlen)
|
|
{
|
|
int rc;
|
|
sockfd = __wut_get_nsysnet_fd(sockfd);
|
|
if (sockfd == -1) {
|
|
return -1;
|
|
}
|
|
rc = RPLWRAP(getpeername)(sockfd, addr, addrlen);
|
|
return __wut_get_nsysnet_result(NULL, rc);
|
|
}
|
|
|