add PTHREAD_NULL
[musl.git] / src / network / getsockname.c
blob7885fc13ba4c8a044df2c9eac1561fa1484fb594
1 #include <sys/socket.h>
2 #include "syscall.h"
4 int getsockname(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
6 return socketcall(getsockname, fd, addr, len, 0, 0, 0);