6 int poll(struct pollfd
*fds
, nfds_t n
, int timeout
)
9 return syscall_cp(SYS_poll
, fds
, n
, timeout
);
11 #if SYS_ppoll_time64 == SYS_ppoll
12 typedef long long ppoll_ts_t
[2];
14 typedef long ppoll_ts_t
[2];
16 return syscall_cp(SYS_ppoll
, fds
, n
, timeout
>=0 ?
17 ((ppoll_ts_t
){ timeout
/1000, timeout
%1000*1000000 }) : 0,