synccall: add separate exit_sem to fix thread release logic bug
[musl.git] / src / network / getpeername.c
blob6567b45191571dbd3ef970c4c2861f3312e551f3
1 #include <sys/socket.h>
2 #include "syscall.h"
4 int getpeername(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
6 return socketcall(getpeername, fd, addr, len, 0, 0, 0);