Adding select support for basic socket udp receive.
[akaros.git] / tools / compilers / gcc-glibc / glibc-2.14.1-ros / sysdeps / ros / select.c
1 #include <sysdep.h>
2 #include <sys/time.h>
3 #include <sys/types.h>
4 #include <stdint.h>
5 #include <unistd.h>
6 #include <stddef.h>
7 #include <sys/socket.h>
8 #include <ros/syscall.h>
9
10 int __select(int nfds, fd_set *readfds, fd_set *writefds,
11            fd_set *exceptfds, struct timeval *timeout) {
12         return ros_syscall(SYS_select, nfds, readfds, writefds, exceptfds, timeout, 0);
13 }
14
15 libc_hidden_def (__select)
16 weak_alias (__select, select)