JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... HLD = 1; } int main(int argc, char *argv[]) { sigset_t sigmask, empty_mask; struct sigaction sa; fd_set readfds, writefds, exceptfds; int r; sigemptyset(&sigmask); sigaddset(&sigmask, SIGCHLD); if (sigprocmask(SIG_BLOCK, &sigmask, NULL) == -1) { perror("s ... gaction"); exit(EXIT_FAILURE); } sigemptyset(&empty_mask); for (;;) { /* main loop */ /* Initialize readfds, writefds, and exceptfds before the pselect() call. (Code omitted.) */ r = pselect(nfds, &readfds, &writefds, &exceptfds, NULL, &empty_mask); if (r ... atoi(argv[1])); if (h == -1) exit(EXIT_FAILURE); for (;;) { int ready, nfds = 0; ssize_t nbytes; fd_set readfds, writefds, exceptfds; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&exceptfds); FD_SET(h, &readfds); nfds = max(nfds, h); if (fd1 > 0 && buf1 ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... e.h > #include < sys/types.h > #include < unistd.h > int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * exceptfds , struct timeval * timeout ); void FD_CLR(int fd , fd_set * set ); int FD_ISSET(int fd , fd_set * set ); void FD_SET(int f ... d 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) ... クリプターについては、書き込み用に利用可能な領域があるかを監視する (ただし、大きな書き込みの場合には停止する可能性はある)。 exceptfds にあるものについては、例外の監視を行なう。システムコール終了時に、 どのファイルディスクリプターの状態が実際に変化したか示す ... ... (Linux 3.10 以降) When this option is set on a socket, an error condition on a socket causes notification not only via the exceptfds set of select (2). Similarly, poll (2) also returns a POLLPRI whenever an POLLERR event is returned. Background: this opti ... nly via the readfds and writefds sets of select (2). The option was added to allow monitoring for error conditions via the exceptfds argument without simultaneously having to receive notifications (via readfds ) for regular data that can be read from the ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。