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

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