1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2012-03-22 04:25+0900\n"
10 "PO-Revision-Date: 2012-03-23 03:44+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
19 #: build/C/man7/aio.7:24
25 #: build/C/man7/aio.7:24 build/C/man3/aio_fsync.3:23
26 #: build/C/man3/aio_suspend.3:24 build/C/man3/aio_write.3:23
32 #: build/C/man7/aio.7:24 build/C/man3/aio_init.3:24
33 #: build/C/man2/io_cancel.2:23 build/C/man2/io_destroy.2:23
34 #: build/C/man2/io_getevents.2:23 build/C/man2/io_setup.2:23
35 #: build/C/man2/io_submit.2:23
41 #: build/C/man7/aio.7:24 build/C/man3/aio_cancel.3:23
42 #: build/C/man3/aio_error.3:23 build/C/man3/aio_fsync.3:23
43 #: build/C/man3/aio_init.3:24 build/C/man3/aio_read.3:23
44 #: build/C/man3/aio_return.3:23 build/C/man3/aio_suspend.3:24
45 #: build/C/man3/aio_write.3:23 build/C/man2/io_cancel.2:23
46 #: build/C/man2/io_destroy.2:23 build/C/man2/io_getevents.2:23
47 #: build/C/man2/io_setup.2:23 build/C/man2/io_submit.2:23
48 #: build/C/man3/lio_listio.3:23
50 msgid "Linux Programmer's Manual"
51 msgstr "Linux Programmer's Manual"
54 #: build/C/man7/aio.7:25 build/C/man3/aio_cancel.3:24
55 #: build/C/man3/aio_error.3:24 build/C/man3/aio_fsync.3:24
56 #: build/C/man3/aio_init.3:25 build/C/man3/aio_read.3:24
57 #: build/C/man3/aio_return.3:24 build/C/man3/aio_suspend.3:25
58 #: build/C/man3/aio_write.3:24 build/C/man2/io_cancel.2:24
59 #: build/C/man2/io_destroy.2:24 build/C/man2/io_getevents.2:24
60 #: build/C/man2/io_setup.2:24 build/C/man2/io_submit.2:24
61 #: build/C/man3/lio_listio.3:24
67 #: build/C/man7/aio.7:27
68 msgid "aio - POSIX asynchronous I/O overview"
72 #: build/C/man7/aio.7:27 build/C/man3/aio_cancel.3:32
73 #: build/C/man3/aio_error.3:32 build/C/man3/aio_fsync.3:32
74 #: build/C/man3/aio_init.3:36 build/C/man3/aio_read.3:32
75 #: build/C/man3/aio_return.3:32 build/C/man3/aio_suspend.3:38
76 #: build/C/man3/aio_write.3:32 build/C/man2/io_cancel.2:42
77 #: build/C/man2/io_destroy.2:40 build/C/man2/io_getevents.2:43
78 #: build/C/man2/io_setup.2:40 build/C/man2/io_submit.2:41
79 #: build/C/man3/lio_listio.3:35
85 #: build/C/man7/aio.7:35
87 "The POSIX asynchronous I/O (AIO) interface allows applications to initiate "
88 "one or more I/O operations that are performed asynchronously (i.e., in the "
89 "background). The application can elect to be notified of completion of the "
90 "I/O operation in a variety of ways: by delivery of a signal, by "
91 "instantiation of a thread, or no notification at all."
95 #: build/C/man7/aio.7:37
96 msgid "The POSIX AIO interface consists of the following functions:"
100 #: build/C/man7/aio.7:37
102 msgid "B<aio_read>(3)"
103 msgstr "B<aio_read>(3)"
106 #: build/C/man7/aio.7:42
107 msgid "Enqueue a read request. This is the asynchronous analog of B<read>(2)."
111 #: build/C/man7/aio.7:42
113 msgid "B<aio_write>(3)"
114 msgstr "B<aio_write>(3)"
117 #: build/C/man7/aio.7:47
119 "Enqueue a write request. This is the asynchronous analog of B<write>(2)."
123 #: build/C/man7/aio.7:47
125 msgid "B<aio_fsync>(3)"
126 msgstr "B<aio_fsync>(3)"
129 #: build/C/man7/aio.7:54
131 "Enqueue a sync request for the I/O operations on a file descriptor. This is "
132 "the asynchronous analog of B<fsync>(2) and B<fdatasync>(2)."
136 #: build/C/man7/aio.7:54
138 msgid "B<aio_error>(3)"
139 msgstr "B<aio_error>(3)"
142 #: build/C/man7/aio.7:57
143 msgid "Obtain the error status of an enqueued I/O request."
147 #: build/C/man7/aio.7:57
149 msgid "B<aio_return>(3)"
150 msgstr "B<aio_return>(3)"
153 #: build/C/man7/aio.7:60
154 msgid "Obtain the return status of a completed I/O request."
158 #: build/C/man7/aio.7:60
160 msgid "B<aio_suspend>(3)"
161 msgstr "B<aio_suspend>(3)"
164 #: build/C/man7/aio.7:64
166 "Suspend the caller until one or more of a specified set of I/O requests "
171 #: build/C/man7/aio.7:64
173 msgid "B<aio_cancel>(3)"
174 msgstr "B<aio_cancel>(3)"
177 #: build/C/man7/aio.7:68
179 "Attempt to cancel outstanding I/O requests on a specified file descriptor."
183 #: build/C/man7/aio.7:68
185 msgid "B<lio_listio>(3)"
186 msgstr "B<lio_listio>(3)"
189 #: build/C/man7/aio.7:71
190 msgid "Enqueue multiple I/O requests using a single function call."
194 #: build/C/man7/aio.7:78
196 "The I<aiocb> (\"asynchronous I/O control block\") structure defines "
197 "parameters that control an I/O operation. An argument of this type is "
198 "employed with all of the functions listed above. This structure has the "
203 #: build/C/man7/aio.7:82
205 msgid "#include E<lt>aiocb.hE<gt>\n"
206 msgstr "#include E<lt>aiocb.hE<gt>\n"
209 #: build/C/man7/aio.7:85
213 " /* The order of these fields is implementation-dependent */\n"
217 #: build/C/man7/aio.7:94
220 " int aio_fildes; /* File descriptor */\n"
221 " off_t aio_offset; /* File offset */\n"
222 " volatile void *aio_buf; /* Location of buffer */\n"
223 " size_t aio_nbytes; /* Length of transfer */\n"
224 " int aio_reqprio; /* Request priority */\n"
225 " struct sigevent aio_sigevent; /* Notification method */\n"
226 " int aio_lio_opcode; /* Operation to be performed;\n"
227 " lio_listio() only */\n"
231 #: build/C/man7/aio.7:97
234 " /* Various implementation-internal fields not shown */\n"
239 #: build/C/man7/aio.7:99
241 msgid "/* Operation codes for \\(aqaio_lio_opcode\\(aq: */\n"
245 #: build/C/man7/aio.7:101
247 msgid "enum { LIO_READ, LIO_WRITE, LIO_NOP };\n"
248 msgstr "enum { LIO_READ, LIO_WRITE, LIO_NOP };\n"
251 #: build/C/man7/aio.7:105
252 msgid "The fields of this structure are as follows:"
256 #: build/C/man7/aio.7:105
258 msgid "I<aio_filedes>"
259 msgstr "I<aio_filedes>"
262 #: build/C/man7/aio.7:108
263 msgid "The file descriptor on which the I/O operation is to be performed."
267 #: build/C/man7/aio.7:108
269 msgid "I<aio_offset>"
270 msgstr "I<aio_offset>"
273 #: build/C/man7/aio.7:111
274 msgid "This is the file offset at which the I/O operation is to be performed."
278 #: build/C/man7/aio.7:111
284 #: build/C/man7/aio.7:114
285 msgid "This is the buffer used to transfer data for a read or write operation."
289 #: build/C/man7/aio.7:114
291 msgid "I<aio_nbytes>"
292 msgstr "I<aio_nbytes>"
295 #: build/C/man7/aio.7:118
296 msgid "This is the size of the buffer pointed to by I<aio_buf>."
300 #: build/C/man7/aio.7:118
302 msgid "I<aio_reqprio>"
303 msgstr "I<aio_reqprio>"
306 #: build/C/man7/aio.7:127
308 "This field specifies a value that is subtracted from the calling thread's "
309 "real-time priority in order to determine the priority for execution of this "
310 "I/O request (see B<pthread_setschedparam>(3)). The specified value must be "
311 "between 0 and the value returned by I<sysconf(_SC_AIO_PRIO_DELTA_MAX)>. "
312 "This field is ignored for file synchronization operations."
316 #: build/C/man7/aio.7:127
318 msgid "I<aio_sigevent>"
319 msgstr "I<aio_sigevent>"
322 #: build/C/man7/aio.7:141
324 "This field is a structure that specifies how the caller is to be notified "
325 "when the asynchronous I/O operation completes. Possible values for "
326 "I<aio_sigevent.sigev_notify> are B<SIGEV_NONE>, B<SIGEV_SIGNAL>, and "
327 "B<SIGEV_THREAD>. See B<sigevent>(7) for further details."
331 #: build/C/man7/aio.7:141
333 msgid "I<aio_lio_opcode>"
334 msgstr "I<aio_lio_opcode>"
337 #: build/C/man7/aio.7:145
338 msgid "The type of operation to be performed; used only for B<lio_listio>(3)."
342 #: build/C/man7/aio.7:148
344 "In addition to the standard functions listed above, the GNU C library "
345 "provides the following extension to the POSIX AIO API:"
349 #: build/C/man7/aio.7:148
351 msgid "B<aio_init>(3)"
352 msgstr "B<aio_init>(3)"
355 #: build/C/man7/aio.7:151
357 "Set parameters for tuning the behavior of the glibc POSIX AIO implementation."
361 #: build/C/man7/aio.7:151 build/C/man3/aio_read.3:132
362 #: build/C/man3/aio_suspend.3:104 build/C/man3/aio_write.3:137
363 #: build/C/man2/io_cancel.2:78 build/C/man2/io_destroy.2:72
364 #: build/C/man2/io_getevents.2:85 build/C/man2/io_setup.2:81
365 #: build/C/man2/io_submit.2:83 build/C/man3/lio_listio.3:206
371 #: build/C/man7/aio.7:158
373 "It is a good idea to zero out the control block buffer before use (see "
374 "B<memset>(3)). The control block buffer and the buffer pointed to by "
375 "I<aio_buf> must not be changed while the I/O operation is in progress. "
376 "These buffers must remain valid until the I/O operation completes."
380 #: build/C/man7/aio.7:162
382 "Simultaneous asynchronous read or write operations using the same I<aiocb> "
383 "structure yield undefined results."
386 #. http://lse.sourceforge.net/io/aio.html
387 #. http://lse.sourceforge.net/io/aionotes.txt
388 #. http://lwn.net/Articles/148755/
390 #: build/C/man7/aio.7:180
392 "The current Linux POSIX AIO implementation is provided in userspace by "
393 "glibc. This has a number of limitations, most notably that maintaining "
394 "multiple threads to perform I/O operations is expensive and scales poorly. "
395 "Work has been in progress for some time on a kernel state-machine-based "
396 "implementation of asynchronous I/O (see B<io_submit>(2), B<io_setup>(2), "
397 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2)), but this "
398 "implementation hasn't yet matured to the point where the POSIX AIO "
399 "implementation can be completely reimplemented using the kernel system calls."
403 #: build/C/man7/aio.7:180 build/C/man3/aio_cancel.3:87
404 #: build/C/man3/aio_error.3:65 build/C/man3/aio_fsync.3:78
405 #: build/C/man3/aio_read.3:102 build/C/man3/aio_return.3:62
406 #: build/C/man3/aio_suspend.3:87 build/C/man3/aio_write.3:109
407 #: build/C/man2/io_cancel.2:56 build/C/man2/io_destroy.2:53
408 #: build/C/man2/io_getevents.2:60 build/C/man2/io_setup.2:54
409 #: build/C/man2/io_submit.2:54 build/C/man3/lio_listio.3:145
415 #: build/C/man7/aio.7:181 build/C/man3/aio_error.3:66
416 #: build/C/man3/aio_fsync.3:86 build/C/man3/aio_read.3:110
417 #: build/C/man3/aio_return.3:63 build/C/man3/aio_write.3:121
418 #: build/C/man2/io_cancel.2:63 build/C/man2/io_destroy.2:57
419 #: build/C/man2/io_getevents.2:64 build/C/man2/io_setup.2:61
420 #: build/C/man2/io_submit.2:64 build/C/man3/lio_listio.3:160
426 #: build/C/man7/aio.7:190
428 "The I<aio_reqprio> field of the I<aiocb> structure was less than 0, or was "
429 "greater than the limit returned by the call I<sysconf(_SC_AIO_PRIO_DELTA_MAX)"
434 #: build/C/man7/aio.7:190 build/C/man3/aio_cancel.3:92
435 #: build/C/man3/aio_error.3:73 build/C/man3/aio_fsync.3:94
436 #: build/C/man3/aio_init.3:91 build/C/man3/aio_read.3:126
437 #: build/C/man3/aio_return.3:68 build/C/man3/aio_suspend.3:98
438 #: build/C/man3/aio_write.3:131 build/C/man2/io_cancel.2:70
439 #: build/C/man2/io_destroy.2:64 build/C/man2/io_getevents.2:77
440 #: build/C/man2/io_setup.2:73 build/C/man2/io_submit.2:75
441 #: build/C/man3/lio_listio.3:200
447 #: build/C/man7/aio.7:192
448 msgid "The POSIX AIO interfaces are provided by glibc since version 2.1."
452 #: build/C/man7/aio.7:192 build/C/man3/aio_cancel.3:96
453 #: build/C/man3/aio_error.3:77 build/C/man3/aio_fsync.3:98
454 #: build/C/man3/aio_init.3:95 build/C/man3/aio_read.3:130
455 #: build/C/man3/aio_return.3:72 build/C/man3/aio_suspend.3:102
456 #: build/C/man3/aio_write.3:135 build/C/man2/io_cancel.2:73
457 #: build/C/man2/io_destroy.2:67 build/C/man2/io_getevents.2:80
458 #: build/C/man2/io_setup.2:76 build/C/man2/io_submit.2:78
459 #: build/C/man3/lio_listio.3:204
461 msgid "CONFORMING TO"
465 #: build/C/man7/aio.7:194 build/C/man3/aio_cancel.3:98
466 #: build/C/man3/aio_error.3:79 build/C/man3/aio_fsync.3:100
467 #: build/C/man3/aio_read.3:132 build/C/man3/aio_return.3:74
468 #: build/C/man3/aio_suspend.3:104 build/C/man3/aio_write.3:137
469 #: build/C/man3/lio_listio.3:206
470 msgid "POSIX.1-2001, POSIX.1-2008."
471 msgstr "POSIX.1-2001, POSIX.1-2008."
474 #: build/C/man7/aio.7:194 build/C/man3/aio_cancel.3:98
475 #: build/C/man3/aio_error.3:79 build/C/man3/aio_read.3:144
476 #: build/C/man3/aio_return.3:74
482 #: build/C/man7/aio.7:207
484 "The program below opens each of the files named in its command-line "
485 "arguments and queues a request on the resulting file descriptor using "
486 "B<aio_read>(3). The program then loops, periodically monitoring each of the "
487 "I/O operations that is still in progress using B<aio_error>(3). Each of the "
488 "I/O requests is set up to provide notification by delivery of a signal. "
489 "After all I/O requests have completed, the program retrieves their status "
490 "using B<aio_return>(3)."
494 #: build/C/man7/aio.7:213
496 "The B<SIGQUIT> signal (generated by typing control-\\e) causes the program "
497 "to request cancellation of each of the outstanding requests using "
502 #: build/C/man7/aio.7:218
504 "Here is an example of what we might see when running this program. In this "
505 "example, the program queues two requests to standard input, and these are "
506 "satisfied by two lines of input containing \"abc\" and \"x\"."
510 #: build/C/man7/aio.7:242
513 "$ B<./a.out /dev/stdin /dev/stdin>\n"
514 "opened /dev/stdin on descriptor 3\n"
515 "opened /dev/stdin on descriptor 4\n"
517 " for request 0 (descriptor 3): In progress\n"
518 " for request 1 (descriptor 4): In progress\n"
520 "I/O completion signal received\n"
522 " for request 0 (descriptor 3): I/O succeeded\n"
523 " for request 1 (descriptor 4): In progress\n"
525 " for request 1 (descriptor 4): In progress\n"
527 "I/O completion signal received\n"
529 " for request 1 (descriptor 4): I/O succeeded\n"
530 "All I/O requests completed\n"
532 " for request 0 (descriptor 3): 4\n"
533 " for request 1 (descriptor 4): 2\n"
537 #: build/C/man7/aio.7:244
539 msgid "Program source"
543 #: build/C/man7/aio.7:253
546 "#include E<lt>stdlib.hE<gt>\n"
547 "#include E<lt>unistd.hE<gt>\n"
548 "#include E<lt>stdio.hE<gt>\n"
549 "#include E<lt>errno.hE<gt>\n"
550 "#include E<lt>aio.hE<gt>\n"
551 "#include E<lt>signal.hE<gt>\n"
553 "#include E<lt>stdlib.hE<gt>\n"
554 "#include E<lt>unistd.hE<gt>\n"
555 "#include E<lt>stdio.hE<gt>\n"
556 "#include E<lt>errno.hE<gt>\n"
557 "#include E<lt>aio.hE<gt>\n"
558 "#include E<lt>signal.hE<gt>\n"
561 #: build/C/man7/aio.7:255
563 msgid "#define BUF_SIZE 20 /* Size of buffers for read operations */\n"
564 msgstr "#define BUF_SIZE 20 /* Size of buffers for read operations */\n"
567 #: build/C/man7/aio.7:257
569 msgid "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
570 msgstr "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
573 #: build/C/man7/aio.7:259
575 msgid "#define errMsg(msg) do { perror(msg); } while (0)\n"
576 msgstr "#define errMsg(msg) do { perror(msg); } while (0)\n"
579 #: build/C/man7/aio.7:266
582 "struct ioRequest { /* Application-defined structure for tracking\n"
586 " struct aiocb *aiocbp;\n"
589 "struct ioRequest { /* Application-defined structure for tracking\n"
593 " struct aiocb *aiocbp;\n"
597 #: build/C/man7/aio.7:270
600 "static volatile sig_atomic_t gotSIGQUIT = 0;\n"
601 " /* On delivery of SIGQUIT, we attempt to\n"
602 " cancel all outstanding I/O requests */\n"
604 "static volatile sig_atomic_t gotSIGQUIT = 0;\n"
605 " /* On delivery of SIGQUIT, we attempt to\n"
606 " cancel all outstanding I/O requests */\n"
609 #: build/C/man7/aio.7:276
612 "static void /* Handler for SIGQUIT */\n"
613 "quitHandler(int sig)\n"
618 "static void /* Handler for SIGQUIT */\n"
619 "quitHandler(int sig)\n"
625 #: build/C/man7/aio.7:278
627 msgid "#define IO_SIGNAL SIGUSR1 /* Signal used to notify I/O completion */\n"
628 msgstr "#define IO_SIGNAL SIGUSR1 /* Signal used to notify I/O completion */\n"
631 #: build/C/man7/aio.7:283
634 "static void /* Handler for I/O completion signal */\n"
635 "aioSigHandler(int sig, siginfo_t *si, void *ucontext)\n"
637 " write(STDOUT_FILENO, \"I/O completion signal received\\en\", 31);\n"
639 "static void /* Handler for I/O completion signal */\n"
640 "aioSigHandler(int sig, siginfo_t *si, void *ucontext)\n"
642 " write(STDOUT_FILENO, \"I/O completion signal received\\en\", 31);\n"
645 #: build/C/man7/aio.7:289
648 " /* The corresponding ioRequest structure would be available as\n"
649 " struct ioRequest *ioReq = si-E<gt>si_value.sival_ptr;\n"
650 " and the file descriptor would then be available via\n"
651 " ioReq-E<gt>aiocbp-E<gt>aio_fildes */\n"
654 " /* The corresponding ioRequest structure would be available as\n"
655 " struct ioRequest *ioReq = si-E<gt>si_value.sival_ptr;\n"
656 " and the file descriptor would then be available via\n"
657 " ioReq-E<gt>aiocbp-E<gt>aio_fildes */\n"
661 #: build/C/man7/aio.7:299
665 "main(int argc, char *argv[])\n"
667 " struct ioRequest *ioList;\n"
668 " struct aiocb *aiocbList;\n"
669 " struct sigaction sa;\n"
671 " int numReqs; /* Total number of queued I/O requests */\n"
672 " int openReqs; /* Number of I/O requests still in progress */\n"
675 "main(int argc, char *argv[])\n"
677 " struct ioRequest *ioList;\n"
678 " struct aiocb *aiocbList;\n"
679 " struct sigaction sa;\n"
681 " int numReqs; /* Total number of queued I/O requests */\n"
682 " int openReqs; /* Number of I/O requests still in progress */\n"
685 #: build/C/man7/aio.7:305
688 " if (argc E<lt> 2) {\n"
689 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt> E<lt>pathnameE<gt>...\\en\",\n"
691 " exit(EXIT_FAILURE);\n"
694 " if (argc E<lt> 2) {\n"
695 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt> E<lt>pathnameE<gt>...\\en\",\n"
697 " exit(EXIT_FAILURE);\n"
701 #: build/C/man7/aio.7:307
703 msgid " numReqs = argc - 1;\n"
704 msgstr " numReqs = argc - 1;\n"
707 #: build/C/man7/aio.7:309
709 msgid " /* Allocate our arrays */\n"
710 msgstr " /* Allocate our arrays */\n"
713 #: build/C/man7/aio.7:313
716 " ioList = calloc(numReqs, sizeof(struct ioRequest));\n"
717 " if (ioList == NULL)\n"
718 " errExit(\"calloc\");\n"
720 " ioList = calloc(numReqs, sizeof(struct ioRequest));\n"
721 " if (ioList == NULL)\n"
722 " errExit(\"calloc\");\n"
725 #: build/C/man7/aio.7:317
728 " aiocbList = calloc(numReqs, sizeof(struct aiocb));\n"
729 " if (aiocbList == NULL)\n"
730 " errExit(\"calloc\");\n"
732 " aiocbList = calloc(numReqs, sizeof(struct aiocb));\n"
733 " if (aiocbList == NULL)\n"
734 " errExit(\"calloc\");\n"
737 #: build/C/man7/aio.7:319
739 msgid " /* Establish handlers for SIGQUIT and the I/O completion signal */\n"
740 msgstr " /* Establish handlers for SIGQUIT and the I/O completion signal */\n"
743 #: build/C/man7/aio.7:322
746 " sa.sa_flags = SA_RESTART;\n"
747 " sigemptyset(&sa.sa_mask);\n"
749 " sa.sa_flags = SA_RESTART;\n"
750 " sigemptyset(&sa.sa_mask);\n"
753 #: build/C/man7/aio.7:326
756 " sa.sa_handler = quitHandler;\n"
757 " if (sigaction(SIGQUIT, &sa, NULL) == -1)\n"
758 " errExit(\"sigaction\");\n"
760 " sa.sa_handler = quitHandler;\n"
761 " if (sigaction(SIGQUIT, &sa, NULL) == -1)\n"
762 " errExit(\"sigaction\");\n"
765 #: build/C/man7/aio.7:331
768 " sa.sa_flags = SA_RESTART | SA_SIGINFO;\n"
769 " sa.sa_sigaction = aioSigHandler;\n"
770 " if (sigaction(IO_SIGNAL, &sa, NULL) == -1)\n"
771 " errExit(\"sigaction\");\n"
773 " sa.sa_flags = SA_RESTART | SA_SIGINFO;\n"
774 " sa.sa_sigaction = aioSigHandler;\n"
775 " if (sigaction(IO_SIGNAL, &sa, NULL) == -1)\n"
776 " errExit(\"sigaction\");\n"
779 #: build/C/man7/aio.7:334
782 " /* Open each file specified on the command line, and queue\n"
783 " a read request on the resulting file descriptor */\n"
785 " /* Open each file specified on the command line, and queue\n"
786 " a read request on the resulting file descriptor */\n"
789 #: build/C/man7/aio.7:339
792 " for (j = 0; j E<lt> numReqs; j++) {\n"
793 " ioList[j].reqNum = j;\n"
794 " ioList[j].status = EINPROGRESS;\n"
795 " ioList[j].aiocbp = &aiocbList[j];\n"
797 " for (j = 0; j E<lt> numReqs; j++) {\n"
798 " ioList[j].reqNum = j;\n"
799 " ioList[j].status = EINPROGRESS;\n"
800 " ioList[j].aiocbp = &aiocbList[j];\n"
803 #: build/C/man7/aio.7:345
806 " ioList[j].aiocbp-E<gt>aio_fildes = open(argv[j + 1], O_RDONLY);\n"
807 " if (ioList[j].aiocbp-E<gt>aio_fildes == -1)\n"
808 " errExit(\"open\");\n"
809 " printf(\"opened %s on descriptor %d\\en\", argv[j + 1],\n"
810 " ioList[j].aiocbp-E<gt>aio_fildes);\n"
812 " ioList[j].aiocbp-E<gt>aio_fildes = open(argv[j + 1], O_RDONLY);\n"
813 " if (ioList[j].aiocbp-E<gt>aio_fildes == -1)\n"
814 " errExit(\"open\");\n"
815 " printf(\"opened %s on descriptor %d\\en\", argv[j + 1],\n"
816 " ioList[j].aiocbp-E<gt>aio_fildes);\n"
819 #: build/C/man7/aio.7:349
822 " ioList[j].aiocbp-E<gt>aio_buf = malloc(BUF_SIZE);\n"
823 " if (ioList[j].aiocbp-E<gt>aio_buf == NULL)\n"
824 " errExit(\"malloc\");\n"
826 " ioList[j].aiocbp-E<gt>aio_buf = malloc(BUF_SIZE);\n"
827 " if (ioList[j].aiocbp-E<gt>aio_buf == NULL)\n"
828 " errExit(\"malloc\");\n"
831 #: build/C/man7/aio.7:357
834 " ioList[j].aiocbp-E<gt>aio_nbytes = BUF_SIZE;\n"
835 " ioList[j].aiocbp-E<gt>aio_reqprio = 0;\n"
836 " ioList[j].aiocbp-E<gt>aio_offset = 0;\n"
837 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_notify = SIGEV_SIGNAL;\n"
838 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_signo = IO_SIGNAL;\n"
839 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_value.sival_ptr =\n"
842 " ioList[j].aiocbp-E<gt>aio_nbytes = BUF_SIZE;\n"
843 " ioList[j].aiocbp-E<gt>aio_reqprio = 0;\n"
844 " ioList[j].aiocbp-E<gt>aio_offset = 0;\n"
845 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_notify = SIGEV_SIGNAL;\n"
846 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_signo = IO_SIGNAL;\n"
847 " ioList[j].aiocbp-E<gt>aio_sigevent.sigev_value.sival_ptr =\n"
851 #: build/C/man7/aio.7:362
854 " s = aio_read(ioList[j].aiocbp);\n"
856 " errExit(\"aio_read\");\n"
859 " s = aio_read(ioList[j].aiocbp);\n"
861 " errExit(\"aio_read\");\n"
865 #: build/C/man7/aio.7:364
867 msgid " openReqs = numReqs;\n"
868 msgstr " openReqs = numReqs;\n"
871 #: build/C/man7/aio.7:366
873 msgid " /* Loop, monitoring status of I/O requests */\n"
874 msgstr " /* Loop, monitoring status of I/O requests */\n"
877 #: build/C/man7/aio.7:369
880 " while (openReqs E<gt> 0) {\n"
881 " sleep(3); /* Delay between each monitoring step */\n"
883 " while (openReqs E<gt> 0) {\n"
884 " sleep(3); /* Delay between each monitoring step */\n"
887 #: build/C/man7/aio.7:371
889 msgid " if (gotSIGQUIT) {\n"
890 msgstr " if (gotSIGQUIT) {\n"
893 #: build/C/man7/aio.7:375
896 " /* On receipt of SIGQUIT, attempt to cancel each of the\n"
897 " outstanding I/O requests, and display status returned\n"
898 " from the cancellation requests */\n"
900 " /* On receipt of SIGQUIT, attempt to cancel each of the\n"
901 " outstanding I/O requests, and display status returned\n"
902 " from the cancellation requests */\n"
905 #: build/C/man7/aio.7:377
907 msgid " printf(\"got SIGQUIT; canceling I/O requests: \\en\");\n"
908 msgstr " printf(\"got SIGQUIT; canceling I/O requests: \\en\");\n"
911 #: build/C/man7/aio.7:394
914 " for (j = 0; j E<lt> numReqs; j++) {\n"
915 " if (ioList[j].status == EINPROGRESS) {\n"
916 " printf(\" Request %d on descriptor %d:\", j,\n"
917 " ioList[j].aiocbp-E<gt>aio_fildes);\n"
918 " s = aio_cancel(ioList[j].aiocbp-E<gt>aio_fildes,\n"
919 " ioList[j].aiocbp);\n"
920 " if (s == AIO_CANCELED)\n"
921 " printf(\"I/O canceled\\en\");\n"
922 " else if (s == AIO_NOTCANCELED)\n"
923 " printf(\"I/O not canceled\\en\");\n"
924 " else if (s == AIO_ALLDONE)\n"
925 " printf(\"I/O all done\\en\");\n"
927 " errMsg(\"aio_cancel\");\n"
931 " for (j = 0; j E<lt> numReqs; j++) {\n"
932 " if (ioList[j].status == EINPROGRESS) {\n"
933 " printf(\" Request %d on descriptor %d:\", j,\n"
934 " ioList[j].aiocbp-E<gt>aio_fildes);\n"
935 " s = aio_cancel(ioList[j].aiocbp-E<gt>aio_fildes,\n"
936 " ioList[j].aiocbp);\n"
937 " if (s == AIO_CANCELED)\n"
938 " printf(\"I/O canceled\\en\");\n"
939 " else if (s == AIO_NOTCANCELED)\n"
940 " printf(\"I/O not canceled\\en\");\n"
941 " else if (s == AIO_ALLDONE)\n"
942 " printf(\"I/O all done\\en\");\n"
944 " errMsg(\"aio_cancel\");\n"
949 #: build/C/man7/aio.7:397
959 #: build/C/man7/aio.7:400
962 " /* Check the status of each I/O request that is still\n"
965 " /* Check the status of each I/O request that is still\n"
969 #: build/C/man7/aio.7:407
972 " printf(\"aio_error():\\en\");\n"
973 " for (j = 0; j E<lt> numReqs; j++) {\n"
974 " if (ioList[j].status == EINPROGRESS) {\n"
975 " printf(\" for request %d (descriptor %d): \",\n"
976 " j, ioList[j].aiocbp-E<gt>aio_fildes);\n"
977 " ioList[j].status = aio_error(ioList[j].aiocbp);\n"
979 " printf(\"aio_error():\\en\");\n"
980 " for (j = 0; j E<lt> numReqs; j++) {\n"
981 " if (ioList[j].status == EINPROGRESS) {\n"
982 " printf(\" for request %d (descriptor %d): \",\n"
983 " j, ioList[j].aiocbp-E<gt>aio_fildes);\n"
984 " ioList[j].status = aio_error(ioList[j].aiocbp);\n"
987 #: build/C/man7/aio.7:422
990 " switch (ioList[j].status) {\n"
992 " printf(\"I/O succeeded\\en\");\n"
994 " case EINPROGRESS:\n"
995 " printf(\"In progress\\en\");\n"
998 " printf(\"Canceled\\en\");\n"
1001 " errMsg(\"aio_error\");\n"
1005 " switch (ioList[j].status) {\n"
1007 " printf(\"I/O succeeded\\en\");\n"
1009 " case EINPROGRESS:\n"
1010 " printf(\"In progress\\en\");\n"
1012 " case ECANCELED:\n"
1013 " printf(\"Canceled\\en\");\n"
1016 " errMsg(\"aio_error\");\n"
1021 #: build/C/man7/aio.7:428
1024 " if (ioList[j].status != EINPROGRESS)\n"
1030 " if (ioList[j].status != EINPROGRESS)\n"
1037 #: build/C/man7/aio.7:430
1039 msgid " printf(\"All I/O requests completed\\en\");\n"
1040 msgstr " printf(\"All I/O requests completed\\en\");\n"
1043 #: build/C/man7/aio.7:432
1045 msgid " /* Check status return of all I/O requests */\n"
1046 msgstr " /* Check status return of all I/O requests */\n"
1049 #: build/C/man7/aio.7:436
1052 " printf(\"aio_return():\\en\");\n"
1053 " for (j = 0; j E<lt> numReqs; j++) {\n"
1056 " printf(\"aio_return():\\en\");\n"
1057 " for (j = 0; j E<lt> numReqs; j++) {\n"
1061 #: build/C/man7/aio.7:441
1064 " s = aio_return(ioList[j].aiocbp);\n"
1065 " printf(\" for request %d (descriptor %d): %ld\\en\",\n"
1066 " j, ioList[j].aiocbp-E<gt>aio_fildes, (long) s);\n"
1069 " s = aio_return(ioList[j].aiocbp);\n"
1070 " printf(\" for request %d (descriptor %d): %ld\\en\",\n"
1071 " j, ioList[j].aiocbp-E<gt>aio_fildes, (long) s);\n"
1075 #: build/C/man7/aio.7:444
1078 " exit(EXIT_SUCCESS);\n"
1081 " exit(EXIT_SUCCESS);\n"
1085 #: build/C/man7/aio.7:445 build/C/man3/aio_cancel.3:101
1086 #: build/C/man3/aio_error.3:82 build/C/man3/aio_fsync.3:100
1087 #: build/C/man3/aio_init.3:97 build/C/man3/aio_read.3:147
1088 #: build/C/man3/aio_return.3:77 build/C/man3/aio_suspend.3:124
1089 #: build/C/man3/aio_write.3:149 build/C/man2/io_cancel.2:94
1090 #: build/C/man2/io_destroy.2:88 build/C/man2/io_getevents.2:101
1091 #: build/C/man2/io_setup.2:97 build/C/man2/io_submit.2:99
1092 #: build/C/man3/lio_listio.3:218
1098 #: build/C/man7/aio.7:460
1100 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), "
1101 "B<io_submit>(2), B<aio_cancel>(3), B<aio_error>(3), B<aio_init>(3), "
1102 "B<aio_read>(3), B<aio_return>(3), B<aio_write>(3), B<lio_listio>(3), http://"
1103 "www.squid-cache.org/~adrian/Reprint-Pulavarty-OLS2003.pdf"
1105 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), "
1106 "B<io_submit>(2), B<aio_cancel>(3), B<aio_error>(3), B<aio_init>(3), "
1107 "B<aio_read>(3), B<aio_return>(3), B<aio_write>(3), B<lio_listio>(3), http://"
1108 "www.squid-cache.org/~adrian/Reprint-Pulavarty-OLS2003.pdf"
1111 #: build/C/man7/aio.7:460 build/C/man3/aio_cancel.3:110
1112 #: build/C/man3/aio_error.3:91 build/C/man3/aio_fsync.3:110
1113 #: build/C/man3/aio_init.3:99 build/C/man3/aio_read.3:156
1114 #: build/C/man3/aio_return.3:86 build/C/man3/aio_suspend.3:134
1115 #: build/C/man3/aio_write.3:158 build/C/man2/io_cancel.2:107
1116 #: build/C/man2/io_destroy.2:101 build/C/man2/io_getevents.2:116
1117 #: build/C/man2/io_setup.2:108 build/C/man2/io_submit.2:110
1118 #: build/C/man3/lio_listio.3:226
1124 #: build/C/man7/aio.7:467 build/C/man3/aio_cancel.3:117
1125 #: build/C/man3/aio_error.3:98 build/C/man3/aio_fsync.3:117
1126 #: build/C/man3/aio_init.3:106 build/C/man3/aio_read.3:163
1127 #: build/C/man3/aio_return.3:93 build/C/man3/aio_suspend.3:141
1128 #: build/C/man3/aio_write.3:165 build/C/man2/io_cancel.2:114
1129 #: build/C/man2/io_destroy.2:108 build/C/man2/io_getevents.2:123
1130 #: build/C/man2/io_setup.2:115 build/C/man2/io_submit.2:117
1131 #: build/C/man3/lio_listio.3:233
1133 "This page is part of release 3.37 of the Linux I<man-pages> project. A "
1134 "description of the project, and information about reporting bugs, can be "
1135 "found at http://www.kernel.org/doc/man-pages/."
1137 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.37 の一部である。\n"
1138 "プロジェクトの説明とバグ報告に関する情報は\n"
1139 "http://www.kernel.org/doc/man-pages/ に書かれている。"
1142 #: build/C/man3/aio_cancel.3:23
1148 #: build/C/man3/aio_cancel.3:23
1150 #| msgid "2010-10-02"
1155 #: build/C/man3/aio_cancel.3:26
1156 msgid "aio_cancel - cancel an outstanding asynchronous I/O request"
1157 msgstr "aio_cancel - 完了していない非同期 I/O リクエストをキャンセルする"
1160 #: build/C/man3/aio_cancel.3:26 build/C/man3/aio_error.3:26
1161 #: build/C/man3/aio_fsync.3:26 build/C/man3/aio_init.3:27
1162 #: build/C/man3/aio_read.3:26 build/C/man3/aio_return.3:26
1163 #: build/C/man3/aio_suspend.3:27 build/C/man3/aio_write.3:26
1164 #: build/C/man2/io_cancel.2:26 build/C/man2/io_destroy.2:26
1165 #: build/C/man2/io_getevents.2:26 build/C/man2/io_setup.2:26
1166 #: build/C/man2/io_submit.2:26 build/C/man3/lio_listio.3:26
1172 #: build/C/man3/aio_cancel.3:28 build/C/man3/aio_error.3:28
1173 #: build/C/man3/aio_fsync.3:28 build/C/man3/aio_read.3:28
1174 #: build/C/man3/aio_return.3:28 build/C/man3/aio_write.3:28
1175 msgid "B<#include E<lt>aio.hE<gt>>"
1176 msgstr "B<#include E<lt>aio.hE<gt>>"
1179 #: build/C/man3/aio_cancel.3:30
1180 msgid "B<int aio_cancel(int >I<fd>B<, struct aiocb *>I<aiocbp>B<);>"
1181 msgstr "B<int aio_cancel(int >I<fd>B<, struct aiocb *>I<aiocbp>B<);>"
1184 #: build/C/man3/aio_cancel.3:32 build/C/man3/aio_error.3:32
1185 #: build/C/man3/aio_fsync.3:32 build/C/man3/aio_init.3:36
1186 #: build/C/man3/aio_read.3:32 build/C/man3/aio_return.3:32
1187 #: build/C/man3/aio_write.3:32
1188 msgid "Link with I<-lrt>."
1189 msgstr "I<-lrt> でリンクする。"
1192 #: build/C/man3/aio_cancel.3:50
1195 #| "The B<aio_cancel>() function attempts to cancel outstanding asynchronous "
1196 #| "I/O requests for the file descriptor I<fd>. If I<aiocbp> is NULL, all "
1197 #| "such requests are canceled. Otherwise, only the request described by the "
1198 #| "control block pointed to by I<aiocbp> is canceled."
1200 "The B<aio_cancel>() function attempts to cancel outstanding asynchronous I/"
1201 "O requests for the file descriptor I<fd>. If I<aiocbp> is NULL, all such "
1202 "requests are canceled. Otherwise, only the request described by the control "
1203 "block pointed to by I<aiocbp> is canceled. (See B<aio>(7) for a "
1204 "description of the I<aiocb> structure.)"
1206 "B<aio_cancel>() 関数は、ファイルディスクリプタ I<fd> についての完了していな"
1207 "い非同期 I/O リクエストをキャンセルしようとする。 I<aiocbp> が NULL の場合、"
1208 "そのような全てのリクエストがキャンセルされる。 I<aiocbp> が NULL でない場"
1209 "合、 I<aiocbp> で指された制御ブロックで記述されたリクエストのみがキャンセルさ"
1213 #: build/C/man3/aio_cancel.3:59
1216 #| "Normal asynchronous notification occurs for canceled requests. The "
1217 #| "request return status is set to -1, and the request error status is set "
1218 #| "to B<ECANCELED>. The control block of requests that cannot be canceled "
1219 #| "is not changed."
1221 "Normal asynchronous notification occurs for canceled requests. The request "
1222 "return status (B<aio_return>(3)) is set to -1, and the request error status "
1223 "(B<aio_error>(3)) is set to B<ECANCELED>. The control block of requests "
1224 "that cannot be canceled is not changed."
1226 "キャンセルされたリクエストに対して、通常の非同期通知が起こる。 リクエストの返"
1227 "り値は -1 に設定され、 リクエストのエラー状態は B<ECANCELED> に設定される。 "
1228 "キャンセルできなかったリクエストの制御ブロックは変更されない。"
1231 #: build/C/man3/aio_cancel.3:66
1233 "If I<aiocbp> is not NULL, and I<fd> differs from the file descriptor with "
1234 "which the asynchronous operation was initiated, unspecified results occur."
1236 "I<aiocbp> が NULL でなく、かつ I<fd> が非同期操作が開始されたファイルディスク"
1237 "リプタと異なる場合、 生じる結果は不定である。"
1239 #. FreeBSD: not those on raw disk devices.
1241 #: build/C/man3/aio_cancel.3:69
1243 #| msgid "Which operations are cancellable is implementation-defined."
1244 msgid "Which operations are cancelable is implementation-defined."
1245 msgstr "どの操作をキャンセルできるかは、実装定義である。"
1248 #: build/C/man3/aio_cancel.3:69 build/C/man3/aio_error.3:43
1249 #: build/C/man3/aio_fsync.3:72 build/C/man3/aio_read.3:87
1250 #: build/C/man3/aio_return.3:48 build/C/man3/aio_suspend.3:79
1251 #: build/C/man3/aio_write.3:94 build/C/man2/io_cancel.2:51
1252 #: build/C/man2/io_destroy.2:48 build/C/man2/io_getevents.2:54
1253 #: build/C/man2/io_setup.2:49 build/C/man2/io_submit.2:48
1254 #: build/C/man3/lio_listio.3:107
1256 msgid "RETURN VALUE"
1260 #: build/C/man3/aio_cancel.3:87
1263 #| "This function returns B<AIO_CANCELED> if all requests were successfully "
1264 #| "canceled. It returns B<AIO_NOTCANCELED> when at least one of the "
1265 #| "requests specified was not canceled because it was in progress. In this "
1266 #| "case one may check the status of individual requests using B<aio_error>"
1267 #| "(3). This function returns B<AIO_ALLDONE> when all requests had been "
1268 #| "completed already before this call. When some error occurs, -1 is "
1269 #| "returned, and I<errno> is set appropriately."
1271 "This function returns B<AIO_CANCELED> if all requests were successfully "
1272 "canceled. It returns B<AIO_NOTCANCELED> when at least one of the requests "
1273 "specified was not canceled because it was in progress. In this case one may "
1274 "check the status of individual requests using B<aio_error>(3). This "
1275 "function returns B<AIO_ALLDONE> if all requests had already been completed "
1276 "before this call. When some error occurs, -1 is returned, and I<errno> is "
1277 "set appropriately."
1279 "全てのリクエストのキャンセルが成功した場合、この関数は B<AIO_CANCELED> を返"
1280 "す。 指定されたリクエストのうち少なくとも 1 つが進行中であるために キャンセル"
1281 "できなかった場合は、 B<AIO_NOTCANCELED> が返される。 この場合は、 "
1282 "B<aio_error>(3) を使って個々のリクエストの状態をチェックすることができる。 "
1283 "呼び出される前に全てのリクエストが完了していた場合、 この関数は "
1284 "B<AIO_ALLDONE> を返す。 何らかのエラーが起こった場合は、-1 が返されて、 "
1285 "I<errno> が適切に設定される。"
1288 #: build/C/man3/aio_cancel.3:88 build/C/man3/aio_fsync.3:82
1289 #: build/C/man3/aio_read.3:106 build/C/man3/aio_write.3:113
1290 #: build/C/man2/io_submit.2:58
1296 #: build/C/man3/aio_cancel.3:92
1297 msgid "I<fd> is not a valid file descriptor."
1298 msgstr "I<fd> が有効なファイルディスクリプタでない。"
1301 #: build/C/man3/aio_cancel.3:96
1302 msgid "The B<aio_cancel>() function is available since glibc 2.1."
1306 #: build/C/man3/aio_cancel.3:101 build/C/man3/aio_error.3:82
1307 #: build/C/man3/aio_read.3:147 build/C/man3/aio_return.3:77
1309 #| msgid "B<aio>(7)"
1310 msgid "See B<aio>(7)."
1314 #: build/C/man3/aio_cancel.3:110
1317 #| "B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1318 #| "B<aio_suspend>(3), B<aio_write>(3)"
1320 "B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1321 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1323 "B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1324 "B<aio_suspend>(3), B<aio_write>(3)"
1327 #: build/C/man3/aio_error.3:23
1333 #: build/C/man3/aio_error.3:23 build/C/man3/aio_read.3:23
1334 #: build/C/man3/aio_return.3:23
1336 #| msgid "2010-10-02"
1341 #: build/C/man3/aio_error.3:26
1342 msgid "aio_error - get error status of asynchronous I/O operation"
1343 msgstr "aio_error - 非同期 I/O 操作のエラー状態を取得する"
1346 #: build/C/man3/aio_error.3:30
1347 msgid "B<int aio_error(const struct aiocb *>I<aiocbp>B<);>"
1348 msgstr "B<int aio_error(const struct aiocb *>I<aiocbp>B<);>"
1351 #: build/C/man3/aio_error.3:43
1354 #| "The B<aio_error>() function returns the error status for the "
1355 #| "asynchronous I/O request with control block pointed to by I<aiocbp>."
1357 "The B<aio_error>() function returns the error status for the asynchronous I/"
1358 "O request with control block pointed to by I<aiocbp>. (See B<aio>(7) for a "
1359 "description of the I<aiocb> structure.)"
1361 "B<aio_error>() 関数は I<aiocbp> で指された制御ブロックでの非同期 I/O リクエ"
1365 #: build/C/man3/aio_error.3:45
1366 msgid "This function returns one of the following:"
1370 #: build/C/man3/aio_error.3:45 build/C/man3/aio_error.3:49
1371 #: build/C/man3/aio_error.3:52 build/C/man3/aio_error.3:54
1372 #: build/C/man3/aio_suspend.3:42 build/C/man3/aio_suspend.3:46
1373 #: build/C/man3/aio_suspend.3:48
1379 #: build/C/man3/aio_error.3:49
1380 msgid "B<EINPROGRESS>, if the request has not been completed yet."
1384 #: build/C/man3/aio_error.3:52
1385 msgid "B<ECANCELED>, if the request was canceled."
1389 #: build/C/man3/aio_error.3:54
1390 msgid "0, if the request completed successfully."
1394 #: build/C/man3/aio_error.3:65
1396 "A positive error, if the asynchronous I/O operation failed. This is the "
1397 "same value that would have been stored in the I<errno> variable in the case "
1398 "of a synchronous B<read>(2), B<write>(2), B<fsync>(2), or B<fdatasync>(2) "
1403 #: build/C/man3/aio_error.3:73
1405 "I<aiocbp> does not point at a control block for an asynchronous I/O request "
1406 "of which the return status (see B<aio_return>(3)) has not been retrieved "
1409 "I<aiocbp> が、まだ返り値 (return status) (B<aio_return>(3) を参照) が取得さ"
1410 "れていない非同期 I/O リクエストの制御ブロックを指していない。"
1413 #: build/C/man3/aio_error.3:77
1414 msgid "The B<aio_error>() function is available since glibc 2.1."
1418 #: build/C/man3/aio_error.3:91
1421 #| "B<aio_cancel>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1422 #| "B<aio_suspend>(3), B<aio_write>(3)"
1424 "B<aio_cancel>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1425 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1427 "B<aio_cancel>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1428 "B<aio_suspend>(3), B<aio_write>(3)"
1431 #: build/C/man3/aio_fsync.3:23
1437 #: build/C/man3/aio_fsync.3:26
1438 msgid "aio_fsync - asynchronous file synchronization"
1439 msgstr "aio_fsync - 非同期ファイルを同期させる"
1442 #: build/C/man3/aio_fsync.3:30
1443 msgid "B<int aio_fsync(int >I<op>B<, struct aiocb *>I<aiocbp>B<);>"
1444 msgstr "B<int aio_fsync(int >I<op>B<, struct aiocb *>I<aiocbp>B<);>"
1447 #: build/C/man3/aio_fsync.3:43
1450 #| "The B<aio_fsync>() function does a sync on all outstanding asynchronous "
1451 #| "I/O operations associated with I<aiocbp-E<gt>aio_fildes>."
1453 "The B<aio_fsync>() function does a sync on all outstanding asynchronous I/O "
1454 "operations associated with I<aiocbp-E<gt>aio_fildes>. (See B<aio>(7) for a "
1455 "description of the I<aiocb> structure.)"
1457 "B<aio_fsync>() 関数は、 I<aiocbp-E<gt>aio_fildes> で関連付けられているまだ完"
1458 "了していない全ての非同期 I/O 操作を同期させる。"
1461 #: build/C/man3/aio_fsync.3:57
1464 #| "More precisely, if I<op> is B<O_SYNC>, then all currently queued I/O "
1465 #| "operations shall be completed as if by a call of B<fsync>(2), and if "
1466 #| "I<op> is B<O_DSYNC>, this call is the asynchronous analog of B<fdatasync>"
1467 #| "(2). Note that this is a request only \\(em this call does not wait for "
1468 #| "I/O completion."
1470 "More precisely, if I<op> is B<O_SYNC>, then all currently queued I/O "
1471 "operations shall be completed as if by a call of B<fsync>(2), and if I<op> "
1472 "is B<O_DSYNC>, this call is the asynchronous analog of B<fdatasync>(2)."
1474 "より正確に言うと、 I<op> が B<O_SYNC> の場合、現在キューに入れられている全て"
1475 "の I/O 操作は、 B<fsync>(2) が呼ばれたかのように完了されるだろう。 また "
1476 "I<op> が B<O_DSYNC> の場合、この呼び出しは B<fdatasync>(2) の非同期版とな"
1477 "る。 この関数はリクエストを行うだけである点に注意すること \\(em この呼び出し"
1481 #: build/C/man3/aio_fsync.3:59
1482 msgid "Note that this is a request only; it does not wait for I/O completion."
1486 #: build/C/man3/aio_fsync.3:72
1489 #| "Apart from I<aio_fildes> the only field in the structure pointed to by "
1490 #| "I<aiocbp> that is used by this call is the I<aio_sigevent> field (a "
1491 #| "I<struct sigevent>) that indicates the desired type of asynchronous "
1492 #| "notification at completion. All other fields are ignored."
1494 "Apart from I<aio_fildes>, the only field in the structure pointed to by "
1495 "I<aiocbp> that is used by this call is the I<aio_sigevent> field (a "
1496 "I<sigevent> structure, described in B<sigevent>(7)), which indicates the "
1497 "desired type of asynchronous notification at completion. All other fields "
1500 "I<aiocbp> で指される構造体のフィールドのうち、この呼び出しで I<aio_fildes> 以"
1501 "外に使用されるのは I<aio_sigevent> フィールド (I<struct sigevent>) のみであ"
1502 "る。 このフィールドは、完了時の非同期通知に使用したいタイプを示す。 その他の"
1506 #: build/C/man3/aio_fsync.3:78
1508 "On success (the sync request was successfully queued) this function returns "
1509 "0. On error -1 is returned, and I<errno> is set appropriately."
1511 "成功した場合 (同期リクエストをキューに入れるのに成功した場合)、 この関数は 0 "
1512 "を返す。 エラーの場合、-1 が返され、 I<errno> が適切に設定される。"
1515 #: build/C/man3/aio_fsync.3:79 build/C/man3/aio_read.3:103
1516 #: build/C/man3/aio_suspend.3:88 build/C/man3/aio_write.3:110
1517 #: build/C/man2/io_cancel.2:57 build/C/man2/io_setup.2:55
1518 #: build/C/man2/io_submit.2:55 build/C/man3/lio_listio.3:149
1519 #: build/C/man3/lio_listio.3:152
1525 #: build/C/man3/aio_fsync.3:82 build/C/man3/aio_read.3:106
1526 #: build/C/man3/aio_write.3:113 build/C/man3/lio_listio.3:152
1527 msgid "Out of resources."
1531 #: build/C/man3/aio_fsync.3:86 build/C/man3/aio_write.3:117
1532 msgid "I<aio_fildes> is not a valid file descriptor open for writing."
1534 "I<aio_fildes> が書き込みのためにオープンされた有効なファイルディスクリプタで"
1538 #: build/C/man3/aio_fsync.3:94
1541 #| "No synchronized I/O for this file is supported, or I<op> is not B<O_SYNC> "
1544 "Synchronized I/O is not supported for this file, or I<op> is not B<O_SYNC> "
1547 "このファイルに対する同期 I/O がサポートされていない。\n"
1548 "または I<op> が B<O_SYNC> でも B<O_DSYNC> でもない。"
1551 #: build/C/man3/aio_fsync.3:98
1552 msgid "The B<aio_fsync>() function is available since glibc 2.1."
1556 #: build/C/man3/aio_fsync.3:110
1559 #| "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1560 #| "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
1562 "B<aio_cancel>(3), B<aio_error>(3), B<aio_read>(3), B<aio_return>(3), "
1563 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7), B<sigevent>"
1566 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1567 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
1570 #: build/C/man3/aio_init.3:24
1576 #: build/C/man3/aio_init.3:24
1582 #: build/C/man3/aio_init.3:27
1583 msgid "aio_init - POSIX asynchronous I/O initialization"
1587 #: build/C/man3/aio_init.3:31
1590 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1591 "B<#include E<lt>aio.hE<gt>>\n"
1593 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1594 "B<#include E<lt>aio.hE<gt>>\n"
1597 #: build/C/man3/aio_init.3:33
1599 msgid "B<void aio_init(const struct aioinit *>I<init>B<);>\n"
1600 msgstr "B<void aio_init(const struct aioinit *>I<init>B<);>\n"
1603 #: build/C/man3/aio_init.3:43
1605 "The GNU-specific B<aio_init>() function allows the caller to provide tuning "
1606 "hints to the glibc POSIX AIO implementation. Use of this function is "
1607 "optional, but to be effective, it must be called before employing any other "
1608 "functions in the POSIX AIO API."
1612 #: build/C/man3/aio_init.3:47
1614 "The tuning information is provided in the buffer pointed to by the argument "
1615 "I<init>. This buffer is a structure of the following form:"
1619 #: build/C/man3/aio_init.3:62
1622 "struct aioinit {\n"
1623 " int aio_threads; /* Maximum number of threads */\n"
1624 " int aio_num; /* Number of expected simultaneous\n"
1626 " int aio_locks; /* Not used */\n"
1627 " int aio_usedba; /* Not used */\n"
1628 " int aio_debug; /* Not used */\n"
1629 " int aio_numusers; /* Not used */\n"
1630 " int aio_idle_time; /* Number of seconds before idle thread\n"
1631 " terminates (since glibc 2.2) */\n"
1632 " int aio_reserved;\n"
1635 "struct aioinit {\n"
1636 " int aio_threads; /* Maximum number of threads */\n"
1637 " int aio_num; /* Number of expected simultaneous\n"
1639 " int aio_locks; /* Not used */\n"
1640 " int aio_usedba; /* Not used */\n"
1641 " int aio_debug; /* Not used */\n"
1642 " int aio_numusers; /* Not used */\n"
1643 " int aio_idle_time; /* Number of seconds before idle thread\n"
1644 " terminates (since glibc 2.2) */\n"
1645 " int aio_reserved;\n"
1649 #: build/C/man3/aio_init.3:68
1650 msgid "The following fields are used in the I<aioinit> structure:"
1654 #: build/C/man3/aio_init.3:68
1656 msgid "I<aio_threads>"
1657 msgstr "I<aio_threads>"
1660 #: build/C/man3/aio_init.3:76
1662 "This field specifies the maximum number of worker threads that may be used "
1663 "by the implementation. If the number of outstanding I/O operations exceeds "
1664 "this limit, then excess operations will be queued until a worker thread "
1665 "becomes free. If this field is specified with a value less than 1, the "
1666 "value 1 is used. The default value is 20."
1670 #: build/C/man3/aio_init.3:76
1675 #. FIXME But, if aio_num > 32, the behavior looks strange. See
1676 #. http://sourceware.org/bugzilla/show_bug.cgi?id=12083
1678 #: build/C/man3/aio_init.3:85
1680 "This field should specify the maximum number of simultaneous I/O requests "
1681 "that the caller expects to enqueue. If a value less than 32 is specified "
1682 "for this field, it is rounded up to 32. The default value is 64."
1686 #: build/C/man3/aio_init.3:85
1688 msgid "I<aio_idle_time>"
1689 msgstr "I<aio_idle_time>"
1692 #: build/C/man3/aio_init.3:91
1694 "This field specifies the amount of time in seconds that a worker thread "
1695 "should wait for further requests before terminating, after having completed "
1696 "a previous request. The default value is 1."
1700 #: build/C/man3/aio_init.3:95
1701 msgid "The B<aio_init>() function is available since glibc 2.1."
1705 #: build/C/man3/aio_init.3:97
1706 msgid "This function is a GNU extension."
1710 #: build/C/man3/aio_init.3:99
1715 #: build/C/man3/aio_read.3:23
1721 #: build/C/man3/aio_read.3:26
1722 msgid "aio_read - asynchronous read"
1723 msgstr "aio_read - 非同期で読み込む"
1726 #: build/C/man3/aio_read.3:30
1727 msgid "B<int aio_read(struct aiocb *>I<aiocbp>B<);>"
1728 msgstr "B<int aio_read(struct aiocb *>I<aiocbp>B<);>"
1731 #: build/C/man3/aio_read.3:40
1733 "The B<aio_read>() function queues the I/O request described by the buffer "
1734 "pointed to by I<aiocbp>. This function is the asynchronous analog of B<read>"
1735 "(2). The arguments of the call"
1739 #: build/C/man3/aio_read.3:42
1741 msgid " read(fd, buf, count)\n"
1745 #: build/C/man3/aio_read.3:55 build/C/man3/aio_write.3:55
1747 "correspond (in order) to the fields I<aio_fildes>, I<aio_buf>, and "
1748 "I<aio_nbytes> of the structure pointed to by I<aiocbp>. (See B<aio>(7) for "
1749 "a description of the I<aiocb> structure.)"
1753 #: build/C/man3/aio_read.3:61
1756 #| "The data is read starting at the absolute file offset I<aiocbp-"
1757 #| "E<gt>aio_offset>, regardless of the current file position. After this "
1758 #| "request, the value of the current file position is unspecified."
1760 "The data is read starting at the absolute file offset I<aiocbp-"
1761 "E<gt>aio_offset>, regardless of the current file offset. After the call, "
1762 "the value of the current file offset is unspecified."
1764 "データは、カレントのファイル位置に関係なく、絶対ファイルオフセット I<aiocbp-"
1765 "E<gt>aio_offset> を開始点として読み込まれる。 このリクエスト後の、カレントの"
1769 #: build/C/man3/aio_read.3:74
1772 #| "The \"asynchronous\" means that this call returns as soon as the request "
1773 #| "has been enqueued; the read may or may not have completed when the call "
1774 #| "returns. One tests for completion using B<aio_error>(3)."
1776 "The \"asynchronous\" means that this call returns as soon as the request has "
1777 "been enqueued; the read may or may not have completed when the call "
1778 "returns. One tests for completion using B<aio_error>(3). The return status "
1779 "of a completed I/O operation can be obtained B<aio_return>(3). Asynchronous "
1780 "notification of I/O completion can be obtained by setting I<aiocbp-"
1781 "E<gt>aio_sigevent> appropriately; see B<sigevent>(7) for details."
1783 "「非同期」とは「リクエストがキューに入れられたら、この呼び出しはすぐに返る」 "
1784 "ということである。 呼び出しから戻った時に、読み込みは完了しているかも知れない"
1785 "し、 完了していないかも知れない。 B<aio_error>(3) を使うことで完了したかをテ"
1789 #: build/C/man3/aio_read.3:81 build/C/man3/aio_write.3:88
1791 "If B<_POSIX_PRIORITIZED_IO> is defined, and this file supports it, then the "
1792 "asynchronous operation is submitted at a priority equal to that of the "
1793 "calling process minus I<aiocbp-E<gt>aio_reqprio>."
1795 "B<_POSIX_PRIORITIZED_IO> が定義されていて、 かつファイルがこれをサポートして"
1796 "いる場合、 非同期操作は呼び出したプロセスの優先度から I<aiocbp-"
1797 "E<gt>aio_reqprio> を引いた優先度で登録 (submit) される。"
1800 #: build/C/man3/aio_read.3:85 build/C/man3/aio_write.3:92
1801 msgid "The field I<aiocbp-E<gt>aio_lio_opcode> is ignored."
1802 msgstr "フィールド I<aiocbp-E<gt>aio_lio_opcode> は無視される。"
1805 #: build/C/man3/aio_read.3:87
1806 msgid "No data is read from a regular file beyond its maximum offset."
1808 "最大オフセットを超えた通常のファイルからは、何もデータが読み込まれない。"
1811 #: build/C/man3/aio_read.3:102 build/C/man3/aio_write.3:109
1814 #| "On success, 0 is returned. On error the request is not enqueued, -1 is "
1815 #| "returned, and I<errno> is set appropriately. If an error is first "
1816 #| "detected later, it will be reported via B<aio_return>(3) (returns status "
1817 #| "-1) and B<aio_error>(3) (error status whatever one would have gotten in "
1818 #| "I<errno>, such as B<EBADF>)."
1820 "On success, 0 is returned. On error the request is not enqueued, -1 is "
1821 "returned, and I<errno> is set appropriately. If an error is only detected "
1822 "later, it will be reported via B<aio_return>(3) (returns status -1) and "
1823 "B<aio_error>(3) (error status\\(emwhatever one would have gotten in "
1824 "I<errno>, such as B<EBADF>)."
1826 "成功した場合、0 が返される。 エラーの場合、リクエストはキューに入れられず、 "
1827 "-1 が返されて、 I<errno> が適切に設定される。 エラーは最初に検知された後で、 "
1828 "(状態 -1 を返す) B<aio_return>(3) と (I<errno> で取得できる B<EBADF> のよう"
1829 "なエラー状態を返す) B<aio_error>(3) で報告されるだろう。"
1832 #: build/C/man3/aio_read.3:110
1833 msgid "I<aio_fildes> is not a valid file descriptor open for reading."
1835 "I<aio_fildes> は読み込みのためにオープンされた有効なファイルディスクリプタで"
1839 #: build/C/man3/aio_read.3:118
1842 #| "One or more of I<aio_offset>, I<aio_reqprio>, I<aio_nbytes> are invalid."
1844 "One or more of I<aio_offset>, I<aio_reqprio>, or I<aio_nbytes> are invalid."
1846 "I<aio_offset>, I<aio_reqprio>, I<aio_nbytes> のうち 1 つ以上が無効である。"
1849 #: build/C/man3/aio_read.3:118 build/C/man3/aio_write.3:128
1850 #: build/C/man2/io_cancel.2:66 build/C/man2/io_destroy.2:60
1851 #: build/C/man2/io_getevents.2:73 build/C/man2/io_setup.2:69
1852 #: build/C/man2/io_submit.2:71
1858 #: build/C/man3/aio_read.3:121 build/C/man3/aio_write.3:131
1859 msgid "This function is not supported."
1860 msgstr "この関数がサポートされていない。"
1863 #: build/C/man3/aio_read.3:121
1865 msgid "B<EOVERFLOW>"
1866 msgstr "B<EOVERFLOW>"
1869 #: build/C/man3/aio_read.3:126
1871 "The file is a regular file, we start reading before end-of-file and want at "
1872 "least one byte, but the starting position is past the maximum offset for "
1875 "ファイルが通常のファイルであり、 ファイルの終端の前から読み込みを開始して、 "
1876 "少なくとも 1 バイトを読み込もうとした。 しかし開始位置がこのファイルの最大オ"
1880 #: build/C/man3/aio_read.3:130
1881 msgid "The B<aio_read>() function is available since glibc 2.1."
1884 #. or the control block of the operation
1886 #: build/C/man3/aio_read.3:140
1889 #| "It is a good idea to zero out the control block before use. This control "
1890 #| "block must not be changed while the read operation is in progress. The "
1891 #| "buffer area being read into must not be accessed during the operation or "
1892 #| "undefined results may occur. The memory areas involved must remain valid."
1894 "It is a good idea to zero out the control block before use. The control "
1895 "block must not be changed while the read operation is in progress. The "
1896 "buffer area being read into must not be accessed during the operation or "
1897 "undefined results may occur. The memory areas involved must remain valid."
1899 "使用する前に制御ブロックを 0 にしておくのは、よい考えである。 この制御ブロッ"
1900 "クは、読み込み操作が進行している間は変更すべきでない。 読み込まれるバッファ領"
1901 "域は 操作の最中にアクセスすべきではない。 さもないと起こる結果が不定になる。 "
1902 "これに含まれるメモリ領域は、有効なままにしなければならない。"
1905 #: build/C/man3/aio_read.3:144 build/C/man3/aio_write.3:149
1906 #: build/C/man3/lio_listio.3:218
1908 "Simultaneous I/O operations specifying the same I<aiocb> structure produce "
1909 "undefined results."
1913 #: build/C/man3/aio_read.3:156
1916 #| "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1917 #| "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
1919 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1920 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1922 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1923 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
1926 #: build/C/man3/aio_return.3:23
1932 #: build/C/man3/aio_return.3:26
1933 msgid "aio_return - get return status of asynchronous I/O operation"
1934 msgstr "aio_return - 非同期 I/O 操作の返り値 (return status) を取得する"
1937 #: build/C/man3/aio_return.3:30
1938 msgid "B<ssize_t aio_return(struct aiocb *>I<aiocbp>B<);>"
1939 msgstr "B<ssize_t aio_return(struct aiocb *>I<aiocbp>B<);>"
1942 #: build/C/man3/aio_return.3:43
1945 #| "The B<aio_return>() function returns the final return status for the "
1946 #| "asynchronous I/O request with control block pointed to by I<aiocbp>."
1948 "The B<aio_return>() function returns the final return status for the "
1949 "asynchronous I/O request with control block pointed to by I<aiocbp>. (See "
1950 "B<aio>(7) for a description of the I<aiocb> structure.)"
1952 "B<aio_return>() 関数は I<aiocbp> で指された制御ブロックにおける非同期 I/O リ"
1956 #: build/C/man3/aio_return.3:48
1958 "This function should be called only once for any given request, after "
1959 "B<aio_error>(3) returns something other than B<EINPROGRESS>."
1961 "この関数は、 B<aio_error>(3) が B<EINPROGRESS> 以外を返した後で、 与えられた"
1962 "リクエストに対して 1 回だけ呼ばれるべきである。"
1965 #: build/C/man3/aio_return.3:57
1968 #| "If the asynchronous I/O operation has completed, this function returns "
1969 #| "the value that would have been returned in case of a synchronous I<read>, "
1970 #| "I<write>, or I<fsync> request. Otherwise the return value is undefined. "
1971 #| "On error, the error value is returned."
1973 "If the asynchronous I/O operation has completed, this function returns the "
1974 "value that would have been returned in case of a synchronous B<read>(2), "
1975 "B<write>(2), B<fsync>(2) or B<fdatasync>(2), call."
1977 "非同期 I/O 操作が完了した場合、この関数は同期 I<read>, I<write>, I<fsync> リ"
1978 "クエストのときに返されるのと同じ値を返す。 それ以外の場合、返り値は未定義であ"
1979 "る。 エラーの場合、エラー値が返される。"
1982 #: build/C/man3/aio_return.3:62
1984 "If the asynchronous I/O operation has not yet completed, the return value "
1985 "and effect of B<aio_return>() are undefined."
1989 #: build/C/man3/aio_return.3:68
1991 "I<aiocbp> does not point at a control block for an asynchronous I/O request "
1992 "of which the return status has not been retrieved yet."
1994 "I<aiocbp> が、返り値がまだ取得されていない非同期 I/O リクエストの 制御ブロッ"
1998 #: build/C/man3/aio_return.3:72
1999 msgid "The B<aio_return>() function is available since glibc 2.1."
2003 #: build/C/man3/aio_return.3:86
2006 #| "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
2007 #| "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
2009 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
2010 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
2012 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
2013 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
2016 #: build/C/man3/aio_suspend.3:24
2019 msgstr "AIO_SUSPEND"
2022 #: build/C/man3/aio_suspend.3:27
2023 msgid "aio_suspend - wait for asynchronous I/O operation or timeout"
2024 msgstr "aio_suspend - 非同期 I/O 操作またはタイムアウトを待つ"
2027 #: build/C/man3/aio_suspend.3:31 build/C/man3/lio_listio.3:29
2029 msgid "B<#include E<lt>aio.hE<gt>>\n"
2030 msgstr "B<#include E<lt>aio.hE<gt>>\n"
2033 #: build/C/man3/aio_suspend.3:33
2035 #| msgid "B<int aio_suspend(const struct aiocb * const >I<cblist>B<[],>\n"
2036 msgid "B<int aio_suspend(const struct aiocb * const >I<aiocb_list>B<[],>\n"
2037 msgstr "B<int aio_suspend(const struct aiocb * const >I<cblist>B<[],>\n"
2040 #: build/C/man3/aio_suspend.3:35
2042 #| msgid "B< int >I<n>B<, const struct timespec *>I<timeout>B<);>\n"
2043 msgid "B< int >I<nitems>B<, const struct timespec *>I<timeout>B<);>\n"
2044 msgstr "B< int >I<n>B<, const struct timespec *>I<timeout>B<);>\n"
2047 #: build/C/man3/aio_suspend.3:37 build/C/man3/lio_listio.3:34
2049 msgid "Link with I<-lrt>.\n"
2050 msgstr "I<-lrt> でリンクする。\n"
2053 #: build/C/man3/aio_suspend.3:42
2055 "The B<aio_suspend>() function suspends the calling thread until one of the "
2060 #: build/C/man3/aio_suspend.3:46
2062 "One or more of the asynchronous I/O requests in the list I<aiocb_list> has "
2067 #: build/C/man3/aio_suspend.3:48
2068 msgid "A signal is delivered."
2072 #: build/C/man3/aio_suspend.3:55
2074 "I<timeout> is not NULL and the specified time interval has passed. (For "
2075 "details of the I<timespec> structure, see B<nanosleep>(2).)"
2079 #: build/C/man3/aio_suspend.3:73
2082 #| "Each item in the list must either be NULL (and then is ignored), or a "
2083 #| "pointer to a control block on which I/O was initiated using B<aio_read>"
2084 #| "(3), B<aio_write>(3), or B<lio_listio>(3)."
2086 "The I<nitems> argument specifies the number of items in I<aiocb_list>. Each "
2087 "item in the list pointed to by I<aiocb_list> must be either NULL (and then "
2088 "is ignored), or a pointer to a control block on which I/O was initiated "
2089 "using B<aio_read>(3), B<aio_write>(3), or B<lio_listio>(3). (See B<aio>(7) "
2090 "for a description of the I<aiocb> structure.)"
2092 "リストの各アイテムは、NULL (これは無視される) か、 B<aio_read>(3), "
2093 "B<aio_write>(3), B<lio_listio>(3) を使って I/O が開始された制御ブロックへの"
2097 #: build/C/man3/aio_suspend.3:79
2100 #| "If B<CLOCK_MONOTONIC> is supported, this clock is used to measure the "
2101 #| "timeout interval."
2103 "If B<CLOCK_MONOTONIC> is supported, this clock is used to measure the "
2104 "timeout interval (see B<clock_gettime>(3))."
2106 "B<CLOCK_MONOTONIC> がサポートされる場合、 このクロックを使ってタイムアウトの"
2110 #: build/C/man3/aio_suspend.3:87
2113 #| "If this function returns after completion of one of the indicated "
2114 #| "requests, it returns 0. Otherwise it returns -1 and sets I<errno> "
2117 "If this function returns after completion of one of the I/O requests "
2118 "specified in I<aiocb_list>, 0 is returned. Otherwise, -1 is returned, and "
2119 "I<errno> is set to indicate the error."
2121 "指示されたリクエストの 1 つが完了した後にこの関数が返る場合は、0 を返す。 そ"
2122 "れ以外の場合は -1 を返して、 I<errno> を適切に設定する。"
2125 #: build/C/man3/aio_suspend.3:92
2128 #| "The call was ended by timeout, before any of the indicated operations had "
2131 "The call timed out before any of the indicated operations had completed."
2133 "指示された操作のどれも完了しないうちに、 この呼び出しがタイムアウトによって終"
2137 #: build/C/man3/aio_suspend.3:92 build/C/man2/io_getevents.2:69
2138 #: build/C/man3/lio_listio.3:168
2144 #: build/C/man3/aio_suspend.3:98
2147 #| "The call was ended by signal; see B<signal>(7). (Possibly the completion "
2148 #| "signal of one of the operations we were waiting for.)"
2150 "The call was ended by signal (possibly the completion signal of one of the "
2151 "operations we were waiting for); see B<signal>(7)."
2153 "この呼び出しがシグナルによって終了させられた。 B<signal>(7) 参照。 (このシグ"
2154 "ナルは、完了を待っていた操作のいずれかの完了シグナルの可能性もある。)"
2157 #: build/C/man3/aio_suspend.3:102
2158 msgid "The B<aio_suspend>() function is available since glibc 2.1."
2162 #: build/C/man3/aio_suspend.3:108
2164 "One can achieve polling by using a non-NULL I<timeout> that specifies a zero "
2167 "時間間隔が 0 であることを指定する NULL ではない I<timeout> を使って、ポーリン"
2171 #: build/C/man3/aio_suspend.3:114
2173 "If one or more of the asynchronous I/O operations specified in I<aiocb_list> "
2174 "has already completed at the time of the call to B<aio_suspend>(), then the "
2175 "call returns immediately."
2179 #: build/C/man3/aio_suspend.3:124
2181 "To determine which I/O operations have completed after a successful return "
2182 "from B<aio_suspend>(), use B<aio_error>(3) to scan the list of I<aiocb> "
2183 "structures pointed to by I<aiocb_list>."
2187 #: build/C/man3/aio_suspend.3:134
2190 #| "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
2191 #| "B<aio_return>(3), B<aio_write>(3), B<time>(7)"
2193 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
2194 "B<aio_return>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7), B<time>(7)"
2196 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
2197 "B<aio_return>(3), B<aio_write>(3), B<time>(7)"
2200 #: build/C/man3/aio_write.3:23
2206 #: build/C/man3/aio_write.3:26
2207 msgid "aio_write - asynchronous write"
2208 msgstr "aio_write - 非同期で書き込む"
2211 #: build/C/man3/aio_write.3:30
2212 msgid "B<int aio_write(struct aiocb *>I<aiocbp>B<);>"
2213 msgstr "B<int aio_write(struct aiocb *>I<aiocbp>B<);>"
2216 #: build/C/man3/aio_write.3:40
2218 "The B<aio_write>() function queues the I/O request described by the buffer "
2219 "pointed to by I<aiocb>. This function is the asynchronous analog of B<write>"
2220 "(2). The arguments of the call"
2224 #: build/C/man3/aio_write.3:42
2226 msgid " write(fd, buf, count)\n"
2230 #: build/C/man3/aio_write.3:68
2233 #| "If B<O_APPEND> is not set, the data is written starting at the absolute "
2234 #| "file offset I<aiocbp-E<gt>aio_offset>, regardless of the current file "
2235 #| "position. If B<O_APPEND> is set, the data is written at the end of the "
2236 #| "file. After this request, the value of the current file position is "
2239 "If B<O_APPEND> is not set, the data is written starting at the absolute file "
2240 "offset I<aiocbp-E<gt>aio_offset>, regardless of the current file offset. If "
2241 "B<O_APPEND> is set, data is written at the end of the file in the same order "
2242 "as B<aio_write>() calls are made. After the call, the value of the current "
2243 "file offset is unspecified."
2245 "B<O_APPEND> が設定されない場合、カレントのファイル位置に関係なく、 データは絶"
2246 "対ファイルオフセット I<aiocbp-E<gt>aio_offset> を開始点として書き込まれる。 "
2247 "B<O_APPEND> が設定されている場合、データはファイルの終端に書き込まれる。 この"
2248 "リクエストの後の、カレントのファイル位置は規定されていない。"
2251 #: build/C/man3/aio_write.3:81
2254 #| "The \"asynchronous\" means that this call returns as soon as the request "
2255 #| "has been enqueued; the write may or may not have completed when the call "
2256 #| "returns. One tests for completion using B<aio_error>(3)."
2258 "The \"asynchronous\" means that this call returns as soon as the request has "
2259 "been enqueued; the write may or may not have completed when the call "
2260 "returns. One tests for completion using B<aio_error>(3). The return status "
2261 "of a completed I/O operation can be obtained B<aio_return>(3). Asynchronous "
2262 "notification of I/O completion can be obtained by setting I<aiocbp-"
2263 "E<gt>aio_sigevent> appropriately; see B<sigevent>(7) for details."
2265 "「非同期」とは「リクエストがキューに入れられたら、この呼び出しはすぐに返る」 "
2266 "ということである。 呼び出しから戻った時に、書き込みは完了しているかも知れない"
2267 "し、 完了していないかも知れない。 B<aio_error>(3) を使うことで完了したかをテ"
2271 #: build/C/man3/aio_write.3:94
2272 msgid "No data is written to a regular file beyond its maximum offset."
2273 msgstr "最大オフセットを超えた通常のファイルには、何もデータが書き込まれない。"
2276 #: build/C/man3/aio_write.3:117
2282 #: build/C/man3/aio_write.3:121
2284 "The file is a regular file, we want to write at least one byte, but the "
2285 "starting position is at or beyond the maximum offset for this file."
2287 "ファイルは通常のファイルであり、少なくとも 1 バイトを書き込もうとしている。 "
2288 "しかし開始位置が、このファイルの最大オフセットと同じかそれを超えている。"
2291 #: build/C/man3/aio_write.3:128
2293 "One or more of I<aio_offset>, I<aio_reqprio>, I<aio_nbytes> are invalid."
2295 "I<aio_offset>, I<aio_reqprio>, I<aio_nbytes> のうち 1 つ以上が無効である。"
2298 #: build/C/man3/aio_write.3:135
2299 msgid "The B<aio_write>() function is available since glibc 2.1."
2302 #. or the control block of the operation
2304 #: build/C/man3/aio_write.3:145
2307 #| "It is a good idea to zero out the control block before use. This control "
2308 #| "block must not be changed while the write operation is in progress. The "
2309 #| "buffer area being written out must not be accessed during the operation "
2310 #| "or undefined results may occur. The memory areas involved must remain "
2313 "It is a good idea to zero out the control block before use. The control "
2314 "block must not be changed while the write operation is in progress. The "
2315 "buffer area being written out must not be accessed during the operation or "
2316 "undefined results may occur. The memory areas involved must remain valid."
2318 "使用する前に制御ブロックを 0 にしておくのは、よい考えである。 この制御ブロッ"
2319 "クは、読み込み操作が進行している間は変更すべきでない。 読み込まれるバッファ領"
2320 "域は 操作の最中にアクセスすべきではない。 さもないと起こる結果が不定になる。 "
2321 "これに含まれるメモリ領域は、有効なままにしなければならない。"
2324 #: build/C/man3/aio_write.3:158
2327 #| "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
2328 #| "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
2330 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
2331 "B<aio_return>(3), B<aio_suspend>(3), B<lio_listio>(3), B<aio>(7)"
2333 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
2334 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
2337 #: build/C/man2/io_cancel.2:23
2343 #: build/C/man2/io_cancel.2:23 build/C/man2/io_destroy.2:23
2344 #: build/C/man2/io_setup.2:23 build/C/man2/io_submit.2:23
2350 #: build/C/man2/io_cancel.2:26
2351 msgid "io_cancel - cancel an outstanding asynchronous I/O operation"
2352 msgstr "io_cancel - 未処理の非同期 I/O 操作の取り消し"
2356 #. #include <linux/aio.h>
2358 #: build/C/man2/io_cancel.2:33 build/C/man2/io_destroy.2:32
2359 #: build/C/man2/io_setup.2:32 build/C/man2/io_submit.2:32
2361 msgid "B<#include E<lt>libaio.hE<gt>>\n"
2362 msgstr "B<#include E<lt>libaio.hE<gt>>\n"
2368 #: build/C/man2/io_cancel.2:39
2371 "B<int io_cancel(aio_context_t >I<ctx_id>B<, struct iocb *>I<iocb>B<,>\n"
2372 "B< struct io_event *>I<result>B<);>\n"
2374 "B<int io_cancel(aio_context_t >I<ctx_id>B<, struct iocb *>I<iocb>B<,>\n"
2375 "B< struct io_event *>I<result>B<);>\n"
2378 #: build/C/man2/io_cancel.2:41 build/C/man2/io_destroy.2:39
2379 #: build/C/man2/io_getevents.2:42 build/C/man2/io_setup.2:39
2380 #: build/C/man2/io_submit.2:40
2382 msgid "Link with I<-laio>.\n"
2383 msgstr "I<-laio> とリンクする。\n"
2386 #: build/C/man2/io_cancel.2:51
2388 "B<io_cancel>() attempts to cancel an asynchronous I/O operation previously "
2389 "submitted with B<io_submit>(2). I<ctx_id> is the AIO context ID of the "
2390 "operation to be canceled. If the AIO context is found, the event will be "
2391 "canceled and then copied into the memory pointed to by I<result> without "
2392 "being placed into the completion queue."
2394 "B<io_cancel>() は、過去に B<io_submit>(2) を使って登録された非同期 I/O "
2395 "(AIO) 操作の取り消しを行おうとする。 I<ctx_id> は、取り消しを行う操作の AIO "
2396 "コンテキストの ID である。 指定した AIO コンテキストが見つかると、 対象のイベ"
2397 "ントの取り消しが行われ、その後 I<result> で指されたメモリに コピーされる (こ"
2398 "のとき、完了キューへの移動は行われない)。"
2401 #: build/C/man2/io_cancel.2:56
2403 "On success, B<io_cancel>() returns 0. For the failure return, see NOTES."
2405 "成功した場合、 B<io_cancel>() は 0 を返す。 失敗時の返り値については、「注"
2409 #: build/C/man2/io_cancel.2:60
2410 msgid "The I<iocb> specified was not canceled."
2411 msgstr "指定された I<iocb> の取り消しが行われなかった。"
2414 #: build/C/man2/io_cancel.2:60 build/C/man2/io_destroy.2:54
2415 #: build/C/man2/io_getevents.2:61 build/C/man2/io_setup.2:58
2416 #: build/C/man2/io_submit.2:61
2422 #: build/C/man2/io_cancel.2:63 build/C/man2/io_submit.2:64
2423 msgid "One of the data structures points to invalid data."
2424 msgstr "データ構造の中に無効なデータを指しているものがある。"
2427 #: build/C/man2/io_cancel.2:66
2428 msgid "The AIO context specified by I<ctx_id> is invalid."
2429 msgstr "I<ctx_id> で指定された AIO コンテキストが無効である。"
2432 #: build/C/man2/io_cancel.2:70
2433 msgid "B<io_cancel>() is not implemented on this architecture."
2434 msgstr "B<io_cancel>() はこのアーキテクチャでは実装されていない。"
2437 #: build/C/man2/io_cancel.2:73 build/C/man2/io_destroy.2:67
2438 #: build/C/man2/io_getevents.2:80 build/C/man2/io_setup.2:76
2439 #: build/C/man2/io_submit.2:78
2441 "The asynchronous I/O system calls first appeared in Linux 2.5, August 2002."
2442 msgstr "非同期 I/O システム・コールは 2002年8月に Linux 2.5 で初めて登場した。"
2445 #: build/C/man2/io_cancel.2:78
2447 "B<io_cancel>() is Linux-specific and should not be used in programs that "
2448 "are intended to be portable."
2450 "B<io_cancel>() は Linux 固有であり、移植を想定したプログラムで使用すべきでは"
2454 #: build/C/man2/io_cancel.2:80 build/C/man2/io_destroy.2:74
2455 #: build/C/man2/io_getevents.2:87 build/C/man2/io_setup.2:83
2456 #: build/C/man2/io_submit.2:85
2457 msgid "Glibc does not provide a wrapper function for this system call."
2458 msgstr "glibc はこのシステムコール用のラッパー関数を提供していない。"
2461 #: build/C/man2/io_cancel.2:94
2463 "The wrapper provided in I<libaio> for B<io_cancel>() does not follow the "
2464 "usual C library conventions for indicating error: on error it returns a "
2465 "negated error number (the negative of one of the values listed in ERRORS). "
2466 "If the system call is invoked via B<syscall>(2), then the return value "
2467 "follows the usual conventions for indicating an error: -1, with I<errno> set "
2468 "to a (positive) value that indicates the error."
2470 "I<libaio> で B<io_cancel>() 用に提供されているラッパー関数は、エラーの通知が"
2471 "通常の C ライブラリの 慣習にしたがっておらず、エラーの場合には負のエラー番号 "
2472 "(エラーの節に列挙されている値の一つを負にしたもの) が返り値となる。 "
2473 "B<syscall>(2) 経由でシステムコールを起動すると、返り値は通常のエラー通知の慣"
2474 "習に したがってものとなり、エラーの場合には -1 が返り、 I<errno> にエラーを示"
2479 #. The asynchronous I/O system calls were written by Benjamin LaHaise.
2483 #: build/C/man2/io_cancel.2:107
2485 "B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2488 "B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2492 #: build/C/man2/io_destroy.2:23
2498 #: build/C/man2/io_destroy.2:26
2499 msgid "io_destroy - destroy an asynchronous I/O context"
2500 msgstr "io_destroy - 非同期 I/O コンテキストの消去"
2506 #: build/C/man2/io_destroy.2:37
2508 msgid "B<int io_destroy(aio_context_t >I<ctx>B<);>\n"
2509 msgstr "B<int io_destroy(aio_context_t >I<ctx>B<);>\n"
2512 #: build/C/man2/io_destroy.2:48
2514 "B<io_destroy>() removes the asynchronous I/O context from the list of I/O "
2515 "contexts and then destroys it. B<io_destroy>() can also cancel any "
2516 "outstanding asynchronous I/O actions on I<ctx> and block on completion."
2518 "B<io_destroy>() は、I/O コンテキストのリストから指定された非同期 I/O コンテ"
2519 "キストを削除した後、そのコンテキストを消去する。 B<io_destroy>() は、I<ctx> "
2520 "上に未処理の非同期 I/O 命令及び 完了キューのブロックの取り消しも行うことがで"
2524 #: build/C/man2/io_destroy.2:53
2526 "On success, B<io_destroy>() returns 0. For the failure return, see NOTES."
2528 "成功した場合、 B<io_destroy>() は 0 を返す。 失敗時の返り値については、「注"
2532 #: build/C/man2/io_destroy.2:57
2533 msgid "The context pointed to is invalid."
2534 msgstr "データ構造の中に無効なデータを指しているものがある。"
2537 #: build/C/man2/io_destroy.2:60
2538 msgid "The AIO context specified by I<ctx> is invalid."
2539 msgstr "I<ctx> で指定された AIO コンテキストが無効である。"
2542 #: build/C/man2/io_destroy.2:64
2543 msgid "B<io_destroy>() is not implemented on this architecture."
2544 msgstr "B<io_destroy>() はこのアーキテクチャでは実装されていない。"
2547 #: build/C/man2/io_destroy.2:72
2549 "B<io_destroy>() is Linux-specific and should not be used in programs that "
2550 "are intended to be portable."
2552 "B<io_destroy>() は Linux 固有であり、移植を想定したプログラムで使用すべきで"
2556 #: build/C/man2/io_destroy.2:88
2558 "The wrapper provided in I<libaio> for B<io_destroy>() does not follow the "
2559 "usual C library conventions for indicating error: on error it returns a "
2560 "negated error number (the negative of one of the values listed in ERRORS). "
2561 "If the system call is invoked via B<syscall>(2), then the return value "
2562 "follows the usual conventions for indicating an error: -1, with I<errno> set "
2563 "to a (positive) value that indicates the error."
2565 "I<libaio> で B<io_destroy>() 用に提供されているラッパー関数は、エラーの通知"
2566 "が通常の C ライブラリの 慣習にしたがっておらず、エラーの場合には負のエラー番"
2567 "号 (エラーの節に列挙されている値の一つを負にしたもの) が返り値となる。 "
2568 "B<syscall>(2) 経由でシステムコールを起動すると、返り値は通常のエラー通知の慣"
2569 "習に したがってものとなり、エラーの場合には -1 が返り、 I<errno> にエラーを示"
2574 #. The asynchronous I/O system calls were written by Benjamin LaHaise.
2578 #: build/C/man2/io_destroy.2:101
2580 "B<io_cancel>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2583 "B<io_cancel>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2587 #: build/C/man2/io_getevents.2:23
2589 msgid "IO_GETEVENTS"
2590 msgstr "IO_GETEVENTS"
2593 #: build/C/man2/io_getevents.2:23
2599 #: build/C/man2/io_getevents.2:26
2600 msgid "io_getevents - read asynchronous I/O events from the completion queue"
2601 msgstr "io_getevents - 完了キューから非同期 I/O イベントを読み出す"
2605 #. #include <linux/aio.h>
2607 #: build/C/man2/io_getevents.2:33
2610 "B<#include E<lt>linux/time.hE<gt>>\n"
2611 "B<#include E<lt>libaio.hE<gt>>\n"
2613 "B<#include E<lt>linux/time.hE<gt>>\n"
2614 "B<#include E<lt>libaio.hE<gt>>\n"
2620 #: build/C/man2/io_getevents.2:40
2623 "B<int io_getevents(aio_context_t >I<ctx_id>B<, long >I<min_nr>B<, long >I<nr>B<,>\n"
2624 "B< struct io_event *>I<events>B<, struct timespec *>I<timeout>B<);>\n"
2626 "B<int io_getevents(aio_context_t >I<ctx_id>B<, long >I<min_nr>B<, long >I<nr>B<,>\n"
2627 "B< struct io_event *>I<events>B<, struct timespec *>I<timeout>B<);>\n"
2630 #: build/C/man2/io_getevents.2:54
2632 "B<io_getevents>() attempts to read at least I<min_nr> events and up to "
2633 "I<nr> events from the completion queue of the AIO context specified by "
2634 "I<ctx_id>. I<timeout> specifies the amount of time to wait for events, "
2635 "where a NULL timeout waits until at least I<min_nr> events have been seen. "
2636 "Note that I<timeout> is relative and will be updated if not NULL and the "
2639 "B<io_getevents>() は、少なくとも I<min_nr> の、最大 I<nr> 個の イベントを、 "
2640 "I<ctx_id> で指定された AIO (非同期 I/O) コンテキストの 完了キューから読み出そ"
2641 "うとする。 I<timeout> はイベント読み出しの待ち時間の合計を指定する。 タイムア"
2642 "ウトに NULL を指定した場合、少なくとも I<min_nr> 個のイベントが 読み出される"
2643 "まで待つことを意味する。 注意点を以下にあげる: I<timeout> は相対的な指定であ"
2644 "る。 NULL でない場合更新されることもありえる。 呼び出し元の動作は停止する。"
2647 #: build/C/man2/io_getevents.2:60
2649 "On success, B<io_getevents>() returns the number of events read: 0 if no "
2650 "events are available, or less than I<min_nr> if the I<timeout> has elapsed. "
2651 "For the failure return, see NOTES."
2653 "成功すると、 B<io_getevents>() は読み出したイベント数を返す。 イベントが一つ"
2654 "も読み出されなかった場合は 0 が返され、 I<timeout> 時間が経過した場合は "
2655 "I<min_nr> 未満の値が返される。 失敗時の返り値については、「注意」の節を参照す"
2659 #: build/C/man2/io_getevents.2:64
2660 msgid "Either I<events> or I<timeout> is an invalid pointer."
2661 msgstr "I<events> または I<timeout> が無効なポインタである。"
2664 #: build/C/man2/io_getevents.2:69
2666 "I<ctx_id> is invalid. I<min_nr> is out of range or I<nr> is out of range."
2668 "I<ctx_id> が無効である。もしくは、I<min_nr> または I<nr> が 範囲外の値であ"
2672 #: build/C/man2/io_getevents.2:73
2673 msgid "Interrupted by a signal handler; see B<signal>(7)."
2674 msgstr "シグナルハンドラにより割り込まれた。 B<signal>(7) 参照。"
2677 #: build/C/man2/io_getevents.2:77
2678 msgid "B<io_getevents>() is not implemented on this architecture."
2679 msgstr "B<io_getevents>() がこのアーキテクチャでは実装されていない。"
2682 #: build/C/man2/io_getevents.2:85
2684 "B<io_getevents>() is Linux-specific and should not be used in programs that "
2685 "are intended to be portable."
2687 "B<io_getevents>() は Linux 固有であり、移植を想定したプログラムで 使用すべき"
2691 #: build/C/man2/io_getevents.2:101
2693 "The wrapper provided in I<libaio> for B<io_getevents>() does not follow the "
2694 "usual C library conventions for indicating error: on error it returns a "
2695 "negated error number (the negative of one of the values listed in ERRORS). "
2696 "If the system call is invoked via B<syscall>(2), then the return value "
2697 "follows the usual conventions for indicating an error: -1, with I<errno> set "
2698 "to a (positive) value that indicates the error."
2700 "I<libaio> で B<io_getevents>() 用に提供されているラッパー関数は、エラーの通"
2701 "知が通常の C ライブラリの 慣習にしたがっておらず、エラーの場合には負のエラー"
2702 "番号 (エラーの節に列挙されている値の一つを負にしたもの) が返り値となる。 "
2703 "B<syscall>(2) 経由でシステムコールを起動すると、返り値は通常のエラー通知の慣"
2704 "習に したがってものとなり、エラーの場合には -1 が返り、 I<errno> にエラーを示"
2709 #. The asynchronous I/O system calls were written by Benjamin LaHaise.
2713 #: build/C/man2/io_getevents.2:116
2715 "B<io_cancel>(2), B<io_destroy>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2718 "B<io_cancel>(2), B<io_destroy>(2), B<io_setup>(2), B<io_submit>(2), B<aio>"
2722 #: build/C/man2/io_setup.2:23
2728 #: build/C/man2/io_setup.2:26
2729 msgid "io_setup - create an asynchronous I/O context"
2730 msgstr "io_setup - 非同期 I/O コンテキストを作成する"
2736 #: build/C/man2/io_setup.2:37
2738 msgid "B<int io_setup(unsigned >I<nr_events>B<, aio_context_t *>I<ctxp>B<);>\n"
2739 msgstr "B<int io_setup(unsigned >I<nr_events>B<, aio_context_t *>I<ctxp>B<);>\n"
2742 #: build/C/man2/io_setup.2:49
2744 "B<io_setup>() creates an asynchronous I/O context capable of receiving at "
2745 "least I<nr_events>. I<ctxp> must not point to an AIO context that already "
2746 "exists, and must be initialized to 0 prior to the call. On successful "
2747 "creation of the AIO context, I<*ctxp> is filled in with the resulting handle."
2749 "B<io_setup>() は、少なくとも I<nr_events> 個のイベントを受信可能な 非同期 I/"
2750 "O (AIO) コンテキストの作成を行う。 I<ctxp> は、すでに存在する AIO コンテキス"
2751 "トを指していてはならず、 B<io_setup>() の呼び出しの前に 0 に初期化されていな"
2752 "ければならない。 AIO コンテキストの作成に成功すると、I<*ctxp> に作成された "
2753 "AIO コンテキストへのポインタがセットされる。"
2756 #: build/C/man2/io_setup.2:54
2758 "On success, B<io_setup>() returns 0. For the failure return, see NOTES."
2760 "成功した場合、 B<io_setup>() は 0 を返す。 失敗時の返り値については、「注"
2764 #: build/C/man2/io_setup.2:58
2766 "The specified I<nr_events> exceeds the user's limit of available events."
2768 "指定された I<nr_events> がユーザが使用できるイベント数の上限を越えている。"
2771 #: build/C/man2/io_setup.2:61
2772 msgid "An invalid pointer is passed for I<ctxp>."
2773 msgstr "I<ctxp> に無効なポインタが指定されている。"
2776 #: build/C/man2/io_setup.2:66
2778 "I<ctxp> is not initialized, or the specified I<nr_events> exceeds internal "
2779 "limits. I<nr_events> should be greater than 0."
2781 "I<ctxp> が初期化されていないか、指定された I<nr_events> が 内部の制限値を越え"
2782 "ている。また、 I<nr_events> は 0 より大きい値に 設定すべきである。"
2785 #: build/C/man2/io_setup.2:66
2791 #: build/C/man2/io_setup.2:69
2792 msgid "Insufficient kernel resources are available."
2793 msgstr "必要なカーネル・リソースを得られない。"
2796 #: build/C/man2/io_setup.2:73
2797 msgid "B<io_setup>() is not implemented on this architecture."
2798 msgstr "B<io_setup>() がこのアーキテクチャでは実装されていない。"
2801 #: build/C/man2/io_setup.2:81
2803 "B<io_setup>() is Linux-specific and should not be used in programs that are "
2804 "intended to be portable."
2806 "B<io_setup>() は Linux 固有であり、移植を想定したプログラムで 使用すべきでは"
2810 #: build/C/man2/io_setup.2:97
2812 "The wrapper provided in I<libaio> for B<io_setup>() does not follow the "
2813 "usual C library conventions for indicating error: on error it returns a "
2814 "negated error number (the negative of one of the values listed in ERRORS). "
2815 "If the system call is invoked via B<syscall>(2), then the return value "
2816 "follows the usual conventions for indicating an error: -1, with I<errno> set "
2817 "to a (positive) value that indicates the error."
2819 "I<libaio> で B<io_setup>() 用に提供されているラッパー関数は、エラーの通知が"
2820 "通常の C ライブラリの 慣習にしたがっておらず、エラーの場合には負のエラー番号 "
2821 "(エラーの節に列挙されている値の一つを負にしたもの) が返り値となる。 "
2822 "B<syscall>(2) 経由でシステムコールを起動すると、返り値は通常のエラー通知の慣"
2823 "習に したがってものとなり、エラーの場合には -1 が返り、 I<errno> にエラーを示"
2828 #. The asynchronous I/O system calls were written by Benjamin LaHaise.
2832 #: build/C/man2/io_setup.2:108
2834 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_submit>(2), "
2837 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_submit>(2), "
2841 #: build/C/man2/io_submit.2:23
2847 #: build/C/man2/io_submit.2:26
2848 msgid "io_submit - submit asynchronous I/O blocks for processing"
2849 msgstr "io_submit - 非同期 I/O ブロックを処理待ちキューに登録する"
2855 #: build/C/man2/io_submit.2:38
2857 msgid "B<int io_submit(aio_context_t >I<ctx_id>B<, long >I<nr>B<, struct iocb **>I<iocbpp>B<);>\n"
2858 msgstr "B<int io_submit(aio_context_t >I<ctx_id>B<, long >I<nr>B<, struct iocb **>I<iocbpp>B<);>\n"
2861 #: build/C/man2/io_submit.2:48
2863 "B<io_submit>() queues I<nr> I/O request blocks for processing in the AIO "
2864 "context I<ctx_id>. I<iocbpp> should be an array of I<nr> AIO control "
2865 "blocks, which will be submitted to context I<ctx_id>."
2867 "B<io_submit>() は、AIO コンテキスト I<ctx_id> に I<nr> 個の I/O リクエストを"
2868 "処理待ちとしてキューに追加する。 I<iocbpp> は、AIO コンテキスト I<ctx_id> に"
2869 "登録される I<nr> 個の AIO 制御ブロックの配列になっていなければならない。"
2872 #: build/C/man2/io_submit.2:54
2874 "On success, B<io_submit>() returns the number of I<iocb>s submitted (which "
2875 "may be 0 if I<nr> is zero). For the failure return, see NOTES."
2877 "成功すると、 B<io_submit>() は登録した I<iocb> の個数を返す (I<nr> が 0 の場"
2878 "合は 0 を返す)。 失敗時の返り値については、「注意」の節を参照すること。"
2881 #: build/C/man2/io_submit.2:58
2882 msgid "Insufficient resources are available to queue any I<iocb>s."
2883 msgstr "何個かの I<iocb> をキューに入れるのに必要なリソースが得られない。"
2886 #: build/C/man2/io_submit.2:61
2887 msgid "The file descriptor specified in the first I<iocb> is invalid."
2888 msgstr "先頭の I<iocb> に指定されたファイル・ディスクリプタが無効である。"
2891 #: build/C/man2/io_submit.2:71
2893 "The I<aio_context> specified by I<ctx_id> is invalid. I<nr> is less than "
2894 "0. The I<iocb> at *iocbpp[0] is not properly initialized, or the operation "
2895 "specified is invalid for the file descriptor in the I<iocb>."
2897 "I<ctx_id> で指定された I<aio_context> が無効である。 I<nr> が 0 未満である。 "
2898 "*iocbpp[0] の I<iocb> が適切に初期化されていないか、 指定された操作がその "
2899 "I<iocb> 中のファイル・ディスクリプタに対して 無効である。"
2902 #: build/C/man2/io_submit.2:75
2903 msgid "B<io_submit>() is not implemented on this architecture."
2904 msgstr "B<io_submit>() はこのアーキテクチャでは実装されていない。"
2907 #: build/C/man2/io_submit.2:83
2909 "B<io_submit>() is Linux-specific and should not be used in programs that "
2910 "are intended to be portable."
2912 "B<io_submit>() は Linux 固有であり、移植を想定したプログラムで 使用すべきで"
2916 #: build/C/man2/io_submit.2:99
2918 "The wrapper provided in I<libaio> for B<io_submit>() does not follow the "
2919 "usual C library conventions for indicating error: on error it returns a "
2920 "negated error number (the negative of one of the values listed in ERRORS). "
2921 "If the system call is invoked via B<syscall>(2), then the return value "
2922 "follows the usual conventions for indicating an error: -1, with I<errno> set "
2923 "to a (positive) value that indicates the error."
2925 "I<libaio> で B<io_submit>() 用に提供されているラッパー関数は、エラーの通知が"
2926 "通常の C ライブラリの 慣習にしたがっておらず、エラーの場合には負のエラー番号 "
2927 "(エラーの節に列挙されている値の一つを負にしたもの) が返り値となる。 "
2928 "B<syscall>(2) 経由でシステムコールを起動すると、返り値は通常のエラー通知の慣"
2929 "習に したがってものとなり、エラーの場合には -1 が返り、 I<errno> にエラーを示"
2934 #. The asynchronous I/O system calls were written by Benjamin LaHaise.
2938 #: build/C/man2/io_submit.2:110
2940 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), B<aio>"
2943 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), B<aio>"
2947 #: build/C/man3/lio_listio.3:23
2953 #: build/C/man3/lio_listio.3:23
2959 #: build/C/man3/lio_listio.3:26
2960 msgid "lio_listio - initiate a list of I/O requests"
2964 #: build/C/man3/lio_listio.3:32
2967 "B<int lio_listio(int >I<mode>B<, struct aiocb *const >I<aiocb_list>B<[],>\n"
2968 "B< int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
2970 "B<int lio_listio(int >I<mode>B<, struct aiocb *const >I<aiocb_list>B<[],>\n"
2971 "B< int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
2974 #: build/C/man3/lio_listio.3:40
2976 "The B<lio_listio>() function initiates the list of I/O operations described "
2977 "by the array I<aiocb_list>."
2981 #: build/C/man3/lio_listio.3:44
2982 msgid "The I<mode> operation has one of the following values:"
2986 #: build/C/man3/lio_listio.3:44
2989 msgstr "B<LIO_WAIT>"
2992 #: build/C/man3/lio_listio.3:50
2994 "The call blocks until all operations are complete. The I<sevp> argument is "
2999 #: build/C/man3/lio_listio.3:50
3001 msgid "B<LIO_NOWAIT>"
3002 msgstr "B<LIO_NOWAIT>"
3005 #: build/C/man3/lio_listio.3:62
3007 "The I/O operations are queued for processing and the call returns "
3008 "immediately. When the I/O operations complete, asynchronous notification "
3009 "occurs, as specified by the I<sevp> argument; see B<sigevent>(7) for "
3010 "details. If I<sevp> is NULL, no asynchronous notification occurs."
3014 #: build/C/man3/lio_listio.3:76
3016 "The I<aiocb_list> argument is an array of pointers to I<aiocb> structures "
3017 "that describe I/O operations. These operations are executed in an "
3018 "unspecified order. The I<nitems> argument specifies the size of the array "
3019 "I<aiocb_list>. NULL pointers in I<aiocb_list> are ignored."
3023 #: build/C/man3/lio_listio.3:82
3025 "In each control block in I<aiocb_list>, the I<aio_lio_opcode> field "
3026 "specifies the I/O operation to be initiated, as follows:"
3030 #: build/C/man3/lio_listio.3:82
3033 msgstr "B<LIO_READ>"
3036 #: build/C/man3/lio_listio.3:88
3038 "Initiate a read operation. The operation is queued as for a call to "
3039 "B<aio_read>(3) specifying this control block."
3043 #: build/C/man3/lio_listio.3:88
3045 msgid "B<LIO_WRITE>"
3046 msgstr "B<LIO_WRITE>"
3049 #: build/C/man3/lio_listio.3:94
3051 "Initiate a write operation. The operation is queued as for a call to "
3052 "B<aio_write>(3) specifying this control block."
3056 #: build/C/man3/lio_listio.3:94
3062 #: build/C/man3/lio_listio.3:97
3063 msgid "Ignore this control block."
3067 #: build/C/man3/lio_listio.3:107
3069 "The remaining fields in each control block have the same meanings as for "
3070 "B<aio_read>(3) and B<aio_write>(3). The I<aio_sigevent> fields of each "
3071 "control block can be used to specify notifications for the individual I/O "
3072 "operations (see B<sigevent>(7))."
3076 #: build/C/man3/lio_listio.3:117
3078 "If I<mode> is B<LIO_NOWAIT>, B<lio_listio>() returns 0 if all I/O "
3079 "operations are successfully queued. Otherwise, -1 is returned, and I<errno> "
3080 "is set to indicate the error."
3084 #: build/C/man3/lio_listio.3:127
3086 "If I<mode> is B<LIO_WAIT>, B<lio_listio>() returns 0 when all of the I/O "
3087 "operations have completed successfully. Otherwise, -1 is returned, and "
3088 "I<errno> is set to indicate the error."
3092 #: build/C/man3/lio_listio.3:145
3094 "The return status from B<lio_listio>() provides information only about the "
3095 "call itself, not about the individual I/O operations. One or more of the I/"
3096 "O operations may fail, but this does not prevent other operations "
3097 "completing. The status of individual I/O operations in I<aiocb_list> can be "
3098 "determined using B<aio_error>(3). When an operation has completed, its "
3099 "return status can be obtained using B<aio_return>(3). Individual I/O "
3100 "operations can fail for the reasons described in B<aio_read>(3) and "
3105 #: build/C/man3/lio_listio.3:149
3106 msgid "The B<lio_listio>() function may fail for the following reasons:"
3109 #. Doesn't happen in glibc(?)
3111 #: build/C/man3/lio_listio.3:160
3113 "The number of I/O operations specified by I<nitems> would cause the limit "
3114 "B<AIO_MAX> to be exceeded."
3117 #. Doesn't happen in glibc(?)
3119 #: build/C/man3/lio_listio.3:168
3120 msgid "I<mode> is invalid, or I<nitems> exceeds the limit B<AIO_LISTIO_MAX>."
3124 #: build/C/man3/lio_listio.3:177
3126 "I<mode> was B<LIO_WAIT> and a signal was caught before all I/O operations "
3127 "completed. (This may even be one of the signals used for asynchronous I/O "
3128 "completion notification.)"
3132 #: build/C/man3/lio_listio.3:177
3137 #. e.g., ioa_reqprio or aio_lio_opcode was invalid
3139 #: build/C/man3/lio_listio.3:185
3141 "One of more of the operations specified by I<aiocb_list> failed. The "
3142 "application can check the status of each operation using B<aio_return>(3)."
3146 #: build/C/man3/lio_listio.3:200
3148 "If B<lio_listio>() fails with the error B<EAGAIN>, B<EINTR>, or B<EIO>, "
3149 "then some of the operations in I<aiocb_list> may have been initiated. If "
3150 "B<lio_listio>() fails for any other reason, then none of the I/O operations "
3151 "has been initiated."
3155 #: build/C/man3/lio_listio.3:204
3156 msgid "The B<lio_listio>() function is available since glibc 2.1."
3159 #. or the control block of the operation
3161 #: build/C/man3/lio_listio.3:214
3163 "It is a good idea to zero out the control blocks before use. The control "
3164 "blocks must not be changed while the I/O operations are in progress. The "
3165 "buffer areas being read into or written from must not be accessed during the "
3166 "operations or undefined results may occur. The memory areas involved must "
3171 #: build/C/man3/lio_listio.3:226
3173 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
3174 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
3176 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
3177 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
3179 #~ msgid "2003-11-14"
3180 #~ msgstr "2003-11-14"
3182 #~ msgid "POSIX.1-2001."
3183 #~ msgstr "POSIX.1-2001."
3186 #~ "This function returns B<EINPROGRESS> if the request has not been "
3187 #~ "completed yet. It returns B<ECANCELED> if the request was canceled. It "
3188 #~ "returns 0 if the request completed successfully. Otherwise an error "
3189 #~ "value is returned, the same value that would have been stored in the "
3190 #~ "I<errno> variable in case of a synchronous I<read>, I<write>, I<fsync>, "
3191 #~ "or I<fdatasync> request. On error, the error value is returned."
3193 #~ "リクエストがまだ完了していない場合、この関数は B<EINPROGRESS> を返す。リク"
3194 #~ "エストがキャンセルされた場合、この関数は B<ECANCELED> を返す。リクエストが"
3195 #~ "成功して完了した場合、この関数は 0 を返す。 それ以外の場合はエラー値が返さ"
3196 #~ "れる。 このエラー値は、同期 I<read>, I<write>, I<fsync>, I<fdatasync> リク"
3197 #~ "エストの場合に I<errno> に格納されるのと同じ値である。 エラーの場合はエ"
3201 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_read>(3), B<aio_return>(3), "
3202 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3204 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_read>(3), B<aio_return>(3), "
3205 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3208 #~ "The B<aio_read>() function requests an asynchronous \"n = read(fd, buf, "
3209 #~ "count)\" with fd, buf, count given by I<aiocbp-E<gt>aio_fildes>, I<aiocbp-"
3210 #~ "E<gt>aio_buf>, I<aiocbp-E<gt>aio_nbytes>, respectively. The return "
3211 #~ "status n can be retrieved upon completion using B<aio_return>(3)."
3213 #~ "B<aio_read>() 関数は非同期の \"n = read(fd, buf, count)\" をリクエストす"
3214 #~ "る。 ここで fd, buf, count は、それぞれ I<aiocbp-E<gt>aio_fildes>, "
3215 #~ "I<aiocbp-E<gt>aio_buf>, I<aiocbp-E<gt>aio_nbytes> で与えられる。 返り値 "
3216 #~ "(return status) n は、完了時に B<aio_return>(3) を使って取得できる。"
3219 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
3220 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3222 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
3223 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3226 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
3227 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3229 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
3230 #~ "B<aio_suspend>(3), B<aio_write>(3)"
3233 #~ "The B<aio_suspend>() function suspends the calling process until at "
3234 #~ "least one of the asynchronous I/O requests in the list I<cblist> of "
3235 #~ "length I<n> have completed, a signal is delivered, or I<timeout> is not "
3236 #~ "NULL and the time interval it indicates has passed."
3238 #~ "B<aio_suspend>() 関数は、長さ I<n> のリスト I<cblist> に含まれる非同期 I/"
3239 #~ "O リクエストのうち少なくとも 1 つが完了するか、 シグナルが配送されるか、 "
3240 #~ "I<timeout> が NULL でなく、かつその時間が過ぎるまで、 呼び出したプロセスを"
3241 #~ "停止 (suspend) する。"
3244 #~ "The B<aio_write>() function requests an asynchronous \"n = write(fd, "
3245 #~ "buf, count)\" with fd, buf, count given by I<aiocbp-E<gt>aio_fildes>, "
3246 #~ "I<aiocbp-E<gt>aio_buf>, I<aiocbp-E<gt>aio_nbytes>, respectively. The "
3247 #~ "return status n can be retrieved upon completion using B<aio_return>(3)."
3249 #~ "B<aio_write>() 関数は非同期の \"n = write(fd, buf, count)\" をリクエスト"
3250 #~ "する。 ここで fd, buf, count は、それぞれ I<aiocbp-E<gt>aio_fildes>, "
3251 #~ "I<aiocbp-E<gt>aio_buf>, I<aiocbp-E<gt>aio_nbytes> で与えられる。 返り値 "
3252 #~ "(return status) n は、完了時に B<aio_return>(3) を使って取得できる。"
3255 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
3256 #~ "B<aio_return>(3), B<aio_suspend>(3)"
3258 #~ "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
3259 #~ "B<aio_return>(3), B<aio_suspend>(3)"