17 lines
299 B
C
Raw Normal View History

2021-03-07 13:09:12 +01:00
#include "wut_socket.h"
int
bind(int sockfd,
const struct sockaddr *addr,
socklen_t addrlen)
{
int rc;
sockfd = __wut_get_nsysnet_fd(sockfd);
if (sockfd == -1) {
return -1;
}
rc = RPLWRAP(bind)(sockfd, addr, addrlen);
return __wut_get_nsysnet_result(NULL, rc);
}