JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... sizeof(buf), stdin) == NULL) return NULL; if (buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = 0; return buf; } /* Add requests for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = st ... eqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs[nreqs - 1]->ar_name = strdup(host); } /* Queue nreqs_base..nreqs requests. */ ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base], nreqs - nreqs_base, NULL); if (ret) { fprintf(stderr, "getaddrinfo_ ... a() failed: %s\n", gai_strerror(ret)); exit(EXIT_FAILURE); } } /* Wait until at least one of specified requests completes */ static void wait_requests(void) { char *id; int ret, n; struct gaicb const **wait_reqs = calloc(nreqs, sizeof ... ... sizeof(buf), stdin) == NULL) return NULL; if (buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = 0; return buf; } /* Add requests for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = st ... eqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs[nreqs - 1]->ar_name = strdup(host); } /* Queue nreqs_base..nreqs requests. */ ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base], nreqs - nreqs_base, NULL); if (ret) { fprintf(stderr, "getaddrinfo_ ... a() failed: %s\n", gai_strerror(ret)); exit(EXIT_FAILURE); } } /* Wait until at least one of specified requests completes */ static void wait_requests(void) { char *id; int ret, n; struct gaicb const **wait_reqs = calloc(nreqs, sizeof ... ... sizeof(buf), stdin) == NULL) return NULL; if (buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = 0; return buf; } /* Add requests for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = st ... eqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs[nreqs - 1]->ar_name = strdup(host); } /* Queue nreqs_base..nreqs requests. */ ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base], nreqs - nreqs_base, NULL); if (ret) { fprintf(stderr, "getaddrinfo_ ... a() failed: %s\n", gai_strerror(ret)); exit(EXIT_FAILURE); } } /* Wait until at least one of specified requests completes */ static void wait_requests(void) { char *id; int ret, n; struct gaicb const **wait_reqs = calloc(nreqs, sizeof ... ... sizeof(buf), stdin) == NULL) return NULL; if (buf[strlen(buf) - 1] == '\n') buf[strlen(buf) - 1] = 0; return buf; } /* Add requests for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = st ... eqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs[nreqs - 1]->ar_name = strdup(host); } /* Queue nreqs_base..nreqs requests. */ ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base], nreqs - nreqs_base, NULL); if (ret) { fprintf(stderr, "getaddrinfo_ ... a() failed: %s\n", gai_strerror(ret)); exit(EXIT_FAILURE); } } /* Wait until at least one of specified requests completes */ static void wait_requests(void) { char *id; int ret, n; struct gaicb const **wait_reqs = calloc(nreqs, sizeof ... ... scriptor 4): In progress x I/O completion signal received aio_error(): for request 1 (descriptor 4): I/O succeeded All I/O requests completed aio_return(): for request 0 (descriptor 3): 4 for request 1 (descriptor 4): 2 プログラムのソース #include < fcnt ... sg) do { perror(msg); exit(EXIT_FAILURE); } while (0) struct ioRequest { /* Application-defined structure for tracking I/O requests */ int reqNum; int status; struct aiocb *aiocbp; }; static volatile sig_atomic_t gotSIGQUIT = 0; /* On delivery of SIGQUIT ... , we attempt to cancel all outstanding I/O requests */ static void /* Handler for SIGQUIT */ quitHandler(int sig) { gotSIGQUIT = 1; } #define IO_SIGNAL SIGUSR1 /* Signal used ... ... するが、 flags が追加されており、操作時の振る舞いを制御できる。 MNT_FORCE (2.1.116 以降) Ask the filesystem to abort pending requests before attempting the unmount. This may allow the unmount to complete without waiting for an inaccessible server, but coul ... d cause data loss. If, after aborting requests, some processes still have active references to the filesystem, the unmount will still fail. As at Linux 4.12, MNT_FORCE i ... ... するが、 flags が追加されており、操作時の振る舞いを制御できる。 MNT_FORCE (2.1.116 以降) Ask the filesystem to abort pending requests before attempting the unmount. This may allow the unmount to complete without waiting for an inaccessible server, but coul ... d cause data loss. If, after aborting requests, some processes still have active references to the filesystem, the unmount will still fail. As at Linux 4.12, MNT_FORCE i ... ... n_db.config file" whatis -> "1 1 795981543 A - - search the manual page names" zsoelim -> "1 1 795981543 A - - satisfy .so requests in roff input" 著者 Wilf. ( G.Wilford@ee.surrey.ac.uk ) ... ... 体である。 struct aioinit { int aio_threads; /* Maximum number of threads */ int aio_num; /* Number of expected simultaneous requests */ int aio_locks; /* Not used */ int aio_usedba; /* Not used */ int aio_debug; /* Not used */ int aio_numusers; /* Not use ... ... its have the following meanings: MS_ASYNC Specifies that an update be scheduled, but the call returns immediately. MS_SYNC Requests an update and waits for it to complete. MS_INVALIDATE Asks to invalidate other mappings of the same file (so that they can ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。