1/*
2 * Copyright 2002-2007, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include <poll.h>
8
9#include <errno.h>
10#include <pthread.h>
11
12#include <syscall_utils.h>
13
14#include <errno_private.h>
15#include <syscalls.h>
16
17
18int
19poll(struct pollfd *fds, nfds_t numfds, int timeout)
20{
21	RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_poll(fds, numfds, timeout * 1000LL));
22}
23