summaryrefslogtreecommitdiff
path: root/src/network/accept.c
blob: 46adff5ce9cd254672a424574a0059378aca1bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/socket.h>
#include "syscall.h"
#include "libc.h"

int accept(int fd, struct sockaddr *addr, socklen_t *len)
{
	int ret;
	CANCELPT_BEGIN;
	ret = socketcall(accept, fd, addr, len, 0, 0, 0);
	CANCELPT_END;
	return ret;
}