summaryrefslogtreecommitdiff
path: root/src/network/getpeername.c
blob: 6567b45191571dbd3ef970c4c2861f3312e551f3 (plain)
1
2
3
4
5
6
7
#include <sys/socket.h>
#include "syscall.h"

int getpeername(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
{
	return socketcall(getpeername, fd, addr, len, 0, 0, 0);
}