summaryrefslogtreecommitdiff
path: root/lib/libc/socket/accept4.c
blob: 25c28c0ea3b938ac65cefcfaadc6f3fb7cf2c9ea (plain)
1
2
3
4
5
6
7
8
9


#include <sys/socket.h> // for accept4, socklen_t
#include <syscall.h>	// for __syscall_4, syscall

int accept4(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len, int flag)
{
	return syscall(accept4, socket, address, address_len, flag);
}