OSDN Git Service

308188d2ebe64c31edcddc9e0d13bc4adf98b7f8
[linuxjm/LDP_man-pages.git] / obsolete / man3 / readv.3
1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
11 .\" 
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 18:34:44 1993 by Rik Faith (faith@cs.unc.edu)
24 .\"
25 .\" Japanese Version Copyright (c) 1998 Shigeru Tada
26 .\"     all rights reserved.
27 .\" Translated Mon, 25 May 1998 
28 .\"     by Shigeru Tada <stada@mech.titech.ac.jp>
29 .\"
30 .TH READV 3  "April 25, 1993" "GNU" "Linux Programmer's Manual"
31 .SH Ì¾Á°
32 readv, writev \- Ê£¿ô¤Î¥Ð¥Ã¥Õ¥¡¡¼¤òÍѤ¤¤¿¥Õ¥¡¥¤¥ëÆþ½ÐÎÏ
33 .SH ½ñ¼°
34 .nf
35 .B #include <sys/uio.h>
36 .sp
37 .BI "int readv(int " filedes ", const struct iovec *" vector ,
38 .BI "          size_t " count );
39 .sp
40 .BI "int writev(int " filedes ", const struct iovec *" vector ,
41 .BI "          size_t " count );
42 .fi
43 .SH ÀâÌÀ
44 .B readv()
45 ´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼\fIfiledes\fP¤ËÏ¢·ë¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤«¤é
46 \fIcount\fP¥Ö¥í¥Ã¥¯¤ò¡¢\fIvector\fP¤Ç»ØÄꤵ¤ì¤¿Ê£¿ô¤Î¥Ð¥Ã¥Õ¥¡¡¼¤ËÆÉ
47 ¤ß¹þ¤à¡£
48 .PP
49 \fBwritev()\fP´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼\fIfiledes\fP
50 ¤ËÏ¢·ë¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë\fIvector\fP¥Ý¥¤¥ó¥¿¤Ç»ØÄꤵ¤ì¤¿ºÇÂç
51 \fIcount\fP¥Ö¥í¥Ã¥¯¤Þ¤Ç¤ò¥Ð¥Ã¥Õ¥¡¡¼¤«¤é½ñ¤­¹þ¤à¡£
52 .PP
53 .I vector
54 ¥Ý¥¤¥ó¥¿¤Ï
55 .PP
56 .br
57 .nf
58 .in 10
59 struct iovec {
60 .in 14
61 void *iov_base;   /* Starting address */
62 size_t iov_len;   /* Number of bytes */
63 .in 10
64 } ;
65 .fi
66 .PP
67 ¤Î¤è¤¦¤Ë\fB<sys/uio.h>\fP¤ÎÃæ¤ÇÄêµÁ¤µ¤ì¤ë¹½Â¤ÂÎ\fBiovec\fP¤ò»Ø¤¹¡£
68 .PP
69 ¥Ð¥Ã¥Õ¥¡¤Ï
70 .IR "vector[0]" ", " vector[1] ", ... " "vector[count-1]" .
71 ¤Î½ç¤Ç½èÍý¤µ¤ì¤ë¡£
72 .PP
73 \fBreadv()\fP´Ø¿ô¤ÏÊ£¿ô¤Î¥Ð¥Ã¥Õ¥¡¡¼¤ËÆɤ߹þ¤à¤È¤¤¤¦¤³¤È¤ò½ü¤±¤Ð¡¢
74 \fBread(2)\fP¤È¤Þ¤Ã¤¿¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
75 .PP
76 \fBwritev()\fP´Ø¿ô¤ÏÊ£¿ô¤Î¥Ð¥Ã¥Õ¥¡¡¼¤«¤é½ñ¤­¹þ¤à¤È¤¤¤¦¤³¤È¤ò½ü¤±¤Ð¡¢
77 \fBwrite(2)\fP¤È¤Þ¤Ã¤¿¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
78 .SH ÊÖ¤êÃÍ
79 \fBreadv()\fP´Ø¿ô¤Ï½ñ¤­¹þ¤Þ¤ì¤¿¥Ð¥¤¥È¿ô¤òÊÖ¤¹¡£
80 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
81 \fBwritev()\fP´Ø¿ô¤ÏÆɤ߹þ¤Þ¤ì¤¿¥Ð¥¤¥È¿ô¤òÊÖ¤¹¡£
82 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
83 .SH ¥¨¥é¡¼
84 \fBreadv()\fP¤È\fBwritev()\fP´Ø¿ô¤Ï¼ºÇÔ¤·¤¿¾ì¹ç\fIerrno\fP¤ò°Ê²¼¤ÎÃͤË
85 ÀßÄꤹ¤ë¡£
86 .TP
87 .B EBADDF
88 \fI fd\fP¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤Ç¤Ï¤Ê¤¤
89 .TP
90 .B EINVAL
91 \fI fd\fP¤¬¡Ê\fBR readv()\fP¤Î¾ì¹ç¡ËÆɤ߹þ¤á¤Ê¤¤¤«¡¢
92 ¡Ê\fBR writev()\fP¤Î¾ì¹ç¡Ë½ñ¤­¹þ¤á¤Ê¤¤¡£
93 .TP
94 .B EFAULT
95 \fI buf\fP¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤Ë¤¢¤ë¡£
96 .TP
97 .B EAGAIN 
98 \fB open()\fP´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹»þ¤ËÈóÄä»ß(Non-blocking) I/O ¤¬ÁªÂò¤µ¤ì¤Æ¤ª¤ê¡¢
99 ¤¹¤°¤Ë¥Ç¡¼¥¿¤¬Æɤ߹þ¤ß²Äǽ¤Ç¤Ï¤Ê¤«¤Ã¤¿¡£
100 .TP
101 .B EINTR
102 ¥Ç¡¼¥¿¤¬°ú¤­ÅϤµ¤ì¤ëÁ°¤Ë¡¢Æɤߤ³¤ß¤¢¤ë¤¤¤Ï½ñ¤­¹þ¤ß¤Ø¤Î
103 ³ä¤ê¹þ¤ß¤¬¤ª¤³¤Ã¤¿¡£
104 .SH ½àµò
105 ÉÔÌÀ
106 .SH ¥Ð¥°
107 \fBR readv() "¤¢¤ë¤¤¤Ï" writev()\fP¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤ò
108 Áàºî¤¹¤ë´Ø¿ô¤ò¡¢stdio¥é¥¤¥Ö¥é¥ê¡¼¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë´Ø¿ô¤ÈÁȤ߹ç¤ï¤»¤Æ¸Æ
109 ¤Ó½Ð¤¹¤³¤È¤Ï¿ä¾©¤Ç¤­¤Ê¤¤¡£¤½¤Î·ë²Ì¤ÏÄêµÁ¤µ¤ì¤Ê¤¤¤â¤Î¤Ç¤¢¤ê¡¤¤ª¤½¤é¤¯
110 ´üÂÔ¤·¤¿·ë²Ì¤ÏÆÀ¤é¤ì¤Ê¤¤¡£
111 .SH ´ØÏ¢¹àÌÜ
112 .BR read (2),
113 .BR write (2)