select.c 265 字节
Newer Older
R
Rich Felker 已提交
1 2 3 4 5 6 7 8
#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;
9
	r = syscall(SYS_select, n, rfds, wfds, efds, tv);
10
	CANCELPT_TRY;
R
Rich Felker 已提交
11 12 13
	CANCELPT_END;
	return r;
}