JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 2 of about 2 for pfds (0.001 sec.)
Man page of POLL 9357
POLL Section: Linux Programmer's Manual (2) Updated: 2020-04-11 Index JM Home Page 名前 poll, ppoll - ファイルディスクリプターにおけるイベントを待つ 書式 #include < poll.h > int poll(struct pollfd * fds , nfds_t nfds , int timeout ); #defin ... { perror(msg); exit(EXIT_FAILURE); \ } while (0) int main(int argc, char *argv[]) { int nfds, num_open_fds; struct pollfd *pfds; if (argc < 2) { fprintf(stderr, "Usage: %s file...\n", argv[0]); exit(EXIT_FAILURE); } num_open_fds = nfds = argc - 1; pf ... ds = calloc(nfds, sizeof(struct pollfd)); if (pfds == NULL) errExit("malloc"); /* Open each file on command line, and add it 'pfds' array */ for (int j = 0; j < nfds; j++) { ... pfds[j].fd = open(argv[j + 1], O_RDONLY); if (pfds[j].fd == -1) errExit("open"); printf("Opened \"%s\" on fd %d\n", argv[j + 1] ...
https://man.mtool.work/man/20260915/man2/poll.2.html
Man page of POLL 9357
POLL Section: Linux Programmer's Manual (2) Updated: 2020-04-11 Index JM Home Page 名前 poll, ppoll - ファイルディスクリプターにおけるイベントを待つ 書式 #include < poll.h > int poll(struct pollfd * fds , nfds_t nfds , int timeout ); #defin ... { perror(msg); exit(EXIT_FAILURE); \ } while (0) int main(int argc, char *argv[]) { int nfds, num_open_fds; struct pollfd *pfds; if (argc < 2) { fprintf(stderr, "Usage: %s file...\n", argv[0]); exit(EXIT_FAILURE); } num_open_fds = nfds = argc - 1; pf ... ds = calloc(nfds, sizeof(struct pollfd)); if (pfds == NULL) errExit("malloc"); /* Open each file on command line, and add it 'pfds' array */ for (int j = 0; j < nfds; j++) { ... pfds[j].fd = open(argv[j + 1], O_RDONLY); if (pfds[j].fd == -1) errExit("open"); printf("Opened \"%s\" on fd %d\n", argv[j + 1] ...
https://man.mtool.work/man/20260915/man2/ppoll.2.html
PREV 1 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。