source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/select/poll.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 381 bytes
Line 
1#include <poll.h>
2#include <time.h>
3#include <signal.h>
4#include "syscall.h"
5#include "libc.h"
6
7int poll(struct pollfd *fds, nfds_t n, int timeout)
8{
9#ifdef SYS_poll
10 return syscall_cp(SYS_poll, fds, n, timeout);
11#else
12 return syscall_cp(SYS_ppoll, fds, n, timeout>=0 ?
13 &((struct timespec){ .tv_sec = timeout/1000,
14 .tv_nsec = timeout%1000*1000000 }) : 0, 0, _NSIG/8);
15#endif
16}
Note: See TracBrowser for help on using the repository browser.