OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / aio_read.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Mon Jul  5 00:46:45 JST 2004
26 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
27 .\"
28 .TH AIO_READ 3 2003-11-14  "" "Linux Programmer's Manual"
29 .SH Ì¾Á°
30 aio_read \- ÈóƱ´ü¤ÇÆɤ߹þ¤à
31 .SH ½ñ¼°
32 .B "#include <aio.h>"
33 .sp
34 .BI "int aio_read(struct aiocb *" aiocbp );
35 .sp
36 \fI\-lrt\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
37 .SH ÀâÌÀ
38 .BR aio_read ()
39 ´Ø¿ô¤ÏÈóƱ´ü¤Î "n = read(fd, buf, count)" ¤ò¥ê¥¯¥¨¥¹¥È¤¹¤ë¡£
40 ¤³¤³¤Ç fd, buf, count ¤Ï¡¢¤½¤ì¤¾¤ì
41 .IR aiocbp\->aio_fildes ,
42 .IR aiocbp\->aio_buf ,
43 .I aiocbp\->aio_nbytes
44 ¤ÇÍ¿¤¨¤é¤ì¤ë¡£
45 ÊÖ¤êÃÍ (return status) n ¤Ï¡¢´°Î»»þ¤Ë
46 .BR aio_return (3)
47 ¤ò»È¤Ã¤Æ¼èÆÀ¤Ç¤­¤ë¡£
48 .LP
49 ¥Ç¡¼¥¿¤Ï¡¢¥«¥ì¥ó¥È¤Î¥Õ¥¡¥¤¥ë°ÌÃ֤˴ط¸¤Ê¤¯¡¢ÀäÂÐ¥Õ¥¡¥¤¥ë¥ª¥Õ¥»¥Ã¥È
50 .I aiocbp\->aio_offset
51 ¤ò³«»ÏÅÀ¤È¤·¤ÆÆɤ߹þ¤Þ¤ì¤ë¡£
52 ¤³¤Î¥ê¥¯¥¨¥¹¥È¸å¤Î¡¢¥«¥ì¥ó¥È¤Î¥Õ¥¡¥¤¥ë°ÌÃ֤ϵ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
53 .LP
54 ¡ÖÈóƱ´ü¡×¤È¤Ï¡Ö¥ê¥¯¥¨¥¹¥È¤¬¥­¥å¡¼¤ËÆþ¤ì¤é¤ì¤¿¤é¡¢¤³¤Î¸Æ¤Ó½Ð¤·¤Ï¤¹¤°¤ËÊÖ¤ë¡×
55 ¤È¤¤¤¦¤³¤È¤Ç¤¢¤ë¡£
56 ¸Æ¤Ó½Ð¤·¤«¤éÌá¤Ã¤¿»þ¤Ë¡¢Æɤ߹þ¤ß¤Ï´°Î»¤·¤Æ¤¤¤ë¤«¤âÃΤì¤Ê¤¤¤·¡¢
57 ´°Î»¤·¤Æ¤¤¤Ê¤¤¤«¤âÃΤì¤Ê¤¤¡£
58 .BR aio_error (3)
59 ¤ò»È¤¦¤³¤È¤Ç´°Î»¤·¤¿¤«¤ò¥Æ¥¹¥È¤Ç¤­¤ë¡£
60 .LP
61 .B _POSIX_PRIORITIZED_IO
62 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Æ¡¢
63 ¤«¤Ä¥Õ¥¡¥¤¥ë¤¬¤³¤ì¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢
64 ÈóƱ´üÁàºî¤Ï¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤«¤é
65 .I aiocbp\->aio_reqprio
66 ¤ò°ú¤¤¤¿Í¥ÀèÅÙ¤ÇÅÐÏ¿ (submit) ¤µ¤ì¤ë¡£
67 .LP
68 ¥Õ¥£¡¼¥ë¥É
69 .I aiocbp\->aio_lio_opcode
70 ¤Ï̵»ë¤µ¤ì¤ë¡£
71 .LP
72 ºÇÂ祪¥Õ¥»¥Ã¥È¤òĶ¤¨¤¿Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤«¤é¤Ï¡¢²¿¤â¥Ç¡¼¥¿¤¬Æɤ߹þ¤Þ¤ì¤Ê¤¤¡£
73 .SH ÊÖ¤êÃÍ
74 À®¸ù¤·¤¿¾ì¹ç¡¢0 ¤¬ÊÖ¤µ¤ì¤ë¡£
75 ¥¨¥é¡¼¤Î¾ì¹ç¡¢¥ê¥¯¥¨¥¹¥È¤Ï¥­¥å¡¼¤ËÆþ¤ì¤é¤ì¤º¡¢
76 \-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
77 .I errno
78 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
79 ¥¨¥é¡¼¤ÏºÇ½é¤Ë¸¡ÃΤµ¤ì¤¿¸å¤Ç¡¢
80 (¾õÂÖ \-1 ¤òÊÖ¤¹)
81 .BR aio_return (3)
82 ¤È
83 .RI ( errno
84 ¤Ç¼èÆÀ¤Ç¤­¤ë
85 .B EBADF
86 ¤Î¤è¤¦¤Ê¥¨¥é¡¼¾õÂÖ¤òÊÖ¤¹)
87 .BR aio_error (3)
88 ¤ÇÊó¹ð¤µ¤ì¤ë¤À¤í¤¦¡£
89 .SH ¥¨¥é¡¼
90 .TP
91 .B EAGAIN
92 ¥ê¥½¡¼¥¹¤¬Â­¤ê¤Ê¤¤¡£
93 .TP
94 .B EBADF
95 .I aio_fildes
96 ¤ÏÆɤ߹þ¤ß¤Î¤¿¤á¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤¿Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
97 .TP
98 .B EINVAL
99 .IR aio_offset ,
100 .IR aio_reqprio ,
101 .I aio_nbytes
102 ¤Î¤¦¤Á 1 ¤Ä°Ê¾å¤¬Ìµ¸ú¤Ç¤¢¤ë¡£
103 .TP
104 .B ENOSYS
105 ¤³¤Î´Ø¿ô¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
106 .TP
107 .B EOVERFLOW
108 ¥Õ¥¡¥¤¥ë¤¬Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤Ç¤¢¤ê¡¢
109 ¥Õ¥¡¥¤¥ë¤Î½ªÃ¼¤ÎÁ°¤«¤éÆɤ߹þ¤ß¤ò³«»Ï¤·¤Æ¡¢
110 ¾¯¤Ê¤¯¤È¤â 1 ¥Ð¥¤¥È¤òÆɤ߹þ¤â¤¦¤È¤·¤¿¡£
111 ¤·¤«¤·³«»Ï°ÌÃÖ¤¬¤³¤Î¥Õ¥¡¥¤¥ë¤ÎºÇÂ祪¥Õ¥»¥Ã¥È¤òĶ¤¨¤Æ¤¤¤¿¡£
112 .SH ½àµò
113 POSIX.1-2001.
114 .SH Ãí°Õ
115 »ÈÍѤ¹¤ëÁ°¤ËÀ©¸æ¥Ö¥í¥Ã¥¯¤ò 0 ¤Ë¤·¤Æ¤ª¤¯¤Î¤Ï¡¢¤è¤¤¹Í¤¨¤Ç¤¢¤ë¡£
116 ¤³¤ÎÀ©¸æ¥Ö¥í¥Ã¥¯¤Ï¡¢Æɤ߹þ¤ßÁàºî¤¬¿Ê¹Ô¤·¤Æ¤¤¤ë´Ö¤ÏÊѹ¹¤¹¤Ù¤­¤Ç¤Ê¤¤¡£
117 Æɤ߹þ¤Þ¤ì¤ë¥Ð¥Ã¥Õ¥¡Îΰè¤Ï
118 .\" ¤Þ¤¿¤ÏÁàºî¤ÎÀ©¸æ¥Ö¥í¥Ã¥¯¤Ï
119 Áàºî¤ÎºÇÃæ¤Ë¥¢¥¯¥»¥¹¤¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
120 ¤µ¤â¤Ê¤¤¤Èµ¯¤³¤ë·ë²Ì¤¬ÉÔÄê¤Ë¤Ê¤ë¡£
121 ¤³¤ì¤Ë´Þ¤Þ¤ì¤ë¥á¥â¥êÎΰè¤Ï¡¢Í­¸ú¤Ê¤Þ¤Þ¤Ë¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
122 .SH ´ØÏ¢¹àÌÜ
123 .BR aio_cancel (3),
124 .BR aio_error (3),
125 .BR aio_fsync (3),
126 .BR aio_return (3),
127 .BR aio_suspend (3),
128 .BR aio_write (3)