Last change
on this file since 333 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr
|
File size:
1.2 KB
|
Rev | Line | |
---|
[331] | 1 | #ifndef _SYS_SELECT_H
|
---|
| 2 | #define _SYS_SELECT_H
|
---|
| 3 | #ifdef __cplusplus
|
---|
| 4 | extern "C" {
|
---|
| 5 | #endif
|
---|
| 6 |
|
---|
| 7 | #include <features.h>
|
---|
| 8 |
|
---|
| 9 | #define __NEED_size_t
|
---|
| 10 | #define __NEED_time_t
|
---|
| 11 | #define __NEED_suseconds_t
|
---|
| 12 | #define __NEED_struct_timeval
|
---|
| 13 | #define __NEED_struct_timespec
|
---|
| 14 | #define __NEED_sigset_t
|
---|
| 15 |
|
---|
| 16 | #include <bits/alltypes.h>
|
---|
| 17 |
|
---|
| 18 | #define FD_SETSIZE 32
|
---|
| 19 |
|
---|
| 20 | typedef unsigned long fd_mask;
|
---|
| 21 |
|
---|
| 22 | typedef struct {
|
---|
| 23 | unsigned long fds_bits[FD_SETSIZE / 8 / sizeof(long)];
|
---|
| 24 | } fd_set;
|
---|
| 25 |
|
---|
| 26 | #define FD_ZERO(s) do { int __i; unsigned long *__b=(s)->fds_bits; for(__i=sizeof (fd_set)/sizeof (long); __i; __i--) *__b++=0; } while(0)
|
---|
| 27 | #define FD_SET(d, s) ((s)->fds_bits[(d)/(8*sizeof(long))] |= (1UL<<((d)%(8*sizeof(long)))))
|
---|
| 28 | #define FD_CLR(d, s) ((s)->fds_bits[(d)/(8*sizeof(long))] &= ~(1UL<<((d)%(8*sizeof(long)))))
|
---|
| 29 | #define FD_ISSET(d, s) !!((s)->fds_bits[(d)/(8*sizeof(long))] & (1UL<<((d)%(8*sizeof(long)))))
|
---|
| 30 |
|
---|
| 31 | int select (int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, struct timeval *__restrict);
|
---|
| 32 | int pselect (int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, const struct timespec *__restrict, const sigset_t *__restrict);
|
---|
| 33 |
|
---|
| 34 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
---|
| 35 | #define NFDBITS (8*(int)sizeof(long))
|
---|
| 36 | #endif
|
---|
| 37 |
|
---|
| 38 | #ifdef __cplusplus
|
---|
| 39 | }
|
---|
| 40 | #endif
|
---|
| 41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.