source: azure_iot_hub/trunk/musl-1.1.18/src/select/pselect.c@ 389

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

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 445 bytes
Line 
1#include <sys/select.h>
2#include <signal.h>
3#include <stdint.h>
4#include "syscall.h"
5#include "libc.h"
6
7int pselect(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec *restrict ts, const sigset_t *restrict mask)
8{
9 syscall_arg_t data[2] = { (uintptr_t)mask, _NSIG/8 };
10 struct timespec ts_tmp;
11 if (ts) ts_tmp = *ts;
12 return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, ts ? &ts_tmp : 0, data);
13}
Note: See TracBrowser for help on using the repository browser.