summaryrefslogtreecommitdiff
path: root/src/select/select.c
blob: b3946635f9d85d3cb2c8e37046fd73268912b4e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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 = syscall5(__NR_select, n, (long)rfds, (long)wfds, (long)efds, (long)tv);
	CANCELPT_END;
	return r;
}