JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... T(int fd , fd_set * set ); void FD_SET(int fd , fd_set * set ); void FD_ZERO(fd_set * set ); #include < sys/select.h > int pselect(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , const struct timespec * timeout , const sigset_t * ... sigmask ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): pselect (): _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 説明 select () や pselect () を使うと、プログラムで複数のファイルデ ... る I/O 操作が停止 (block) なしに実行したり、 十分小さな write (2) を実行したりできる状態にあることを意味する。 select () と pselect () の動作は同じであるが、以下の 3 点が異なる: (i) select () では、タイムアウト時間の指定に構造体 struct timeval (秒・マイク ... ... und and tutorial information on the use of these system calls. For details of the arguments and semantics of select () and pselect (), see select (2). シグナルとデータイベントを組み合わせる ファイルディスクリプターが I/O 可能な状態になるのと同時に シグナ ... ルも待ちたい場合には、 pselect () が便利である。 シグナルを受信するプログラムは、通常は、 シグナルハンドラーをグローバルなフラグを立てるためだけに使う。 ... ルなフラグは、 そのイベントをプログラムのメインループで 処理しなければならないことを示す。 シグナルを受けると select () (や pselect ()) は errno に EINTR をセットして戻ることになる。 シグナルがプログラムのメインループで処理されるためにはこの動作が不可欠で ... ... or a list of the bits that may appear in this mask. epoll_pwait() epoll_wait () と epoll_pwait () の関係は、 select (2) と pselect (2) の関係と同様である。 pselect (2) 同様、 epoll_pwait () を使うと、アプリケーションは、ファイルディスクリプターが準備でき ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。