mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-22 01:44:41 -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 {} \;`
16 lines
298 B
C
16 lines
298 B
C
#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);
|
|
}
|