summaryrefslogtreecommitdiff
path: root/src/select/select.c
blob: b38e7fd287ca3447a86396cc6cb6d0c3b6a9b421 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/select.h>
#include "syscall.h"
#include "libc.h"

int select(int n, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv)
{
	int r;
	CANCELPT_BEGIN;
	r = syscall(SYS_select, n, rfds, wfds, efds, tv);
	CANCELPT_TRY;
	CANCELPT_END;
	return r;
}