OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.50.
[linuxjm/LDP_man-pages.git] / po4a / aio / po / aio.pot
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.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-03-22 01:04+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: build/C/man7/aio.7:26
21 #, no-wrap
22 msgid "AIO"
23 msgstr ""
24
25 #. type: TH
26 #: build/C/man7/aio.7:26
27 #, no-wrap
28 msgid "2012-08-05"
29 msgstr ""
30
31 #. type: TH
32 #: build/C/man7/aio.7:26 build/C/man3/aio_init.3:26 build/C/man2/io_cancel.2:7 build/C/man2/io_destroy.2:7 build/C/man2/io_getevents.2:7 build/C/man2/io_setup.2:7 build/C/man2/io_submit.2:7
33 #, no-wrap
34 msgid "Linux"
35 msgstr ""
36
37 #. type: TH
38 #: build/C/man7/aio.7:26 build/C/man3/aio_cancel.3:24 build/C/man3/aio_error.3:24 build/C/man3/aio_fsync.3:24 build/C/man3/aio_init.3:26 build/C/man3/aio_read.3:24 build/C/man3/aio_return.3:24 build/C/man3/aio_suspend.3:25 build/C/man3/aio_write.3:24 build/C/man2/io_cancel.2:7 build/C/man2/io_destroy.2:7 build/C/man2/io_getevents.2:7 build/C/man2/io_setup.2:7 build/C/man2/io_submit.2:7 build/C/man3/lio_listio.3:24
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr ""
42
43 #. type: SH
44 #: build/C/man7/aio.7:27 build/C/man3/aio_cancel.3:25 build/C/man3/aio_error.3:25 build/C/man3/aio_fsync.3:25 build/C/man3/aio_init.3:27 build/C/man3/aio_read.3:25 build/C/man3/aio_return.3:25 build/C/man3/aio_suspend.3:26 build/C/man3/aio_write.3:25 build/C/man2/io_cancel.2:8 build/C/man2/io_destroy.2:8 build/C/man2/io_getevents.2:8 build/C/man2/io_setup.2:8 build/C/man2/io_submit.2:8 build/C/man3/lio_listio.3:25
45 #, no-wrap
46 msgid "NAME"
47 msgstr ""
48
49 #. type: Plain text
50 #: build/C/man7/aio.7:29
51 msgid "aio - POSIX asynchronous I/O overview"
52 msgstr ""
53
54 #. type: SH
55 #: build/C/man7/aio.7:29 build/C/man3/aio_cancel.3:33 build/C/man3/aio_error.3:33 build/C/man3/aio_fsync.3:33 build/C/man3/aio_init.3:38 build/C/man3/aio_read.3:33 build/C/man3/aio_return.3:33 build/C/man3/aio_suspend.3:39 build/C/man3/aio_write.3:33 build/C/man2/io_cancel.2:20 build/C/man2/io_destroy.2:19 build/C/man2/io_getevents.2:22 build/C/man2/io_setup.2:19 build/C/man2/io_submit.2:20 build/C/man3/lio_listio.3:36
56 #, no-wrap
57 msgid "DESCRIPTION"
58 msgstr ""
59
60 #. type: Plain text
61 #: build/C/man7/aio.7:37
62 msgid ""
63 "The POSIX asynchronous I/O (AIO) interface allows applications to initiate "
64 "one or more I/O operations that are performed asynchronously (i.e., in the "
65 "background).  The application can elect to be notified of completion of the "
66 "I/O operation in a variety of ways: by delivery of a signal, by "
67 "instantiation of a thread, or no notification at all."
68 msgstr ""
69
70 #. type: Plain text
71 #: build/C/man7/aio.7:39
72 msgid "The POSIX AIO interface consists of the following functions:"
73 msgstr ""
74
75 #. type: TP
76 #: build/C/man7/aio.7:39
77 #, no-wrap
78 msgid "B<aio_read>(3)"
79 msgstr ""
80
81 #. type: Plain text
82 #: build/C/man7/aio.7:44
83 msgid "Enqueue a read request.  This is the asynchronous analog of B<read>(2)."
84 msgstr ""
85
86 #. type: TP
87 #: build/C/man7/aio.7:44
88 #, no-wrap
89 msgid "B<aio_write>(3)"
90 msgstr ""
91
92 #. type: Plain text
93 #: build/C/man7/aio.7:49
94 msgid "Enqueue a write request.  This is the asynchronous analog of B<write>(2)."
95 msgstr ""
96
97 #. type: TP
98 #: build/C/man7/aio.7:49
99 #, no-wrap
100 msgid "B<aio_fsync>(3)"
101 msgstr ""
102
103 #. type: Plain text
104 #: build/C/man7/aio.7:56
105 msgid ""
106 "Enqueue a sync request for the I/O operations on a file descriptor.  This is "
107 "the asynchronous analog of B<fsync>(2)  and B<fdatasync>(2)."
108 msgstr ""
109
110 #. type: TP
111 #: build/C/man7/aio.7:56
112 #, no-wrap
113 msgid "B<aio_error>(3)"
114 msgstr ""
115
116 #. type: Plain text
117 #: build/C/man7/aio.7:59
118 msgid "Obtain the error status of an enqueued I/O request."
119 msgstr ""
120
121 #. type: TP
122 #: build/C/man7/aio.7:59
123 #, no-wrap
124 msgid "B<aio_return>(3)"
125 msgstr ""
126
127 #. type: Plain text
128 #: build/C/man7/aio.7:62
129 msgid "Obtain the return status of a completed I/O request."
130 msgstr ""
131
132 #. type: TP
133 #: build/C/man7/aio.7:62
134 #, no-wrap
135 msgid "B<aio_suspend>(3)"
136 msgstr ""
137
138 #. type: Plain text
139 #: build/C/man7/aio.7:66
140 msgid ""
141 "Suspend the caller until one or more of a specified set of I/O requests "
142 "completes."
143 msgstr ""
144
145 #. type: TP
146 #: build/C/man7/aio.7:66
147 #, no-wrap
148 msgid "B<aio_cancel>(3)"
149 msgstr ""
150
151 #. type: Plain text
152 #: build/C/man7/aio.7:70
153 msgid "Attempt to cancel outstanding I/O requests on a specified file descriptor."
154 msgstr ""
155
156 #. type: TP
157 #: build/C/man7/aio.7:70
158 #, no-wrap
159 msgid "B<lio_listio>(3)"
160 msgstr ""
161
162 #. type: Plain text
163 #: build/C/man7/aio.7:73
164 msgid "Enqueue multiple I/O requests using a single function call."
165 msgstr ""
166
167 #. type: Plain text
168 #: build/C/man7/aio.7:80
169 msgid ""
170 "The I<aiocb> (\"asynchronous I/O control block\") structure defines "
171 "parameters that control an I/O operation.  An argument of this type is "
172 "employed with all of the functions listed above.  This structure has the "
173 "following form:"
174 msgstr ""
175
176 #. type: Plain text
177 #: build/C/man7/aio.7:84
178 #, no-wrap
179 msgid "#include E<lt>aiocb.hE<gt>\n"
180 msgstr ""
181
182 #. type: Plain text
183 #: build/C/man7/aio.7:87
184 #, no-wrap
185 msgid ""
186 "struct aiocb {\n"
187 "    /* The order of these fields is implementation-dependent */\n"
188 msgstr ""
189
190 #. type: Plain text
191 #: build/C/man7/aio.7:96
192 #, no-wrap
193 msgid ""
194 "    int             aio_fildes;     /* File descriptor */\n"
195 "    off_t           aio_offset;     /* File offset */\n"
196 "    volatile void  *aio_buf;        /* Location of buffer */\n"
197 "    size_t          aio_nbytes;     /* Length of transfer */\n"
198 "    int             aio_reqprio;    /* Request priority */\n"
199 "    struct sigevent aio_sigevent;   /* Notification method */\n"
200 "    int             aio_lio_opcode; /* Operation to be performed;\n"
201 "                                       lio_listio() only */\n"
202 msgstr ""
203
204 #. type: Plain text
205 #: build/C/man7/aio.7:99
206 #, no-wrap
207 msgid ""
208 "    /* Various implementation-internal fields not shown */\n"
209 "};\n"
210 msgstr ""
211
212 #. type: Plain text
213 #: build/C/man7/aio.7:101
214 #, no-wrap
215 msgid "/* Operation codes for \\(aqaio_lio_opcode\\(aq: */\n"
216 msgstr ""
217
218 #. type: Plain text
219 #: build/C/man7/aio.7:103
220 #, no-wrap
221 msgid "enum { LIO_READ, LIO_WRITE, LIO_NOP };\n"
222 msgstr ""
223
224 #. type: Plain text
225 #: build/C/man7/aio.7:107
226 msgid "The fields of this structure are as follows:"
227 msgstr ""
228
229 #. type: TP
230 #: build/C/man7/aio.7:107
231 #, no-wrap
232 msgid "I<aio_filedes>"
233 msgstr ""
234
235 #. type: Plain text
236 #: build/C/man7/aio.7:110
237 msgid "The file descriptor on which the I/O operation is to be performed."
238 msgstr ""
239
240 #. type: TP
241 #: build/C/man7/aio.7:110
242 #, no-wrap
243 msgid "I<aio_offset>"
244 msgstr ""
245
246 #. type: Plain text
247 #: build/C/man7/aio.7:113
248 msgid "This is the file offset at which the I/O operation is to be performed."
249 msgstr ""
250
251 #. type: TP
252 #: build/C/man7/aio.7:113
253 #, no-wrap
254 msgid "I<aio_buf>"
255 msgstr ""
256
257 #. type: Plain text
258 #: build/C/man7/aio.7:116
259 msgid "This is the buffer used to transfer data for a read or write operation."
260 msgstr ""
261
262 #. type: TP
263 #: build/C/man7/aio.7:116
264 #, no-wrap
265 msgid "I<aio_nbytes>"
266 msgstr ""
267
268 #. type: Plain text
269 #: build/C/man7/aio.7:120
270 msgid "This is the size of the buffer pointed to by I<aio_buf>."
271 msgstr ""
272
273 #. type: TP
274 #: build/C/man7/aio.7:120
275 #, no-wrap
276 msgid "I<aio_reqprio>"
277 msgstr ""
278
279 #. type: Plain text
280 #: build/C/man7/aio.7:129
281 msgid ""
282 "This field specifies a value that is subtracted from the calling thread's "
283 "real-time priority in order to determine the priority for execution of this "
284 "I/O request (see B<pthread_setschedparam>(3)).  The specified value must be "
285 "between 0 and the value returned by I<sysconf(_SC_AIO_PRIO_DELTA_MAX)>.  "
286 "This field is ignored for file synchronization operations."
287 msgstr ""
288
289 #. type: TP
290 #: build/C/man7/aio.7:129
291 #, no-wrap
292 msgid "I<aio_sigevent>"
293 msgstr ""
294
295 #. type: Plain text
296 #: build/C/man7/aio.7:143
297 msgid ""
298 "This field is a structure that specifies how the caller is to be notified "
299 "when the asynchronous I/O operation completes.  Possible values for "
300 "I<aio_sigevent.sigev_notify> are B<SIGEV_NONE>, B<SIGEV_SIGNAL>, and "
301 "B<SIGEV_THREAD>.  See B<sigevent>(7)  for further details."
302 msgstr ""
303
304 #. type: TP
305 #: build/C/man7/aio.7:143
306 #, no-wrap
307 msgid "I<aio_lio_opcode>"
308 msgstr ""
309
310 #. type: Plain text
311 #: build/C/man7/aio.7:147
312 msgid "The type of operation to be performed; used only for B<lio_listio>(3)."
313 msgstr ""
314
315 #. type: Plain text
316 #: build/C/man7/aio.7:150
317 msgid ""
318 "In addition to the standard functions listed above, the GNU C library "
319 "provides the following extension to the POSIX AIO API:"
320 msgstr ""
321
322 #. type: TP
323 #: build/C/man7/aio.7:150
324 #, no-wrap
325 msgid "B<aio_init>(3)"
326 msgstr ""
327
328 #. type: Plain text
329 #: build/C/man7/aio.7:153
330 msgid ""
331 "Set parameters for tuning the behavior of the glibc POSIX AIO "
332 "implementation."
333 msgstr ""
334
335 #. type: SH
336 #: build/C/man7/aio.7:153 build/C/man3/aio_cancel.3:101 build/C/man3/aio_error.3:66 build/C/man3/aio_fsync.3:79 build/C/man3/aio_read.3:103 build/C/man3/aio_return.3:63 build/C/man3/aio_suspend.3:88 build/C/man3/aio_write.3:110 build/C/man2/io_cancel.2:38 build/C/man2/io_destroy.2:35 build/C/man2/io_getevents.2:41 build/C/man2/io_setup.2:37 build/C/man2/io_submit.2:37 build/C/man3/lio_listio.3:146
337 #, no-wrap
338 msgid "ERRORS"
339 msgstr ""
340
341 #. type: TP
342 #: build/C/man7/aio.7:154 build/C/man3/aio_error.3:67 build/C/man3/aio_fsync.3:87 build/C/man3/aio_read.3:111 build/C/man3/aio_return.3:64 build/C/man3/aio_write.3:122 build/C/man2/io_cancel.2:45 build/C/man2/io_destroy.2:39 build/C/man2/io_getevents.2:45 build/C/man2/io_setup.2:44 build/C/man2/io_submit.2:47 build/C/man3/lio_listio.3:161
343 #, no-wrap
344 msgid "B<EINVAL>"
345 msgstr ""
346
347 #. type: Plain text
348 #: build/C/man7/aio.7:163
349 msgid ""
350 "The I<aio_reqprio> field of the I<aiocb> structure was less than 0, or was "
351 "greater than the limit returned by the call "
352 "I<sysconf(_SC_AIO_PRIO_DELTA_MAX)>."
353 msgstr ""
354
355 #. type: SH
356 #: build/C/man7/aio.7:163 build/C/man3/aio_cancel.3:110 build/C/man3/aio_error.3:78 build/C/man3/aio_fsync.3:99 build/C/man3/aio_init.3:93 build/C/man3/aio_read.3:128 build/C/man3/aio_return.3:73 build/C/man3/aio_suspend.3:103 build/C/man3/aio_write.3:133 build/C/man2/io_cancel.2:52 build/C/man2/io_destroy.2:46 build/C/man2/io_getevents.2:58 build/C/man2/io_setup.2:56 build/C/man2/io_submit.2:60 build/C/man3/lio_listio.3:201
357 #, no-wrap
358 msgid "VERSIONS"
359 msgstr ""
360
361 #. type: Plain text
362 #: build/C/man7/aio.7:165
363 msgid "The POSIX AIO interfaces are provided by glibc since version 2.1."
364 msgstr ""
365
366 #. type: SH
367 #: build/C/man7/aio.7:165 build/C/man3/aio_cancel.3:114 build/C/man3/aio_error.3:82 build/C/man3/aio_fsync.3:103 build/C/man3/aio_init.3:97 build/C/man3/aio_read.3:132 build/C/man3/aio_return.3:77 build/C/man3/aio_suspend.3:107 build/C/man3/aio_write.3:137 build/C/man2/io_cancel.2:55 build/C/man2/io_destroy.2:49 build/C/man2/io_getevents.2:61 build/C/man2/io_setup.2:59 build/C/man2/io_submit.2:63 build/C/man3/lio_listio.3:205
368 #, no-wrap
369 msgid "CONFORMING TO"
370 msgstr ""
371
372 #. type: Plain text
373 #: build/C/man7/aio.7:167 build/C/man3/aio_cancel.3:116 build/C/man3/aio_error.3:84 build/C/man3/aio_fsync.3:105 build/C/man3/aio_read.3:134 build/C/man3/aio_return.3:79 build/C/man3/aio_suspend.3:109 build/C/man3/aio_write.3:139 build/C/man3/lio_listio.3:207
374 msgid "POSIX.1-2001, POSIX.1-2008."
375 msgstr ""
376
377 #. type: SH
378 #: build/C/man7/aio.7:167 build/C/man3/aio_read.3:134 build/C/man3/aio_suspend.3:109 build/C/man3/aio_write.3:139 build/C/man2/io_cancel.2:60 build/C/man2/io_destroy.2:54 build/C/man2/io_getevents.2:66 build/C/man2/io_setup.2:64 build/C/man2/io_submit.2:68 build/C/man3/lio_listio.3:207
379 #, no-wrap
380 msgid "NOTES"
381 msgstr ""
382
383 #. type: Plain text
384 #: build/C/man7/aio.7:174
385 msgid ""
386 "It is a good idea to zero out the control block buffer before use (see "
387 "B<memset>(3)).  The control block buffer and the buffer pointed to by "
388 "I<aio_buf> must not be changed while the I/O operation is in progress.  "
389 "These buffers must remain valid until the I/O operation completes."
390 msgstr ""
391
392 #. type: Plain text
393 #: build/C/man7/aio.7:178
394 msgid ""
395 "Simultaneous asynchronous read or write operations using the same I<aiocb> "
396 "structure yield undefined results."
397 msgstr ""
398
399 #.  http://lse.sourceforge.net/io/aio.html
400 #.  http://lse.sourceforge.net/io/aionotes.txt
401 #.  http://lwn.net/Articles/148755/
402 #. type: Plain text
403 #: build/C/man7/aio.7:196
404 msgid ""
405 "The current Linux POSIX AIO implementation is provided in user space by "
406 "glibc.  This has a number of limitations, most notably that maintaining "
407 "multiple threads to perform I/O operations is expensive and scales poorly.  "
408 "Work has been in progress for some time on a kernel state-machine-based "
409 "implementation of asynchronous I/O (see B<io_submit>(2), B<io_setup>(2), "
410 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2)), but this "
411 "implementation hasn't yet matured to the point where the POSIX AIO "
412 "implementation can be completely reimplemented using the kernel system "
413 "calls."
414 msgstr ""
415
416 #. type: SH
417 #: build/C/man7/aio.7:196 build/C/man3/aio_cancel.3:116 build/C/man3/aio_error.3:84 build/C/man3/aio_read.3:146 build/C/man3/aio_return.3:79
418 #, no-wrap
419 msgid "EXAMPLE"
420 msgstr ""
421
422 #. type: Plain text
423 #: build/C/man7/aio.7:209
424 msgid ""
425 "The program below opens each of the files named in its command-line "
426 "arguments and queues a request on the resulting file descriptor using "
427 "B<aio_read>(3).  The program then loops, periodically monitoring each of the "
428 "I/O operations that is still in progress using B<aio_error>(3).  Each of the "
429 "I/O requests is set up to provide notification by delivery of a signal.  "
430 "After all I/O requests have completed, the program retrieves their status "
431 "using B<aio_return>(3)."
432 msgstr ""
433
434 #. type: Plain text
435 #: build/C/man7/aio.7:215
436 msgid ""
437 "The B<SIGQUIT> signal (generated by typing control-\\e) causes the program "
438 "to request cancellation of each of the outstanding requests using "
439 "B<aio_cancel>(3)."
440 msgstr ""
441
442 #. type: Plain text
443 #: build/C/man7/aio.7:220
444 msgid ""
445 "Here is an example of what we might see when running this program.  In this "
446 "example, the program queues two requests to standard input, and these are "
447 "satisfied by two lines of input containing \"abc\" and \"x\"."
448 msgstr ""
449
450 #. type: Plain text
451 #: build/C/man7/aio.7:244
452 #, no-wrap
453 msgid ""
454 "$ B<./a.out /dev/stdin /dev/stdin>\n"
455 "opened /dev/stdin on descriptor 3\n"
456 "opened /dev/stdin on descriptor 4\n"
457 "aio_error():\n"
458 "    for request 0 (descriptor 3): In progress\n"
459 "    for request 1 (descriptor 4): In progress\n"
460 "B<abc>\n"
461 "I/O completion signal received\n"
462 "aio_error():\n"
463 "    for request 0 (descriptor 3): I/O succeeded\n"
464 "    for request 1 (descriptor 4): In progress\n"
465 "aio_error():\n"
466 "    for request 1 (descriptor 4): In progress\n"
467 "B<x>\n"
468 "I/O completion signal received\n"
469 "aio_error():\n"
470 "    for request 1 (descriptor 4): I/O succeeded\n"
471 "All I/O requests completed\n"
472 "aio_return():\n"
473 "    for request 0 (descriptor 3): 4\n"
474 "    for request 1 (descriptor 4): 2\n"
475 msgstr ""
476
477 #. type: SS
478 #: build/C/man7/aio.7:246
479 #, no-wrap
480 msgid "Program source"
481 msgstr ""
482
483 #. type: Plain text
484 #: build/C/man7/aio.7:255
485 #, no-wrap
486 msgid ""
487 "#include E<lt>stdlib.hE<gt>\n"
488 "#include E<lt>unistd.hE<gt>\n"
489 "#include E<lt>stdio.hE<gt>\n"
490 "#include E<lt>errno.hE<gt>\n"
491 "#include E<lt>aio.hE<gt>\n"
492 "#include E<lt>signal.hE<gt>\n"
493 msgstr ""
494
495 #. type: Plain text
496 #: build/C/man7/aio.7:257
497 #, no-wrap
498 msgid "#define BUF_SIZE 20     /* Size of buffers for read operations */\n"
499 msgstr ""
500
501 #. type: Plain text
502 #: build/C/man7/aio.7:259
503 #, no-wrap
504 msgid "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
505 msgstr ""
506
507 #. type: Plain text
508 #: build/C/man7/aio.7:261
509 #, no-wrap
510 msgid "#define errMsg(msg)  do { perror(msg); } while (0)\n"
511 msgstr ""
512
513 #. type: Plain text
514 #: build/C/man7/aio.7:268
515 #, no-wrap
516 msgid ""
517 "struct ioRequest {      /* Application-defined structure for tracking\n"
518 "                           I/O requests */\n"
519 "    int           reqNum;\n"
520 "    int           status;\n"
521 "    struct aiocb *aiocbp;\n"
522 "};\n"
523 msgstr ""
524
525 #. type: Plain text
526 #: build/C/man7/aio.7:272
527 #, no-wrap
528 msgid ""
529 "static volatile sig_atomic_t gotSIGQUIT = 0;\n"
530 "                        /* On delivery of SIGQUIT, we attempt to\n"
531 "                           cancel all outstanding I/O requests */\n"
532 msgstr ""
533
534 #. type: Plain text
535 #: build/C/man7/aio.7:278
536 #, no-wrap
537 msgid ""
538 "static void             /* Handler for SIGQUIT */\n"
539 "quitHandler(int sig)\n"
540 "{\n"
541 "    gotSIGQUIT = 1;\n"
542 "}\n"
543 msgstr ""
544
545 #. type: Plain text
546 #: build/C/man7/aio.7:280
547 #, no-wrap
548 msgid "#define IO_SIGNAL SIGUSR1   /* Signal used to notify I/O completion */\n"
549 msgstr ""
550
551 #. type: Plain text
552 #: build/C/man7/aio.7:285
553 #, no-wrap
554 msgid ""
555 "static void                 /* Handler for I/O completion signal */\n"
556 "aioSigHandler(int sig, siginfo_t *si, void *ucontext)\n"
557 "{\n"
558 "    write(STDOUT_FILENO, \"I/O completion signal received\\en\", 31);\n"
559 msgstr ""
560
561 #. type: Plain text
562 #: build/C/man7/aio.7:291
563 #, no-wrap
564 msgid ""
565 "    /* The corresponding ioRequest structure would be available as\n"
566 "           struct ioRequest *ioReq = si-E<gt>si_value.sival_ptr;\n"
567 "       and the file descriptor would then be available via\n"
568 "           ioReq-E<gt>aiocbp-E<gt>aio_fildes */\n"
569 "}\n"
570 msgstr ""
571
572 #. type: Plain text
573 #: build/C/man7/aio.7:301
574 #, no-wrap
575 msgid ""
576 "int\n"
577 "main(int argc, char *argv[])\n"
578 "{\n"
579 "    struct ioRequest *ioList;\n"
580 "    struct aiocb *aiocbList;\n"
581 "    struct sigaction sa;\n"
582 "    int s, j;\n"
583 "    int numReqs;        /* Total number of queued I/O requests */\n"
584 "    int openReqs;       /* Number of I/O requests still in progress */\n"
585 msgstr ""
586
587 #. type: Plain text
588 #: build/C/man7/aio.7:307
589 #, no-wrap
590 msgid ""
591 "    if (argc E<lt> 2) {\n"
592 "        fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt> "
593 "E<lt>pathnameE<gt>...\\en\",\n"
594 "                argv[0]);\n"
595 "        exit(EXIT_FAILURE);\n"
596 "    }\n"
597 msgstr ""
598
599 #. type: Plain text
600 #: build/C/man7/aio.7:309
601 #, no-wrap
602 msgid "    numReqs = argc - 1;\n"
603 msgstr ""
604
605 #. type: Plain text
606 #: build/C/man7/aio.7:311
607 #, no-wrap
608 msgid "    /* Allocate our arrays */\n"
609 msgstr ""
610
611 #. type: Plain text
612 #: build/C/man7/aio.7:315
613 #, no-wrap
614 msgid ""
615 "    ioList = calloc(numReqs, sizeof(struct ioRequest));\n"
616 "    if (ioList == NULL)\n"
617 "        errExit(\"calloc\");\n"
618 msgstr ""
619
620 #. type: Plain text
621 #: build/C/man7/aio.7:319
622 #, no-wrap
623 msgid ""
624 "    aiocbList = calloc(numReqs, sizeof(struct aiocb));\n"
625 "    if (aiocbList == NULL)\n"
626 "        errExit(\"calloc\");\n"
627 msgstr ""
628
629 #. type: Plain text
630 #: build/C/man7/aio.7:321
631 #, no-wrap
632 msgid "    /* Establish handlers for SIGQUIT and the I/O completion signal */\n"
633 msgstr ""
634
635 #. type: Plain text
636 #: build/C/man7/aio.7:324
637 #, no-wrap
638 msgid ""
639 "    sa.sa_flags = SA_RESTART;\n"
640 "    sigemptyset(&sa.sa_mask);\n"
641 msgstr ""
642
643 #. type: Plain text
644 #: build/C/man7/aio.7:328
645 #, no-wrap
646 msgid ""
647 "    sa.sa_handler = quitHandler;\n"
648 "    if (sigaction(SIGQUIT, &sa, NULL) == -1)\n"
649 "        errExit(\"sigaction\");\n"
650 msgstr ""
651
652 #. type: Plain text
653 #: build/C/man7/aio.7:333
654 #, no-wrap
655 msgid ""
656 "    sa.sa_flags = SA_RESTART | SA_SIGINFO;\n"
657 "    sa.sa_sigaction = aioSigHandler;\n"
658 "    if (sigaction(IO_SIGNAL, &sa, NULL) == -1)\n"
659 "        errExit(\"sigaction\");\n"
660 msgstr ""
661
662 #. type: Plain text
663 #: build/C/man7/aio.7:336
664 #, no-wrap
665 msgid ""
666 "    /* Open each file specified on the command line, and queue\n"
667 "       a read request on the resulting file descriptor */\n"
668 msgstr ""
669
670 #. type: Plain text
671 #: build/C/man7/aio.7:341
672 #, no-wrap
673 msgid ""
674 "    for (j = 0; j E<lt> numReqs; j++) {\n"
675 "        ioList[j].reqNum = j;\n"
676 "        ioList[j].status = EINPROGRESS;\n"
677 "        ioList[j].aiocbp = &aiocbList[j];\n"
678 msgstr ""
679
680 #. type: Plain text
681 #: build/C/man7/aio.7:347
682 #, no-wrap
683 msgid ""
684 "        ioList[j].aiocbp-E<gt>aio_fildes = open(argv[j + 1], O_RDONLY);\n"
685 "        if (ioList[j].aiocbp-E<gt>aio_fildes == -1)\n"
686 "            errExit(\"open\");\n"
687 "        printf(\"opened %s on descriptor %d\\en\", argv[j + 1],\n"
688 "                ioList[j].aiocbp-E<gt>aio_fildes);\n"
689 msgstr ""
690
691 #. type: Plain text
692 #: build/C/man7/aio.7:351
693 #, no-wrap
694 msgid ""
695 "        ioList[j].aiocbp-E<gt>aio_buf = malloc(BUF_SIZE);\n"
696 "        if (ioList[j].aiocbp-E<gt>aio_buf == NULL)\n"
697 "            errExit(\"malloc\");\n"
698 msgstr ""
699
700 #. type: Plain text
701 #: build/C/man7/aio.7:359
702 #, no-wrap
703 msgid ""
704 "        ioList[j].aiocbp-E<gt>aio_nbytes = BUF_SIZE;\n"
705 "        ioList[j].aiocbp-E<gt>aio_reqprio = 0;\n"
706 "        ioList[j].aiocbp-E<gt>aio_offset = 0;\n"
707 "        ioList[j].aiocbp-E<gt>aio_sigevent.sigev_notify = SIGEV_SIGNAL;\n"
708 "        ioList[j].aiocbp-E<gt>aio_sigevent.sigev_signo = IO_SIGNAL;\n"
709 "        ioList[j].aiocbp-E<gt>aio_sigevent.sigev_value.sival_ptr =\n"
710 "                                &ioList[j];\n"
711 msgstr ""
712
713 #. type: Plain text
714 #: build/C/man7/aio.7:364
715 #, no-wrap
716 msgid ""
717 "        s = aio_read(ioList[j].aiocbp);\n"
718 "        if (s == -1)\n"
719 "            errExit(\"aio_read\");\n"
720 "    }\n"
721 msgstr ""
722
723 #. type: Plain text
724 #: build/C/man7/aio.7:366
725 #, no-wrap
726 msgid "    openReqs = numReqs;\n"
727 msgstr ""
728
729 #. type: Plain text
730 #: build/C/man7/aio.7:368
731 #, no-wrap
732 msgid "    /* Loop, monitoring status of I/O requests */\n"
733 msgstr ""
734
735 #. type: Plain text
736 #: build/C/man7/aio.7:371
737 #, no-wrap
738 msgid ""
739 "    while (openReqs E<gt> 0) {\n"
740 "        sleep(3);       /* Delay between each monitoring step */\n"
741 msgstr ""
742
743 #. type: Plain text
744 #: build/C/man7/aio.7:373
745 #, no-wrap
746 msgid "        if (gotSIGQUIT) {\n"
747 msgstr ""
748
749 #. type: Plain text
750 #: build/C/man7/aio.7:377
751 #, no-wrap
752 msgid ""
753 "            /* On receipt of SIGQUIT, attempt to cancel each of the\n"
754 "               outstanding I/O requests, and display status returned\n"
755 "               from the cancellation requests */\n"
756 msgstr ""
757
758 #. type: Plain text
759 #: build/C/man7/aio.7:379
760 #, no-wrap
761 msgid "            printf(\"got SIGQUIT; canceling I/O requests: \\en\");\n"
762 msgstr ""
763
764 #. type: Plain text
765 #: build/C/man7/aio.7:396
766 #, no-wrap
767 msgid ""
768 "            for (j = 0; j E<lt> numReqs; j++) {\n"
769 "                if (ioList[j].status == EINPROGRESS) {\n"
770 "                    printf(\"    Request %d on descriptor %d:\", j,\n"
771 "                            ioList[j].aiocbp-E<gt>aio_fildes);\n"
772 "                    s = aio_cancel(ioList[j].aiocbp-E<gt>aio_fildes,\n"
773 "                            ioList[j].aiocbp);\n"
774 "                    if (s == AIO_CANCELED)\n"
775 "                        printf(\"I/O canceled\\en\");\n"
776 "                    else if (s == AIO_NOTCANCELED)\n"
777 "                            printf(\"I/O not canceled\\en\");\n"
778 "                    else if (s == AIO_ALLDONE)\n"
779 "                        printf(\"I/O all done\\en\");\n"
780 "                    else\n"
781 "                        errMsg(\"aio_cancel\");\n"
782 "                }\n"
783 "            }\n"
784 msgstr ""
785
786 #. type: Plain text
787 #: build/C/man7/aio.7:399
788 #, no-wrap
789 msgid ""
790 "            gotSIGQUIT = 0;\n"
791 "        }\n"
792 msgstr ""
793
794 #. type: Plain text
795 #: build/C/man7/aio.7:402
796 #, no-wrap
797 msgid ""
798 "        /* Check the status of each I/O request that is still\n"
799 "           in progress */\n"
800 msgstr ""
801
802 #. type: Plain text
803 #: build/C/man7/aio.7:409
804 #, no-wrap
805 msgid ""
806 "        printf(\"aio_error():\\en\");\n"
807 "        for (j = 0; j E<lt> numReqs; j++) {\n"
808 "            if (ioList[j].status == EINPROGRESS) {\n"
809 "                printf(\"    for request %d (descriptor %d): \",\n"
810 "                        j, ioList[j].aiocbp-E<gt>aio_fildes);\n"
811 "                ioList[j].status = aio_error(ioList[j].aiocbp);\n"
812 msgstr ""
813
814 #. type: Plain text
815 #: build/C/man7/aio.7:424
816 #, no-wrap
817 msgid ""
818 "                switch (ioList[j].status) {\n"
819 "                case 0:\n"
820 "                    printf(\"I/O succeeded\\en\");\n"
821 "                    break;\n"
822 "                case EINPROGRESS:\n"
823 "                    printf(\"In progress\\en\");\n"
824 "                    break;\n"
825 "                case ECANCELED:\n"
826 "                    printf(\"Canceled\\en\");\n"
827 "                    break;\n"
828 "                default:\n"
829 "                    errMsg(\"aio_error\");\n"
830 "                    break;\n"
831 "                }\n"
832 msgstr ""
833
834 #. type: Plain text
835 #: build/C/man7/aio.7:430
836 #, no-wrap
837 msgid ""
838 "                if (ioList[j].status != EINPROGRESS)\n"
839 "                    openReqs--;\n"
840 "            }\n"
841 "        }\n"
842 "    }\n"
843 msgstr ""
844
845 #. type: Plain text
846 #: build/C/man7/aio.7:432
847 #, no-wrap
848 msgid "    printf(\"All I/O requests completed\\en\");\n"
849 msgstr ""
850
851 #. type: Plain text
852 #: build/C/man7/aio.7:434
853 #, no-wrap
854 msgid "    /* Check status return of all I/O requests */\n"
855 msgstr ""
856
857 #. type: Plain text
858 #: build/C/man7/aio.7:438
859 #, no-wrap
860 msgid ""
861 "    printf(\"aio_return():\\en\");\n"
862 "    for (j = 0; j E<lt> numReqs; j++) {\n"
863 "        ssize_t s;\n"
864 msgstr ""
865
866 #. type: Plain text
867 #: build/C/man7/aio.7:443
868 #, no-wrap
869 msgid ""
870 "        s = aio_return(ioList[j].aiocbp);\n"
871 "        printf(\"    for request %d (descriptor %d): %ld\\en\",\n"
872 "                j, ioList[j].aiocbp-E<gt>aio_fildes, (long) s);\n"
873 "    }\n"
874 msgstr ""
875
876 #. type: Plain text
877 #: build/C/man7/aio.7:446
878 #, no-wrap
879 msgid ""
880 "    exit(EXIT_SUCCESS);\n"
881 "}\n"
882 msgstr ""
883
884 #. type: SH
885 #: build/C/man7/aio.7:447 build/C/man3/aio_cancel.3:119 build/C/man3/aio_error.3:87 build/C/man3/aio_fsync.3:105 build/C/man3/aio_init.3:99 build/C/man3/aio_read.3:149 build/C/man3/aio_return.3:82 build/C/man3/aio_suspend.3:129 build/C/man3/aio_write.3:151 build/C/man2/io_cancel.2:90 build/C/man2/io_destroy.2:84 build/C/man2/io_getevents.2:101 build/C/man2/io_setup.2:94 build/C/man2/io_submit.2:98 build/C/man3/lio_listio.3:219
886 #, no-wrap
887 msgid "SEE ALSO"
888 msgstr ""
889
890 #. type: Plain text
891 #: build/C/man7/aio.7:462
892 msgid ""
893 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), "
894 "B<io_submit>(2), B<aio_cancel>(3), B<aio_error>(3), B<aio_init>(3), "
895 "B<aio_read>(3), B<aio_return>(3), B<aio_write>(3), B<lio_listio>(3)"
896 msgstr ""
897
898 #. type: Plain text
899 #: build/C/man7/aio.7:465
900 msgid ""
901 "E<.UR "
902 "http://www.squid-cache.org\\:/~adrian\\:/Reprint-Pulavarty-OLS2003.pdf> "
903 "E<.UE>"
904 msgstr ""
905
906 #. type: SH
907 #: build/C/man7/aio.7:465 build/C/man3/aio_cancel.3:128 build/C/man3/aio_error.3:96 build/C/man3/aio_fsync.3:115 build/C/man3/aio_init.3:101 build/C/man3/aio_read.3:158 build/C/man3/aio_return.3:91 build/C/man3/aio_suspend.3:139 build/C/man3/aio_write.3:160 build/C/man2/io_cancel.2:98 build/C/man2/io_destroy.2:92 build/C/man2/io_getevents.2:111 build/C/man2/io_setup.2:102 build/C/man2/io_submit.2:106 build/C/man3/lio_listio.3:227
908 #, no-wrap
909 msgid "COLOPHON"
910 msgstr ""
911
912 #. type: Plain text
913 #: build/C/man7/aio.7:472 build/C/man3/aio_cancel.3:135 build/C/man3/aio_error.3:103 build/C/man3/aio_fsync.3:122 build/C/man3/aio_init.3:108 build/C/man3/aio_read.3:165 build/C/man3/aio_return.3:98 build/C/man3/aio_suspend.3:146 build/C/man3/aio_write.3:167 build/C/man2/io_cancel.2:105 build/C/man2/io_destroy.2:99 build/C/man2/io_getevents.2:118 build/C/man2/io_setup.2:109 build/C/man2/io_submit.2:113 build/C/man3/lio_listio.3:234
914 msgid ""
915 "This page is part of release 3.50 of the Linux I<man-pages> project.  A "
916 "description of the project, and information about reporting bugs, can be "
917 "found at http://www.kernel.org/doc/man-pages/."
918 msgstr ""
919
920 #. type: TH
921 #: build/C/man3/aio_cancel.3:24
922 #, no-wrap
923 msgid "AIO_CANCEL"
924 msgstr ""
925
926 #. type: TH
927 #: build/C/man3/aio_cancel.3:24 build/C/man3/aio_error.3:24 build/C/man3/aio_fsync.3:24 build/C/man3/aio_read.3:24 build/C/man3/aio_return.3:24 build/C/man3/aio_suspend.3:25 build/C/man3/aio_write.3:24 build/C/man3/lio_listio.3:24
928 #, no-wrap
929 msgid "2012-05-08"
930 msgstr ""
931
932 #. type: Plain text
933 #: build/C/man3/aio_cancel.3:27
934 msgid "aio_cancel - cancel an outstanding asynchronous I/O request"
935 msgstr ""
936
937 #. type: SH
938 #: build/C/man3/aio_cancel.3:27 build/C/man3/aio_error.3:27 build/C/man3/aio_fsync.3:27 build/C/man3/aio_init.3:29 build/C/man3/aio_read.3:27 build/C/man3/aio_return.3:27 build/C/man3/aio_suspend.3:28 build/C/man3/aio_write.3:27 build/C/man2/io_cancel.2:10 build/C/man2/io_destroy.2:10 build/C/man2/io_getevents.2:10 build/C/man2/io_setup.2:10 build/C/man2/io_submit.2:10 build/C/man3/lio_listio.3:27
939 #, no-wrap
940 msgid "SYNOPSIS"
941 msgstr ""
942
943 #. type: Plain text
944 #: build/C/man3/aio_cancel.3:29 build/C/man3/aio_error.3:29 build/C/man3/aio_fsync.3:29 build/C/man3/aio_read.3:29 build/C/man3/aio_return.3:29 build/C/man3/aio_write.3:29
945 msgid "B<#include E<lt>aio.hE<gt>>"
946 msgstr ""
947
948 #. type: Plain text
949 #: build/C/man3/aio_cancel.3:31
950 msgid "B<int aio_cancel(int >I<fd>B<, struct aiocb *>I<aiocbp>B<);>"
951 msgstr ""
952
953 #. type: Plain text
954 #: build/C/man3/aio_cancel.3:33 build/C/man3/aio_error.3:33 build/C/man3/aio_fsync.3:33 build/C/man3/aio_init.3:38 build/C/man3/aio_read.3:33 build/C/man3/aio_return.3:33 build/C/man3/aio_write.3:33
955 msgid "Link with I<-lrt>."
956 msgstr ""
957
958 #. type: Plain text
959 #: build/C/man3/aio_cancel.3:51
960 msgid ""
961 "The B<aio_cancel>()  function attempts to cancel outstanding asynchronous "
962 "I/O requests for the file descriptor I<fd>.  If I<aiocbp> is NULL, all such "
963 "requests are canceled.  Otherwise, only the request described by the control "
964 "block pointed to by I<aiocbp> is canceled.  (See B<aio>(7)  for a "
965 "description of the I<aiocb> structure.)"
966 msgstr ""
967
968 #. type: Plain text
969 #: build/C/man3/aio_cancel.3:63
970 msgid ""
971 "Normal asynchronous notification occurs for canceled requests (see B<aio>(7)  "
972 "and B<sigevent>(7)).  The request return status (B<aio_return>(3))  is set "
973 "to -1, and the request error status (B<aio_error>(3))  is set to "
974 "B<ECANCELED>.  The control block of requests that cannot be canceled is not "
975 "changed."
976 msgstr ""
977
978 #. type: Plain text
979 #: build/C/man3/aio_cancel.3:70
980 msgid ""
981 "If the request could not be canceled, then it will terminate in the usual "
982 "way after performing the I/O operation.  (In this case, B<aio_error>(3)  "
983 "will return the status B<EINPROGRESSS>.)"
984 msgstr ""
985
986 #. type: Plain text
987 #: build/C/man3/aio_cancel.3:77
988 msgid ""
989 "If I<aiocbp> is not NULL, and I<fd> differs from the file descriptor with "
990 "which the asynchronous operation was initiated, unspecified results occur."
991 msgstr ""
992
993 #.  FreeBSD: not those on raw disk devices.
994 #. type: Plain text
995 #: build/C/man3/aio_cancel.3:80
996 msgid "Which operations are cancelable is implementation-defined."
997 msgstr ""
998
999 #. type: SH
1000 #: build/C/man3/aio_cancel.3:80 build/C/man3/aio_error.3:44 build/C/man3/aio_fsync.3:73 build/C/man3/aio_read.3:88 build/C/man3/aio_return.3:49 build/C/man3/aio_suspend.3:80 build/C/man3/aio_write.3:95 build/C/man2/io_cancel.2:33 build/C/man2/io_destroy.2:30 build/C/man2/io_getevents.2:35 build/C/man2/io_setup.2:32 build/C/man2/io_submit.2:31 build/C/man3/lio_listio.3:108
1001 #, no-wrap
1002 msgid "RETURN VALUE"
1003 msgstr ""
1004
1005 #. type: Plain text
1006 #: build/C/man3/aio_cancel.3:84
1007 msgid "The B<aio_cancel>()  function returns one of the following values:"
1008 msgstr ""
1009
1010 #. type: TP
1011 #: build/C/man3/aio_cancel.3:84
1012 #, no-wrap
1013 msgid "B<AIO_CANCELED>"
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: build/C/man3/aio_cancel.3:87
1018 msgid "All requests were successfully canceled."
1019 msgstr ""
1020
1021 #. type: TP
1022 #: build/C/man3/aio_cancel.3:87
1023 #, no-wrap
1024 msgid "B<AIO_NOTCANCELED>"
1025 msgstr ""
1026
1027 #. type: Plain text
1028 #: build/C/man3/aio_cancel.3:93
1029 msgid ""
1030 "At least one of the requests specified was not canceled because it was in "
1031 "progress.  In this case, one may check the status of individual requests "
1032 "using B<aio_error>(3)."
1033 msgstr ""
1034
1035 #. type: TP
1036 #: build/C/man3/aio_cancel.3:93
1037 #, no-wrap
1038 msgid "B<AIO_ALLDONE>"
1039 msgstr ""
1040
1041 #. type: Plain text
1042 #: build/C/man3/aio_cancel.3:96
1043 msgid "All requests had already been completed before the call."
1044 msgstr ""
1045
1046 #. type: TP
1047 #: build/C/man3/aio_cancel.3:96
1048 #, no-wrap
1049 msgid "-1"
1050 msgstr ""
1051
1052 #. type: Plain text
1053 #: build/C/man3/aio_cancel.3:101
1054 msgid ""
1055 "An error occurred.  The cause of the error can be found by inspecting "
1056 "I<errno>."
1057 msgstr ""
1058
1059 #. type: TP
1060 #: build/C/man3/aio_cancel.3:102 build/C/man3/aio_fsync.3:83 build/C/man3/aio_read.3:107 build/C/man3/aio_write.3:114 build/C/man2/io_submit.2:41
1061 #, no-wrap
1062 msgid "B<EBADF>"
1063 msgstr ""
1064
1065 #. type: Plain text
1066 #: build/C/man3/aio_cancel.3:106
1067 msgid "I<fd> is not a valid file descriptor."
1068 msgstr ""
1069
1070 #. type: TP
1071 #: build/C/man3/aio_cancel.3:106 build/C/man3/aio_error.3:74 build/C/man3/aio_fsync.3:95 build/C/man3/aio_read.3:119 build/C/man3/aio_return.3:69 build/C/man3/aio_suspend.3:99 build/C/man3/aio_write.3:129 build/C/man2/io_cancel.2:48 build/C/man2/io_destroy.2:42 build/C/man2/io_getevents.2:54 build/C/man2/io_setup.2:52 build/C/man2/io_submit.2:56
1072 #, no-wrap
1073 msgid "B<ENOSYS>"
1074 msgstr ""
1075
1076 #. type: Plain text
1077 #: build/C/man3/aio_cancel.3:110
1078 msgid "B<aio_cancel>()  is not implemented."
1079 msgstr ""
1080
1081 #. type: Plain text
1082 #: build/C/man3/aio_cancel.3:114
1083 msgid "The B<aio_cancel>()  function is available since glibc 2.1."
1084 msgstr ""
1085
1086 #. type: Plain text
1087 #: build/C/man3/aio_cancel.3:119 build/C/man3/aio_error.3:87 build/C/man3/aio_read.3:149 build/C/man3/aio_return.3:82
1088 msgid "See B<aio>(7)."
1089 msgstr ""
1090
1091 #. type: Plain text
1092 #: build/C/man3/aio_cancel.3:128
1093 msgid ""
1094 "B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1095 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1096 msgstr ""
1097
1098 #. type: TH
1099 #: build/C/man3/aio_error.3:24
1100 #, no-wrap
1101 msgid "AIO_ERROR"
1102 msgstr ""
1103
1104 #. type: Plain text
1105 #: build/C/man3/aio_error.3:27
1106 msgid "aio_error - get error status of asynchronous I/O operation"
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: build/C/man3/aio_error.3:31
1111 msgid "B<int aio_error(const struct aiocb *>I<aiocbp>B<);>"
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: build/C/man3/aio_error.3:44
1116 msgid ""
1117 "The B<aio_error>()  function returns the error status for the asynchronous "
1118 "I/O request with control block pointed to by I<aiocbp>.  (See B<aio>(7)  for "
1119 "a description of the I<aiocb> structure.)"
1120 msgstr ""
1121
1122 #. type: Plain text
1123 #: build/C/man3/aio_error.3:46
1124 msgid "This function returns one of the following:"
1125 msgstr ""
1126
1127 #. type: IP
1128 #: build/C/man3/aio_error.3:46 build/C/man3/aio_error.3:50 build/C/man3/aio_error.3:53 build/C/man3/aio_error.3:55 build/C/man3/aio_suspend.3:43 build/C/man3/aio_suspend.3:47 build/C/man3/aio_suspend.3:49
1129 #, no-wrap
1130 msgid "*"
1131 msgstr ""
1132
1133 #. type: Plain text
1134 #: build/C/man3/aio_error.3:50
1135 msgid "B<EINPROGRESS>, if the request has not been completed yet."
1136 msgstr ""
1137
1138 #. type: Plain text
1139 #: build/C/man3/aio_error.3:53
1140 msgid "B<ECANCELED>, if the request was canceled."
1141 msgstr ""
1142
1143 #. type: Plain text
1144 #: build/C/man3/aio_error.3:55
1145 msgid "0, if the request completed successfully."
1146 msgstr ""
1147
1148 #. type: Plain text
1149 #: build/C/man3/aio_error.3:66
1150 msgid ""
1151 "A positive error number, if the asynchronous I/O operation failed.  This is "
1152 "the same value that would have been stored in the I<errno> variable in the "
1153 "case of a synchronous B<read>(2), B<write>(2), B<fsync>(2), or "
1154 "B<fdatasync>(2)  call."
1155 msgstr ""
1156
1157 #. type: Plain text
1158 #: build/C/man3/aio_error.3:74
1159 msgid ""
1160 "I<aiocbp> does not point at a control block for an asynchronous I/O request "
1161 "of which the return status (see B<aio_return>(3))  has not been retrieved "
1162 "yet."
1163 msgstr ""
1164
1165 #. type: Plain text
1166 #: build/C/man3/aio_error.3:78
1167 msgid "B<aio_error>()  is not implemented."
1168 msgstr ""
1169
1170 #. type: Plain text
1171 #: build/C/man3/aio_error.3:82
1172 msgid "The B<aio_error>()  function is available since glibc 2.1."
1173 msgstr ""
1174
1175 #. type: Plain text
1176 #: build/C/man3/aio_error.3:96
1177 msgid ""
1178 "B<aio_cancel>(3), B<aio_fsync>(3), B<aio_read>(3), B<aio_return>(3), "
1179 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1180 msgstr ""
1181
1182 #. type: TH
1183 #: build/C/man3/aio_fsync.3:24
1184 #, no-wrap
1185 msgid "AIO_FSYNC"
1186 msgstr ""
1187
1188 #. type: Plain text
1189 #: build/C/man3/aio_fsync.3:27
1190 msgid "aio_fsync - asynchronous file synchronization"
1191 msgstr ""
1192
1193 #. type: Plain text
1194 #: build/C/man3/aio_fsync.3:31
1195 msgid "B<int aio_fsync(int >I<op>B<, struct aiocb *>I<aiocbp>B<);>"
1196 msgstr ""
1197
1198 #. type: Plain text
1199 #: build/C/man3/aio_fsync.3:44
1200 msgid ""
1201 "The B<aio_fsync>()  function does a sync on all outstanding asynchronous I/O "
1202 "operations associated with I<aiocbp-E<gt>aio_fildes>.  (See B<aio>(7)  for a "
1203 "description of the I<aiocb> structure.)"
1204 msgstr ""
1205
1206 #. type: Plain text
1207 #: build/C/man3/aio_fsync.3:58
1208 msgid ""
1209 "More precisely, if I<op> is B<O_SYNC>, then all currently queued I/O "
1210 "operations shall be completed as if by a call of B<fsync>(2), and if I<op> "
1211 "is B<O_DSYNC>, this call is the asynchronous analog of B<fdatasync>(2)."
1212 msgstr ""
1213
1214 #. type: Plain text
1215 #: build/C/man3/aio_fsync.3:60
1216 msgid "Note that this is a request only; it does not wait for I/O completion."
1217 msgstr ""
1218
1219 #. type: Plain text
1220 #: build/C/man3/aio_fsync.3:73
1221 msgid ""
1222 "Apart from I<aio_fildes>, the only field in the structure pointed to by "
1223 "I<aiocbp> that is used by this call is the I<aio_sigevent> field (a "
1224 "I<sigevent> structure, described in B<sigevent>(7)), which indicates the "
1225 "desired type of asynchronous notification at completion.  All other fields "
1226 "are ignored."
1227 msgstr ""
1228
1229 #. type: Plain text
1230 #: build/C/man3/aio_fsync.3:79
1231 msgid ""
1232 "On success (the sync request was successfully queued)  this function returns "
1233 "0.  On error -1 is returned, and I<errno> is set appropriately."
1234 msgstr ""
1235
1236 #. type: TP
1237 #: build/C/man3/aio_fsync.3:80 build/C/man3/aio_read.3:104 build/C/man3/aio_suspend.3:89 build/C/man3/aio_write.3:111 build/C/man2/io_cancel.2:39 build/C/man2/io_setup.2:38 build/C/man2/io_submit.2:38 build/C/man3/lio_listio.3:150 build/C/man3/lio_listio.3:153
1238 #, no-wrap
1239 msgid "B<EAGAIN>"
1240 msgstr ""
1241
1242 #. type: Plain text
1243 #: build/C/man3/aio_fsync.3:83 build/C/man3/aio_read.3:107 build/C/man3/aio_write.3:114 build/C/man3/lio_listio.3:153
1244 msgid "Out of resources."
1245 msgstr ""
1246
1247 #. type: Plain text
1248 #: build/C/man3/aio_fsync.3:87 build/C/man3/aio_write.3:118
1249 msgid "I<aio_fildes> is not a valid file descriptor open for writing."
1250 msgstr ""
1251
1252 #. type: Plain text
1253 #: build/C/man3/aio_fsync.3:95
1254 msgid ""
1255 "Synchronized I/O is not supported for this file, or I<op> is not B<O_SYNC> "
1256 "or B<O_DSYNC>."
1257 msgstr ""
1258
1259 #. type: Plain text
1260 #: build/C/man3/aio_fsync.3:99
1261 msgid "B<aio_fsync>()  is not implemented."
1262 msgstr ""
1263
1264 #. type: Plain text
1265 #: build/C/man3/aio_fsync.3:103
1266 msgid "The B<aio_fsync>()  function is available since glibc 2.1."
1267 msgstr ""
1268
1269 #. type: Plain text
1270 #: build/C/man3/aio_fsync.3:115
1271 msgid ""
1272 "B<aio_cancel>(3), B<aio_error>(3), B<aio_read>(3), B<aio_return>(3), "
1273 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7), "
1274 "B<sigevent>(7)"
1275 msgstr ""
1276
1277 #. type: TH
1278 #: build/C/man3/aio_init.3:26
1279 #, no-wrap
1280 msgid "AIO_INIT"
1281 msgstr ""
1282
1283 #. type: TH
1284 #: build/C/man3/aio_init.3:26
1285 #, no-wrap
1286 msgid "2012-04-26"
1287 msgstr ""
1288
1289 #. type: Plain text
1290 #: build/C/man3/aio_init.3:29
1291 msgid "aio_init - asynchronous I/O initialization"
1292 msgstr ""
1293
1294 #. type: Plain text
1295 #: build/C/man3/aio_init.3:33
1296 #, no-wrap
1297 msgid ""
1298 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
1299 "B<#include E<lt>aio.hE<gt>>\n"
1300 msgstr ""
1301
1302 #. type: Plain text
1303 #: build/C/man3/aio_init.3:35
1304 #, no-wrap
1305 msgid "B<void aio_init(const struct aioinit *>I<init>B<);>\n"
1306 msgstr ""
1307
1308 #. type: Plain text
1309 #: build/C/man3/aio_init.3:45
1310 msgid ""
1311 "The GNU-specific B<aio_init>()  function allows the caller to provide tuning "
1312 "hints to the glibc POSIX AIO implementation.  Use of this function is "
1313 "optional, but to be effective, it must be called before employing any other "
1314 "functions in the POSIX AIO API."
1315 msgstr ""
1316
1317 #. type: Plain text
1318 #: build/C/man3/aio_init.3:49
1319 msgid ""
1320 "The tuning information is provided in the buffer pointed to by the argument "
1321 "I<init>.  This buffer is a structure of the following form:"
1322 msgstr ""
1323
1324 #. type: Plain text
1325 #: build/C/man3/aio_init.3:64
1326 #, no-wrap
1327 msgid ""
1328 "struct aioinit {\n"
1329 "    int aio_threads;    /* Maximum number of threads */\n"
1330 "    int aio_num;        /* Number of expected simultaneous\n"
1331 "                           requests */\n"
1332 "    int aio_locks;      /* Not used */\n"
1333 "    int aio_usedba;     /* Not used */\n"
1334 "    int aio_debug;      /* Not used */\n"
1335 "    int aio_numusers;   /* Not used */\n"
1336 "    int aio_idle_time;  /* Number of seconds before idle thread\n"
1337 "                           terminates (since glibc 2.2) */\n"
1338 "    int aio_reserved;\n"
1339 "};\n"
1340 msgstr ""
1341
1342 #. type: Plain text
1343 #: build/C/man3/aio_init.3:70
1344 msgid "The following fields are used in the I<aioinit> structure:"
1345 msgstr ""
1346
1347 #. type: TP
1348 #: build/C/man3/aio_init.3:70
1349 #, no-wrap
1350 msgid "I<aio_threads>"
1351 msgstr ""
1352
1353 #. type: Plain text
1354 #: build/C/man3/aio_init.3:78
1355 msgid ""
1356 "This field specifies the maximum number of worker threads that may be used "
1357 "by the implementation.  If the number of outstanding I/O operations exceeds "
1358 "this limit, then excess operations will be queued until a worker thread "
1359 "becomes free.  If this field is specified with a value less than 1, the "
1360 "value 1 is used.  The default value is 20."
1361 msgstr ""
1362
1363 #. type: TP
1364 #: build/C/man3/aio_init.3:78
1365 #, no-wrap
1366 msgid "I<aio_num>"
1367 msgstr ""
1368
1369 #.  FIXME But, if aio_num > 32, the behavior looks strange. See
1370 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=12083
1371 #. type: Plain text
1372 #: build/C/man3/aio_init.3:87
1373 msgid ""
1374 "This field should specify the maximum number of simultaneous I/O requests "
1375 "that the caller expects to enqueue.  If a value less than 32 is specified "
1376 "for this field, it is rounded up to 32.  The default value is 64."
1377 msgstr ""
1378
1379 #. type: TP
1380 #: build/C/man3/aio_init.3:87
1381 #, no-wrap
1382 msgid "I<aio_idle_time>"
1383 msgstr ""
1384
1385 #. type: Plain text
1386 #: build/C/man3/aio_init.3:93
1387 msgid ""
1388 "This field specifies the amount of time in seconds that a worker thread "
1389 "should wait for further requests before terminating, after having completed "
1390 "a previous request.  The default value is 1."
1391 msgstr ""
1392
1393 #. type: Plain text
1394 #: build/C/man3/aio_init.3:97
1395 msgid "The B<aio_init>()  function is available since glibc 2.1."
1396 msgstr ""
1397
1398 #. type: Plain text
1399 #: build/C/man3/aio_init.3:99
1400 msgid "This function is a GNU extension."
1401 msgstr ""
1402
1403 #. type: Plain text
1404 #: build/C/man3/aio_init.3:101
1405 msgid "B<aio>(7)"
1406 msgstr ""
1407
1408 #. type: TH
1409 #: build/C/man3/aio_read.3:24
1410 #, no-wrap
1411 msgid "AIO_READ"
1412 msgstr ""
1413
1414 #. type: Plain text
1415 #: build/C/man3/aio_read.3:27
1416 msgid "aio_read - asynchronous read"
1417 msgstr ""
1418
1419 #. type: Plain text
1420 #: build/C/man3/aio_read.3:31
1421 msgid "B<int aio_read(struct aiocb *>I<aiocbp>B<);>"
1422 msgstr ""
1423
1424 #. type: Plain text
1425 #: build/C/man3/aio_read.3:41
1426 msgid ""
1427 "The B<aio_read>()  function queues the I/O request described by the buffer "
1428 "pointed to by I<aiocbp>.  This function is the asynchronous analog of "
1429 "B<read>(2).  The arguments of the call"
1430 msgstr ""
1431
1432 #. type: Plain text
1433 #: build/C/man3/aio_read.3:43
1434 #, no-wrap
1435 msgid "    read(fd, buf, count)\n"
1436 msgstr ""
1437
1438 #. type: Plain text
1439 #: build/C/man3/aio_read.3:56 build/C/man3/aio_write.3:56
1440 msgid ""
1441 "correspond (in order) to the fields I<aio_fildes>, I<aio_buf>, and "
1442 "I<aio_nbytes> of the structure pointed to by I<aiocbp>.  (See B<aio>(7)  for "
1443 "a description of the I<aiocb> structure.)"
1444 msgstr ""
1445
1446 #. type: Plain text
1447 #: build/C/man3/aio_read.3:62
1448 msgid ""
1449 "The data is read starting at the absolute file offset "
1450 "I<aiocbp-E<gt>aio_offset>, regardless of the current file offset.  After the "
1451 "call, the value of the current file offset is unspecified."
1452 msgstr ""
1453
1454 #. type: Plain text
1455 #: build/C/man3/aio_read.3:75
1456 msgid ""
1457 "The \"asynchronous\" means that this call returns as soon as the request has "
1458 "been enqueued; the read may or may not have completed when the call "
1459 "returns.  One tests for completion using B<aio_error>(3).  The return status "
1460 "of a completed I/O operation can be obtained by B<aio_return>(3).  "
1461 "Asynchronous notification of I/O completion can be obtained by setting "
1462 "I<aiocbp-E<gt>aio_sigevent> appropriately; see B<sigevent>(7)  for details."
1463 msgstr ""
1464
1465 #. type: Plain text
1466 #: build/C/man3/aio_read.3:82 build/C/man3/aio_write.3:89
1467 msgid ""
1468 "If B<_POSIX_PRIORITIZED_IO> is defined, and this file supports it, then the "
1469 "asynchronous operation is submitted at a priority equal to that of the "
1470 "calling process minus I<aiocbp-E<gt>aio_reqprio>."
1471 msgstr ""
1472
1473 #. type: Plain text
1474 #: build/C/man3/aio_read.3:86 build/C/man3/aio_write.3:93
1475 msgid "The field I<aiocbp-E<gt>aio_lio_opcode> is ignored."
1476 msgstr ""
1477
1478 #. type: Plain text
1479 #: build/C/man3/aio_read.3:88
1480 msgid "No data is read from a regular file beyond its maximum offset."
1481 msgstr ""
1482
1483 #. type: Plain text
1484 #: build/C/man3/aio_read.3:103 build/C/man3/aio_write.3:110
1485 msgid ""
1486 "On success, 0 is returned.  On error the request is not enqueued, -1 is "
1487 "returned, and I<errno> is set appropriately.  If an error is only detected "
1488 "later, it will be reported via B<aio_return>(3)  (returns status -1) and "
1489 "B<aio_error>(3)  (error status\\(emwhatever one would have gotten in "
1490 "I<errno>, such as B<EBADF>)."
1491 msgstr ""
1492
1493 #. type: Plain text
1494 #: build/C/man3/aio_read.3:111
1495 msgid "I<aio_fildes> is not a valid file descriptor open for reading."
1496 msgstr ""
1497
1498 #. type: Plain text
1499 #: build/C/man3/aio_read.3:119
1500 msgid "One or more of I<aio_offset>, I<aio_reqprio>, or I<aio_nbytes> are invalid."
1501 msgstr ""
1502
1503 #. type: Plain text
1504 #: build/C/man3/aio_read.3:123
1505 msgid "B<aio_read>()  is not implemented."
1506 msgstr ""
1507
1508 #. type: TP
1509 #: build/C/man3/aio_read.3:123
1510 #, no-wrap
1511 msgid "B<EOVERFLOW>"
1512 msgstr ""
1513
1514 #. type: Plain text
1515 #: build/C/man3/aio_read.3:128
1516 msgid ""
1517 "The file is a regular file, we start reading before end-of-file and want at "
1518 "least one byte, but the starting position is past the maximum offset for "
1519 "this file."
1520 msgstr ""
1521
1522 #. type: Plain text
1523 #: build/C/man3/aio_read.3:132
1524 msgid "The B<aio_read>()  function is available since glibc 2.1."
1525 msgstr ""
1526
1527 #.  or the control block of the operation
1528 #. type: Plain text
1529 #: build/C/man3/aio_read.3:142
1530 msgid ""
1531 "It is a good idea to zero out the control block before use.  The control "
1532 "block must not be changed while the read operation is in progress.  The "
1533 "buffer area being read into must not be accessed during the operation or "
1534 "undefined results may occur.  The memory areas involved must remain valid."
1535 msgstr ""
1536
1537 #. type: Plain text
1538 #: build/C/man3/aio_read.3:146 build/C/man3/aio_write.3:151 build/C/man3/lio_listio.3:219
1539 msgid ""
1540 "Simultaneous I/O operations specifying the same I<aiocb> structure produce "
1541 "undefined results."
1542 msgstr ""
1543
1544 #. type: Plain text
1545 #: build/C/man3/aio_read.3:158
1546 msgid ""
1547 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
1548 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1549 msgstr ""
1550
1551 #. type: TH
1552 #: build/C/man3/aio_return.3:24
1553 #, no-wrap
1554 msgid "AIO_RETURN"
1555 msgstr ""
1556
1557 #. type: Plain text
1558 #: build/C/man3/aio_return.3:27
1559 msgid "aio_return - get return status of asynchronous I/O operation"
1560 msgstr ""
1561
1562 #. type: Plain text
1563 #: build/C/man3/aio_return.3:31
1564 msgid "B<ssize_t aio_return(struct aiocb *>I<aiocbp>B<);>"
1565 msgstr ""
1566
1567 #. type: Plain text
1568 #: build/C/man3/aio_return.3:44
1569 msgid ""
1570 "The B<aio_return>()  function returns the final return status for the "
1571 "asynchronous I/O request with control block pointed to by I<aiocbp>.  (See "
1572 "B<aio>(7)  for a description of the I<aiocb> structure.)"
1573 msgstr ""
1574
1575 #. type: Plain text
1576 #: build/C/man3/aio_return.3:49
1577 msgid ""
1578 "This function should be called only once for any given request, after "
1579 "B<aio_error>(3)  returns something other than B<EINPROGRESS>."
1580 msgstr ""
1581
1582 #. type: Plain text
1583 #: build/C/man3/aio_return.3:58
1584 msgid ""
1585 "If the asynchronous I/O operation has completed, this function returns the "
1586 "value that would have been returned in case of a synchronous B<read>(2), "
1587 "B<write>(2), B<fsync>(2)  or B<fdatasync>(2), call."
1588 msgstr ""
1589
1590 #. type: Plain text
1591 #: build/C/man3/aio_return.3:63
1592 msgid ""
1593 "If the asynchronous I/O operation has not yet completed, the return value "
1594 "and effect of B<aio_return>()  are undefined."
1595 msgstr ""
1596
1597 #. type: Plain text
1598 #: build/C/man3/aio_return.3:69
1599 msgid ""
1600 "I<aiocbp> does not point at a control block for an asynchronous I/O request "
1601 "of which the return status has not been retrieved yet."
1602 msgstr ""
1603
1604 #. type: Plain text
1605 #: build/C/man3/aio_return.3:73
1606 msgid "B<aio_return>()  is not implemented."
1607 msgstr ""
1608
1609 #. type: Plain text
1610 #: build/C/man3/aio_return.3:77
1611 msgid "The B<aio_return>()  function is available since glibc 2.1."
1612 msgstr ""
1613
1614 #. type: Plain text
1615 #: build/C/man3/aio_return.3:91
1616 msgid ""
1617 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
1618 "B<aio_suspend>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7)"
1619 msgstr ""
1620
1621 #. type: TH
1622 #: build/C/man3/aio_suspend.3:25
1623 #, no-wrap
1624 msgid "AIO_SUSPEND"
1625 msgstr ""
1626
1627 #. type: Plain text
1628 #: build/C/man3/aio_suspend.3:28
1629 msgid "aio_suspend - wait for asynchronous I/O operation or timeout"
1630 msgstr ""
1631
1632 #. type: Plain text
1633 #: build/C/man3/aio_suspend.3:32 build/C/man3/lio_listio.3:30
1634 #, no-wrap
1635 msgid "B<#include E<lt>aio.hE<gt>>\n"
1636 msgstr ""
1637
1638 #. type: Plain text
1639 #: build/C/man3/aio_suspend.3:34
1640 #, no-wrap
1641 msgid "B<int aio_suspend(const struct aiocb * const >I<aiocb_list>B<[],>\n"
1642 msgstr ""
1643
1644 #. type: Plain text
1645 #: build/C/man3/aio_suspend.3:36
1646 #, no-wrap
1647 msgid ""
1648 "B<                int >I<nitems>B<, const struct timespec "
1649 "*>I<timeout>B<);>\n"
1650 msgstr ""
1651
1652 #. type: Plain text
1653 #: build/C/man3/aio_suspend.3:38 build/C/man3/lio_listio.3:35
1654 #, no-wrap
1655 msgid "Link with I<-lrt>.\n"
1656 msgstr ""
1657
1658 #. type: Plain text
1659 #: build/C/man3/aio_suspend.3:43
1660 msgid ""
1661 "The B<aio_suspend>()  function suspends the calling thread until one of the "
1662 "following occurs:"
1663 msgstr ""
1664
1665 #. type: Plain text
1666 #: build/C/man3/aio_suspend.3:47
1667 msgid ""
1668 "One or more of the asynchronous I/O requests in the list I<aiocb_list> has "
1669 "completed."
1670 msgstr ""
1671
1672 #. type: Plain text
1673 #: build/C/man3/aio_suspend.3:49
1674 msgid "A signal is delivered."
1675 msgstr ""
1676
1677 #. type: Plain text
1678 #: build/C/man3/aio_suspend.3:56
1679 msgid ""
1680 "I<timeout> is not NULL and the specified time interval has passed.  (For "
1681 "details of the I<timespec> structure, see B<nanosleep>(2).)"
1682 msgstr ""
1683
1684 #. type: Plain text
1685 #: build/C/man3/aio_suspend.3:74
1686 msgid ""
1687 "The I<nitems> argument specifies the number of items in I<aiocb_list>.  Each "
1688 "item in the list pointed to by I<aiocb_list> must be either NULL (and then "
1689 "is ignored), or a pointer to a control block on which I/O was initiated "
1690 "using B<aio_read>(3), B<aio_write>(3), or B<lio_listio>(3).  (See B<aio>(7)  "
1691 "for a description of the I<aiocb> structure.)"
1692 msgstr ""
1693
1694 #. type: Plain text
1695 #: build/C/man3/aio_suspend.3:80
1696 msgid ""
1697 "If B<CLOCK_MONOTONIC> is supported, this clock is used to measure the "
1698 "timeout interval (see B<clock_gettime>(3))."
1699 msgstr ""
1700
1701 #. type: Plain text
1702 #: build/C/man3/aio_suspend.3:88
1703 msgid ""
1704 "If this function returns after completion of one of the I/O requests "
1705 "specified in I<aiocb_list>, 0 is returned.  Otherwise, -1 is returned, and "
1706 "I<errno> is set to indicate the error."
1707 msgstr ""
1708
1709 #. type: Plain text
1710 #: build/C/man3/aio_suspend.3:93
1711 msgid "The call timed out before any of the indicated operations had completed."
1712 msgstr ""
1713
1714 #. type: TP
1715 #: build/C/man3/aio_suspend.3:93 build/C/man2/io_getevents.2:50 build/C/man3/lio_listio.3:169
1716 #, no-wrap
1717 msgid "B<EINTR>"
1718 msgstr ""
1719
1720 #. type: Plain text
1721 #: build/C/man3/aio_suspend.3:99
1722 msgid ""
1723 "The call was ended by signal (possibly the completion signal of one of the "
1724 "operations we were waiting for); see B<signal>(7)."
1725 msgstr ""
1726
1727 #. type: Plain text
1728 #: build/C/man3/aio_suspend.3:103
1729 msgid "B<aio_suspend>()  is not implemented."
1730 msgstr ""
1731
1732 #. type: Plain text
1733 #: build/C/man3/aio_suspend.3:107
1734 msgid "The B<aio_suspend>()  function is available since glibc 2.1."
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: build/C/man3/aio_suspend.3:113
1739 msgid ""
1740 "One can achieve polling by using a non-NULL I<timeout> that specifies a zero "
1741 "time interval."
1742 msgstr ""
1743
1744 #. type: Plain text
1745 #: build/C/man3/aio_suspend.3:119
1746 msgid ""
1747 "If one or more of the asynchronous I/O operations specified in I<aiocb_list> "
1748 "has already completed at the time of the call to B<aio_suspend>(), then the "
1749 "call returns immediately."
1750 msgstr ""
1751
1752 #. type: Plain text
1753 #: build/C/man3/aio_suspend.3:129
1754 msgid ""
1755 "To determine which I/O operations have completed after a successful return "
1756 "from B<aio_suspend>(), use B<aio_error>(3)  to scan the list of I<aiocb> "
1757 "structures pointed to by I<aiocb_list>."
1758 msgstr ""
1759
1760 #. type: Plain text
1761 #: build/C/man3/aio_suspend.3:139
1762 msgid ""
1763 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
1764 "B<aio_return>(3), B<aio_write>(3), B<lio_listio>(3), B<aio>(7), B<time>(7)"
1765 msgstr ""
1766
1767 #. type: TH
1768 #: build/C/man3/aio_write.3:24
1769 #, no-wrap
1770 msgid "AIO_WRITE"
1771 msgstr ""
1772
1773 #. type: Plain text
1774 #: build/C/man3/aio_write.3:27
1775 msgid "aio_write - asynchronous write"
1776 msgstr ""
1777
1778 #. type: Plain text
1779 #: build/C/man3/aio_write.3:31
1780 msgid "B<int aio_write(struct aiocb *>I<aiocbp>B<);>"
1781 msgstr ""
1782
1783 #. type: Plain text
1784 #: build/C/man3/aio_write.3:41
1785 msgid ""
1786 "The B<aio_write>()  function queues the I/O request described by the buffer "
1787 "pointed to by I<aiocbp>.  This function is the asynchronous analog of "
1788 "B<write>(2).  The arguments of the call"
1789 msgstr ""
1790
1791 #. type: Plain text
1792 #: build/C/man3/aio_write.3:43
1793 #, no-wrap
1794 msgid "    write(fd, buf, count)\n"
1795 msgstr ""
1796
1797 #. type: Plain text
1798 #: build/C/man3/aio_write.3:69
1799 msgid ""
1800 "If B<O_APPEND> is not set, the data is written starting at the absolute file "
1801 "offset I<aiocbp-E<gt>aio_offset>, regardless of the current file offset.  If "
1802 "B<O_APPEND> is set, data is written at the end of the file in the same order "
1803 "as B<aio_write>()  calls are made.  After the call, the value of the current "
1804 "file offset is unspecified."
1805 msgstr ""
1806
1807 #. type: Plain text
1808 #: build/C/man3/aio_write.3:82
1809 msgid ""
1810 "The \"asynchronous\" means that this call returns as soon as the request has "
1811 "been enqueued; the write may or may not have completed when the call "
1812 "returns.  One tests for completion using B<aio_error>(3).  The return status "
1813 "of a completed I/O operation can be obtained B<aio_return>(3).  Asynchronous "
1814 "notification of I/O completion can be obtained by setting "
1815 "I<aiocbp-E<gt>aio_sigevent> appropriately; see B<sigevent>(7)  for details."
1816 msgstr ""
1817
1818 #. type: Plain text
1819 #: build/C/man3/aio_write.3:95
1820 msgid "No data is written to a regular file beyond its maximum offset."
1821 msgstr ""
1822
1823 #. type: TP
1824 #: build/C/man3/aio_write.3:118
1825 #, no-wrap
1826 msgid "B<EFBIG>"
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: build/C/man3/aio_write.3:122
1831 msgid ""
1832 "The file is a regular file, we want to write at least one byte, but the "
1833 "starting position is at or beyond the maximum offset for this file."
1834 msgstr ""
1835
1836 #. type: Plain text
1837 #: build/C/man3/aio_write.3:129
1838 msgid "One or more of I<aio_offset>, I<aio_reqprio>, I<aio_nbytes> are invalid."
1839 msgstr ""
1840
1841 #. type: Plain text
1842 #: build/C/man3/aio_write.3:133
1843 msgid "B<aio_write>()  is not implemented."
1844 msgstr ""
1845
1846 #. type: Plain text
1847 #: build/C/man3/aio_write.3:137
1848 msgid "The B<aio_write>()  function is available since glibc 2.1."
1849 msgstr ""
1850
1851 #.  or the control block of the operation
1852 #. type: Plain text
1853 #: build/C/man3/aio_write.3:147
1854 msgid ""
1855 "It is a good idea to zero out the control block before use.  The control "
1856 "block must not be changed while the write operation is in progress.  The "
1857 "buffer area being written out must not be accessed during the operation or "
1858 "undefined results may occur.  The memory areas involved must remain valid."
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: build/C/man3/aio_write.3:160
1863 msgid ""
1864 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_read>(3), "
1865 "B<aio_return>(3), B<aio_suspend>(3), B<lio_listio>(3), B<aio>(7)"
1866 msgstr ""
1867
1868 #. type: TH
1869 #: build/C/man2/io_cancel.2:7
1870 #, no-wrap
1871 msgid "IO_CANCEL"
1872 msgstr ""
1873
1874 #. type: TH
1875 #: build/C/man2/io_cancel.2:7 build/C/man2/io_destroy.2:7 build/C/man2/io_setup.2:7 build/C/man2/io_submit.2:7
1876 #, no-wrap
1877 msgid "2012-07-13"
1878 msgstr ""
1879
1880 #. type: Plain text
1881 #: build/C/man2/io_cancel.2:10
1882 msgid "io_cancel - cancel an outstanding asynchronous I/O operation"
1883 msgstr ""
1884
1885 #. type: Plain text
1886 #: build/C/man2/io_cancel.2:13 build/C/man2/io_destroy.2:13 build/C/man2/io_setup.2:13 build/C/man2/io_submit.2:13
1887 #, no-wrap
1888 msgid "B<#include E<lt>linux/aio_abi.hE<gt>>          /* Defines needed types */\n"
1889 msgstr ""
1890
1891 #. type: Plain text
1892 #: build/C/man2/io_cancel.2:16
1893 #, no-wrap
1894 msgid ""
1895 "B<int io_cancel(aio_context_t >I<ctx_id>B<, struct iocb *>I<iocb>B<,>\n"
1896 "B<              struct io_event *>I<result>B<);>\n"
1897 msgstr ""
1898
1899 #. type: Plain text
1900 #: build/C/man2/io_cancel.2:20 build/C/man2/io_destroy.2:19 build/C/man2/io_getevents.2:22 build/C/man2/io_setup.2:19 build/C/man2/io_submit.2:20
1901 msgid "I<Note>: There is no glibc wrapper for this system call; see NOTES."
1902 msgstr ""
1903
1904 #. type: Plain text
1905 #: build/C/man2/io_cancel.2:33
1906 msgid ""
1907 "The B<io_cancel>()  system call attempts to cancel an asynchronous I/O "
1908 "operation previously submitted with B<io_submit>(2).  The I<ctx_id> argument "
1909 "is the AIO context ID of the operation to be canceled.  If the AIO context "
1910 "is found, the event will be canceled and then copied into the memory pointed "
1911 "to by I<result> without being placed into the completion queue."
1912 msgstr ""
1913
1914 #. type: Plain text
1915 #: build/C/man2/io_cancel.2:38
1916 msgid "On success, B<io_cancel>()  returns 0.  For the failure return, see NOTES."
1917 msgstr ""
1918
1919 #. type: Plain text
1920 #: build/C/man2/io_cancel.2:42
1921 msgid "The I<iocb> specified was not canceled."
1922 msgstr ""
1923
1924 #. type: TP
1925 #: build/C/man2/io_cancel.2:42 build/C/man2/io_destroy.2:36 build/C/man2/io_getevents.2:42 build/C/man2/io_setup.2:41 build/C/man2/io_submit.2:44
1926 #, no-wrap
1927 msgid "B<EFAULT>"
1928 msgstr ""
1929
1930 #. type: Plain text
1931 #: build/C/man2/io_cancel.2:45 build/C/man2/io_submit.2:47
1932 msgid "One of the data structures points to invalid data."
1933 msgstr ""
1934
1935 #. type: Plain text
1936 #: build/C/man2/io_cancel.2:48 build/C/man2/io_destroy.2:42
1937 msgid "The AIO context specified by I<ctx_id> is invalid."
1938 msgstr ""
1939
1940 #. type: Plain text
1941 #: build/C/man2/io_cancel.2:52
1942 msgid "B<io_cancel>()  is not implemented on this architecture."
1943 msgstr ""
1944
1945 #. type: Plain text
1946 #: build/C/man2/io_cancel.2:55 build/C/man2/io_destroy.2:49 build/C/man2/io_getevents.2:61 build/C/man2/io_setup.2:59 build/C/man2/io_submit.2:63
1947 msgid "The asynchronous I/O system calls first appeared in Linux 2.5."
1948 msgstr ""
1949
1950 #. type: Plain text
1951 #: build/C/man2/io_cancel.2:60
1952 msgid ""
1953 "B<io_cancel>()  is Linux-specific and should not be used in programs that "
1954 "are intended to be portable."
1955 msgstr ""
1956
1957 #.  http://git.fedorahosted.org/git/?p=libaio.git
1958 #. type: Plain text
1959 #: build/C/man2/io_cancel.2:69
1960 msgid ""
1961 "Glibc does not provide a wrapper function for this system call.  You could "
1962 "invoke it using B<syscall>(2).  But instead, you probably want to use the "
1963 "B<io_cancel>()  wrapper function provided by I<libaio>."
1964 msgstr ""
1965
1966 #.  But glibc is confused, since <libaio.h> uses 'io_context_t' to declare
1967 #.  the system call.
1968 #. type: Plain text
1969 #: build/C/man2/io_cancel.2:90 build/C/man2/io_destroy.2:84 build/C/man2/io_getevents.2:96 build/C/man2/io_submit.2:98
1970 msgid ""
1971 "Note that the I<libaio> wrapper function uses a different type "
1972 "(I<io_context_t>)  for the I<ctx_id> argument.  Note also that the I<libaio> "
1973 "wrapper does not follow the usual C library conventions for indicating "
1974 "errors: on error it returns a negated error number (the negative of one of "
1975 "the values listed in ERRORS).  If the system call is invoked via "
1976 "B<syscall>(2), then the return value follows the usual conventions for "
1977 "indicating an error: -1, with I<errno> set to a (positive) value that "
1978 "indicates the error."
1979 msgstr ""
1980
1981 #.  .SH AUTHOR
1982 #.  Kent Yoder.
1983 #. type: Plain text
1984 #: build/C/man2/io_cancel.2:98
1985 msgid ""
1986 "B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), "
1987 "B<aio>(7)"
1988 msgstr ""
1989
1990 #. type: TH
1991 #: build/C/man2/io_destroy.2:7
1992 #, no-wrap
1993 msgid "IO_DESTROY"
1994 msgstr ""
1995
1996 #. type: Plain text
1997 #: build/C/man2/io_destroy.2:10
1998 msgid "io_destroy - destroy an asynchronous I/O context"
1999 msgstr ""
2000
2001 #. type: Plain text
2002 #: build/C/man2/io_destroy.2:15
2003 #, no-wrap
2004 msgid "B<int io_destroy(aio_context_t >I<ctx_id>B<);>\n"
2005 msgstr ""
2006
2007 #. type: Plain text
2008 #: build/C/man2/io_destroy.2:30
2009 msgid ""
2010 "The B<io_destroy>()  system call removes the asynchronous I/O context "
2011 "specified by I<ctx_id> from the list of I/O contexts and then destroys it.  "
2012 "It can also cancel any outstanding asynchronous I/O actions on I<ctx_id> and "
2013 "block on completion."
2014 msgstr ""
2015
2016 #. type: Plain text
2017 #: build/C/man2/io_destroy.2:35
2018 msgid "On success, B<io_destroy>()  returns 0.  For the failure return, see NOTES."
2019 msgstr ""
2020
2021 #. type: Plain text
2022 #: build/C/man2/io_destroy.2:39
2023 msgid "The context pointed to is invalid."
2024 msgstr ""
2025
2026 #. type: Plain text
2027 #: build/C/man2/io_destroy.2:46
2028 msgid "B<io_destroy>()  is not implemented on this architecture."
2029 msgstr ""
2030
2031 #. type: Plain text
2032 #: build/C/man2/io_destroy.2:54
2033 msgid ""
2034 "B<io_destroy>()  is Linux-specific and should not be used in programs that "
2035 "are intended to be portable."
2036 msgstr ""
2037
2038 #.  http://git.fedorahosted.org/git/?p=libaio.git
2039 #. type: Plain text
2040 #: build/C/man2/io_destroy.2:63
2041 msgid ""
2042 "Glibc does not provide a wrapper function for this system call.  You could "
2043 "invoke it using B<syscall>(2).  But instead, you probably want to use the "
2044 "B<io_destroy>()  wrapper function provided by I<libaio>."
2045 msgstr ""
2046
2047 #.  .SH AUTHOR
2048 #.  Kent Yoder.
2049 #. type: Plain text
2050 #: build/C/man2/io_destroy.2:92
2051 msgid ""
2052 "B<io_cancel>(2), B<io_getevents>(2), B<io_setup>(2), B<io_submit>(2), "
2053 "B<aio>(7)"
2054 msgstr ""
2055
2056 #. type: TH
2057 #: build/C/man2/io_getevents.2:7
2058 #, no-wrap
2059 msgid "IO_GETEVENTS"
2060 msgstr ""
2061
2062 #. type: TH
2063 #: build/C/man2/io_getevents.2:7
2064 #, no-wrap
2065 msgid "2012-11-11"
2066 msgstr ""
2067
2068 #. type: Plain text
2069 #: build/C/man2/io_getevents.2:10
2070 msgid "io_getevents - read asynchronous I/O events from the completion queue"
2071 msgstr ""
2072
2073 #. type: Plain text
2074 #: build/C/man2/io_getevents.2:14
2075 #, no-wrap
2076 msgid ""
2077 "B<#include E<lt>linux/aio_abi.hE<gt>>         /* Defines needed types */\n"
2078 "B<#include E<lt>linux/time.hE<gt>>            /* Defines 'struct timespec' "
2079 "*/\n"
2080 msgstr ""
2081
2082 #. type: Plain text
2083 #: build/C/man2/io_getevents.2:18
2084 #, no-wrap
2085 msgid ""
2086 "B<int io_getevents(aio_context_t >I<ctx_id>B<, long >I<min_nr>B<, long "
2087 ">I<nr>B<,>\n"
2088 "B<                 struct io_event *>I<events>B<, struct timespec "
2089 "*>I<timeout>B<);>\n"
2090 msgstr ""
2091
2092 #. type: Plain text
2093 #: build/C/man2/io_getevents.2:35
2094 msgid ""
2095 "The B<io_getevents>()  system call attempts to read at least I<min_nr> "
2096 "events and up to I<nr> events from the completion queue of the AIO context "
2097 "specified by I<ctx_id>.  The I<timeout> argument specifies the amount of "
2098 "time to wait for events, where a NULL timeout waits until at least I<min_nr> "
2099 "events have been seen.  Note that I<timeout> is relative and will be updated "
2100 "if not NULL and the operation blocks."
2101 msgstr ""
2102
2103 #. type: Plain text
2104 #: build/C/man2/io_getevents.2:41
2105 msgid ""
2106 "On success, B<io_getevents>()  returns the number of events read: 0 if no "
2107 "events are available, or less than I<min_nr> if the I<timeout> has elapsed.  "
2108 "For the failure return, see NOTES."
2109 msgstr ""
2110
2111 #. type: Plain text
2112 #: build/C/man2/io_getevents.2:45
2113 msgid "Either I<events> or I<timeout> is an invalid pointer."
2114 msgstr ""
2115
2116 #. type: Plain text
2117 #: build/C/man2/io_getevents.2:50
2118 msgid "I<ctx_id> is invalid.  I<min_nr> is out of range or I<nr> is out of range."
2119 msgstr ""
2120
2121 #. type: Plain text
2122 #: build/C/man2/io_getevents.2:54
2123 msgid "Interrupted by a signal handler; see B<signal>(7)."
2124 msgstr ""
2125
2126 #. type: Plain text
2127 #: build/C/man2/io_getevents.2:58
2128 msgid "B<io_getevents>()  is not implemented on this architecture."
2129 msgstr ""
2130
2131 #. type: Plain text
2132 #: build/C/man2/io_getevents.2:66
2133 msgid ""
2134 "B<io_getevents>()  is Linux-specific and should not be used in programs that "
2135 "are intended to be portable."
2136 msgstr ""
2137
2138 #.  http://git.fedorahosted.org/git/?p=libaio.git
2139 #. type: Plain text
2140 #: build/C/man2/io_getevents.2:75
2141 msgid ""
2142 "Glibc does not provide a wrapper function for this system call.  You could "
2143 "invoke it using B<syscall>(2).  But instead, you probably want to use the "
2144 "B<io_getevents>()  wrapper function provided by I<libaio>."
2145 msgstr ""
2146
2147 #. type: SH
2148 #: build/C/man2/io_getevents.2:96
2149 #, no-wrap
2150 msgid "BUGS"
2151 msgstr ""
2152
2153 #. type: Plain text
2154 #: build/C/man2/io_getevents.2:101
2155 msgid ""
2156 "An invalid I<ctx_id> may cause a segmentation fault instead of genenerating "
2157 "the error B<EINVAL>."
2158 msgstr ""
2159
2160 #.  .SH AUTHOR
2161 #.  Kent Yoder.
2162 #. type: Plain text
2163 #: build/C/man2/io_getevents.2:111
2164 msgid ""
2165 "B<io_cancel>(2), B<io_destroy>(2), B<io_setup>(2), B<io_submit>(2), "
2166 "B<aio>(7), B<time>(7)"
2167 msgstr ""
2168
2169 #. type: TH
2170 #: build/C/man2/io_setup.2:7
2171 #, no-wrap
2172 msgid "IO_SETUP"
2173 msgstr ""
2174
2175 #. type: Plain text
2176 #: build/C/man2/io_setup.2:10
2177 msgid "io_setup - create an asynchronous I/O context"
2178 msgstr ""
2179
2180 #. type: Plain text
2181 #: build/C/man2/io_setup.2:15
2182 #, no-wrap
2183 msgid "B<int io_setup(unsigned >I<nr_events>B<, aio_context_t *>I<ctx_idp>B<);>\n"
2184 msgstr ""
2185
2186 #. type: Plain text
2187 #: build/C/man2/io_setup.2:32
2188 msgid ""
2189 "The B<io_setup>()  system call creates an asynchronous I/O context capable "
2190 "of receiving at least I<nr_events>.  The I<ctx_idp> argument must not point "
2191 "to an AIO context that already exists, and must be initialized to 0 prior to "
2192 "the call.  On successful creation of the AIO context, I<*ctx_idp> is filled "
2193 "in with the resulting handle."
2194 msgstr ""
2195
2196 #. type: Plain text
2197 #: build/C/man2/io_setup.2:37
2198 msgid "On success, B<io_setup>()  returns 0.  For the failure return, see NOTES."
2199 msgstr ""
2200
2201 #. type: Plain text
2202 #: build/C/man2/io_setup.2:41
2203 msgid "The specified I<nr_events> exceeds the user's limit of available events."
2204 msgstr ""
2205
2206 #. type: Plain text
2207 #: build/C/man2/io_setup.2:44
2208 msgid "An invalid pointer is passed for I<ctx_idp>."
2209 msgstr ""
2210
2211 #. type: Plain text
2212 #: build/C/man2/io_setup.2:49
2213 msgid ""
2214 "I<ctx_idp> is not initialized, or the specified I<nr_events> exceeds "
2215 "internal limits.  I<nr_events> should be greater than 0."
2216 msgstr ""
2217
2218 #. type: TP
2219 #: build/C/man2/io_setup.2:49
2220 #, no-wrap
2221 msgid "B<ENOMEM>"
2222 msgstr ""
2223
2224 #. type: Plain text
2225 #: build/C/man2/io_setup.2:52
2226 msgid "Insufficient kernel resources are available."
2227 msgstr ""
2228
2229 #. type: Plain text
2230 #: build/C/man2/io_setup.2:56
2231 msgid "B<io_setup>()  is not implemented on this architecture."
2232 msgstr ""
2233
2234 #. type: Plain text
2235 #: build/C/man2/io_setup.2:64
2236 msgid ""
2237 "B<io_setup>()  is Linux-specific and should not be used in programs that are "
2238 "intended to be portable."
2239 msgstr ""
2240
2241 #.  http://git.fedorahosted.org/git/?p=libaio.git
2242 #. type: Plain text
2243 #: build/C/man2/io_setup.2:73
2244 msgid ""
2245 "Glibc does not provide a wrapper function for this system call.  You could "
2246 "invoke it using B<syscall>(2).  But instead, you probably want to use the "
2247 "B<io_setup>()  wrapper function provided by I<libaio>."
2248 msgstr ""
2249
2250 #.  But glibc is confused, since <libaio.h> uses 'io_context_t' to declare
2251 #.  the system call.
2252 #. type: Plain text
2253 #: build/C/man2/io_setup.2:94
2254 msgid ""
2255 "Note that the I<libaio> wrapper function uses a different type "
2256 "(I<io_context_t\\ *>)  for the I<ctx_idp> argument.  Note also that the "
2257 "I<libaio> wrapper does not follow the usual C library conventions for "
2258 "indicating errors: on error it returns a negated error number (the negative "
2259 "of one of the values listed in ERRORS).  If the system call is invoked via "
2260 "B<syscall>(2), then the return value follows the usual conventions for "
2261 "indicating an error: -1, with I<errno> set to a (positive) value that "
2262 "indicates the error."
2263 msgstr ""
2264
2265 #.  .SH AUTHOR
2266 #.  Kent Yoder.
2267 #. type: Plain text
2268 #: build/C/man2/io_setup.2:102
2269 msgid ""
2270 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_submit>(2), "
2271 "B<aio>(7)"
2272 msgstr ""
2273
2274 #. type: TH
2275 #: build/C/man2/io_submit.2:7
2276 #, no-wrap
2277 msgid "IO_SUBMIT"
2278 msgstr ""
2279
2280 #. type: Plain text
2281 #: build/C/man2/io_submit.2:10
2282 msgid "io_submit - submit asynchronous I/O blocks for processing"
2283 msgstr ""
2284
2285 #. type: Plain text
2286 #: build/C/man2/io_submit.2:16
2287 #, no-wrap
2288 msgid ""
2289 "B<int io_submit(aio_context_t >I<ctx_id>B<, long >I<nr>B<, struct iocb "
2290 "**>I<iocbpp>B<);>\n"
2291 msgstr ""
2292
2293 #. type: Plain text
2294 #: build/C/man2/io_submit.2:31
2295 msgid ""
2296 "The B<io_submit>()  system call queues I<nr> I/O request blocks for "
2297 "processing in the AIO context I<ctx_id>.  The I<iocbpp> argument should be "
2298 "an array of I<nr> AIO control blocks, which will be submitted to context "
2299 "I<ctx_id>."
2300 msgstr ""
2301
2302 #. type: Plain text
2303 #: build/C/man2/io_submit.2:37
2304 msgid ""
2305 "On success, B<io_submit>()  returns the number of I<iocb>s submitted (which "
2306 "may be 0 if I<nr> is zero).  For the failure return, see NOTES."
2307 msgstr ""
2308
2309 #. type: Plain text
2310 #: build/C/man2/io_submit.2:41
2311 msgid "Insufficient resources are available to queue any I<iocb>s."
2312 msgstr ""
2313
2314 #. type: Plain text
2315 #: build/C/man2/io_submit.2:44
2316 msgid "The file descriptor specified in the first I<iocb> is invalid."
2317 msgstr ""
2318
2319 #. type: Plain text
2320 #: build/C/man2/io_submit.2:56
2321 msgid ""
2322 "The AIO context specified by I<ctx_id> is invalid.  I<nr> is less than 0.  "
2323 "The I<iocb> at I<*iocbpp[0]> is not properly initialized, or the operation "
2324 "specified is invalid for the file descriptor in the I<iocb>."
2325 msgstr ""
2326
2327 #. type: Plain text
2328 #: build/C/man2/io_submit.2:60
2329 msgid "B<io_submit>()  is not implemented on this architecture."
2330 msgstr ""
2331
2332 #. type: Plain text
2333 #: build/C/man2/io_submit.2:68
2334 msgid ""
2335 "B<io_submit>()  is Linux-specific and should not be used in programs that "
2336 "are intended to be portable."
2337 msgstr ""
2338
2339 #.  http://git.fedorahosted.org/git/?p=libaio.git
2340 #. type: Plain text
2341 #: build/C/man2/io_submit.2:77
2342 msgid ""
2343 "Glibc does not provide a wrapper function for this system call.  You could "
2344 "invoke it using B<syscall>(2).  But instead, you probably want to use the "
2345 "B<io_submit>()  wrapper function provided by I<libaio>."
2346 msgstr ""
2347
2348 #.  .SH AUTHOR
2349 #.  Kent Yoder.
2350 #. type: Plain text
2351 #: build/C/man2/io_submit.2:106
2352 msgid ""
2353 "B<io_cancel>(2), B<io_destroy>(2), B<io_getevents>(2), B<io_setup>(2), "
2354 "B<aio>(7)"
2355 msgstr ""
2356
2357 #. type: TH
2358 #: build/C/man3/lio_listio.3:24
2359 #, no-wrap
2360 msgid "LIO_LISTIO"
2361 msgstr ""
2362
2363 #. type: Plain text
2364 #: build/C/man3/lio_listio.3:27
2365 msgid "lio_listio - initiate a list of I/O requests"
2366 msgstr ""
2367
2368 #. type: Plain text
2369 #: build/C/man3/lio_listio.3:33
2370 #, no-wrap
2371 msgid ""
2372 "B<int lio_listio(int >I<mode>B<, struct aiocb *const >I<aiocb_list>B<[],>\n"
2373 "B<               int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
2374 msgstr ""
2375
2376 #. type: Plain text
2377 #: build/C/man3/lio_listio.3:41
2378 msgid ""
2379 "The B<lio_listio>()  function initiates the list of I/O operations described "
2380 "by the array I<aiocb_list>."
2381 msgstr ""
2382
2383 #. type: Plain text
2384 #: build/C/man3/lio_listio.3:45
2385 msgid "The I<mode> operation has one of the following values:"
2386 msgstr ""
2387
2388 #. type: TP
2389 #: build/C/man3/lio_listio.3:45
2390 #, no-wrap
2391 msgid "B<LIO_WAIT>"
2392 msgstr ""
2393
2394 #. type: Plain text
2395 #: build/C/man3/lio_listio.3:51
2396 msgid ""
2397 "The call blocks until all operations are complete.  The I<sevp> argument is "
2398 "ignored."
2399 msgstr ""
2400
2401 #. type: TP
2402 #: build/C/man3/lio_listio.3:51
2403 #, no-wrap
2404 msgid "B<LIO_NOWAIT>"
2405 msgstr ""
2406
2407 #. type: Plain text
2408 #: build/C/man3/lio_listio.3:63
2409 msgid ""
2410 "The I/O operations are queued for processing and the call returns "
2411 "immediately.  When all of the I/O operations complete, asynchronous "
2412 "notification occurs, as specified by the I<sevp> argument; see "
2413 "B<sigevent>(7)  for details.  If I<sevp> is NULL, no asynchronous "
2414 "notification occurs."
2415 msgstr ""
2416
2417 #. type: Plain text
2418 #: build/C/man3/lio_listio.3:77
2419 msgid ""
2420 "The I<aiocb_list> argument is an array of pointers to I<aiocb> structures "
2421 "that describe I/O operations.  These operations are executed in an "
2422 "unspecified order.  The I<nitems> argument specifies the size of the array "
2423 "I<aiocb_list>.  NULL pointers in I<aiocb_list> are ignored."
2424 msgstr ""
2425
2426 #. type: Plain text
2427 #: build/C/man3/lio_listio.3:83
2428 msgid ""
2429 "In each control block in I<aiocb_list>, the I<aio_lio_opcode> field "
2430 "specifies the I/O operation to be initiated, as follows:"
2431 msgstr ""
2432
2433 #. type: TP
2434 #: build/C/man3/lio_listio.3:83
2435 #, no-wrap
2436 msgid "B<LIO_READ>"
2437 msgstr ""
2438
2439 #. type: Plain text
2440 #: build/C/man3/lio_listio.3:89
2441 msgid ""
2442 "Initiate a read operation.  The operation is queued as for a call to "
2443 "B<aio_read>(3)  specifying this control block."
2444 msgstr ""
2445
2446 #. type: TP
2447 #: build/C/man3/lio_listio.3:89
2448 #, no-wrap
2449 msgid "B<LIO_WRITE>"
2450 msgstr ""
2451
2452 #. type: Plain text
2453 #: build/C/man3/lio_listio.3:95
2454 msgid ""
2455 "Initiate a write operation.  The operation is queued as for a call to "
2456 "B<aio_write>(3)  specifying this control block."
2457 msgstr ""
2458
2459 #. type: TP
2460 #: build/C/man3/lio_listio.3:95
2461 #, no-wrap
2462 msgid "B<LIO_NOP>"
2463 msgstr ""
2464
2465 #. type: Plain text
2466 #: build/C/man3/lio_listio.3:98
2467 msgid "Ignore this control block."
2468 msgstr ""
2469
2470 #. type: Plain text
2471 #: build/C/man3/lio_listio.3:108
2472 msgid ""
2473 "The remaining fields in each control block have the same meanings as for "
2474 "B<aio_read>(3)  and B<aio_write>(3).  The I<aio_sigevent> fields of each "
2475 "control block can be used to specify notifications for the individual I/O "
2476 "operations (see B<sigevent>(7))."
2477 msgstr ""
2478
2479 #. type: Plain text
2480 #: build/C/man3/lio_listio.3:118
2481 msgid ""
2482 "If I<mode> is B<LIO_NOWAIT>, B<lio_listio>()  returns 0 if all I/O "
2483 "operations are successfully queued.  Otherwise, -1 is returned, and I<errno> "
2484 "is set to indicate the error."
2485 msgstr ""
2486
2487 #. type: Plain text
2488 #: build/C/man3/lio_listio.3:128
2489 msgid ""
2490 "If I<mode> is B<LIO_WAIT>, B<lio_listio>()  returns 0 when all of the I/O "
2491 "operations have completed successfully.  Otherwise, -1 is returned, and "
2492 "I<errno> is set to indicate the error."
2493 msgstr ""
2494
2495 #. type: Plain text
2496 #: build/C/man3/lio_listio.3:146
2497 msgid ""
2498 "The return status from B<lio_listio>()  provides information only about the "
2499 "call itself, not about the individual I/O operations.  One or more of the "
2500 "I/O operations may fail, but this does not prevent other operations "
2501 "completing.  The status of individual I/O operations in I<aiocb_list> can be "
2502 "determined using B<aio_error>(3).  When an operation has completed, its "
2503 "return status can be obtained using B<aio_return>(3).  Individual I/O "
2504 "operations can fail for the reasons described in B<aio_read>(3)  and "
2505 "B<aio_write>(3)."
2506 msgstr ""
2507
2508 #. type: Plain text
2509 #: build/C/man3/lio_listio.3:150
2510 msgid "The B<lio_listio>()  function may fail for the following reasons:"
2511 msgstr ""
2512
2513 #.  Doesn't happen in glibc(?)
2514 #. type: Plain text
2515 #: build/C/man3/lio_listio.3:161
2516 msgid ""
2517 "The number of I/O operations specified by I<nitems> would cause the limit "
2518 "B<AIO_MAX> to be exceeded."
2519 msgstr ""
2520
2521 #.  Doesn't happen in glibc(?)
2522 #. type: Plain text
2523 #: build/C/man3/lio_listio.3:169
2524 msgid "I<mode> is invalid, or I<nitems> exceeds the limit B<AIO_LISTIO_MAX>."
2525 msgstr ""
2526
2527 #. type: Plain text
2528 #: build/C/man3/lio_listio.3:178
2529 msgid ""
2530 "I<mode> was B<LIO_WAIT> and a signal was caught before all I/O operations "
2531 "completed.  (This may even be one of the signals used for asynchronous I/O "
2532 "completion notification.)"
2533 msgstr ""
2534
2535 #. type: TP
2536 #: build/C/man3/lio_listio.3:178
2537 #, no-wrap
2538 msgid "B<EIO>"
2539 msgstr ""
2540
2541 #.  e.g., ioa_reqprio or aio_lio_opcode was invalid
2542 #. type: Plain text
2543 #: build/C/man3/lio_listio.3:186
2544 msgid ""
2545 "One of more of the operations specified by I<aiocb_list> failed.  The "
2546 "application can check the status of each operation using B<aio_return>(3)."
2547 msgstr ""
2548
2549 #. type: Plain text
2550 #: build/C/man3/lio_listio.3:201
2551 msgid ""
2552 "If B<lio_listio>()  fails with the error B<EAGAIN>, B<EINTR>, or B<EIO>, "
2553 "then some of the operations in I<aiocb_list> may have been initiated.  If "
2554 "B<lio_listio>()  fails for any other reason, then none of the I/O operations "
2555 "has been initiated."
2556 msgstr ""
2557
2558 #. type: Plain text
2559 #: build/C/man3/lio_listio.3:205
2560 msgid "The B<lio_listio>()  function is available since glibc 2.1."
2561 msgstr ""
2562
2563 #.  or the control block of the operation
2564 #. type: Plain text
2565 #: build/C/man3/lio_listio.3:215
2566 msgid ""
2567 "It is a good idea to zero out the control blocks before use.  The control "
2568 "blocks must not be changed while the I/O operations are in progress.  The "
2569 "buffer areas being read into or written from must not be accessed during the "
2570 "operations or undefined results may occur.  The memory areas involved must "
2571 "remain valid."
2572 msgstr ""
2573
2574 #. type: Plain text
2575 #: build/C/man3/lio_listio.3:227
2576 msgid ""
2577 "B<aio_cancel>(3), B<aio_error>(3), B<aio_fsync>(3), B<aio_return>(3), "
2578 "B<aio_suspend>(3), B<aio_write>(3), B<aio>(7)"
2579 msgstr ""