OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / mkfifoat.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Japanese Version Copyright (c) 2006 Yuichi SATO
26 .\"         all rights reserved.
27 .\" Translated 2006-08-04 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.36
28 .\"
29 .TH MKFIFOAT 3 2009-12-13 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH Ì¾Á°
32 .\"O mkfifoat \- make a FIFO (named pipe) relative to a directory file descriptor
33 mkfifoat \- ¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤«¤é¤ÎÁêÂаÌÃ֤ˠFIFO (̾Á°ÉÕ¤­¥Ñ¥¤¥×) ¤òºî¤ë
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .nf
37 .\"O .B #include <fcntl.h>           /* Definition of AT_* constants */
38 .B #include <fcntl.h>           /* AT_* Äê¿ô¤ÎÄêµÁ */
39 .B #include <sys/stat.h>
40 .sp
41 .BI "int mkfifoat(int " dirfd ", const char *" pathname ", mode_t " mode );
42 .fi
43 .sp
44 .in -4n
45 .\"O Feature Test Macro Requirements for glibc (see
46 .\"O .BR feature_test_macros (7)):
47 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
48 .RB ( feature_test_macros (7)
49 »²¾È):
50 .in
51 .sp
52 .BR mkfifoat ():
53 .br
54 .\"O Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
55 glibc 2.10 °Ê¹ß: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
56 .br
57 .\"O Before glibc 2.10:
58 glibc 2.10 ¤è¤êÁ°:
59 _ATFILE_SOURCE
60 .\"O .SH DESCRIPTION
61 .SH ÀâÌÀ
62 .\"O The
63 .\"O .BR mkfifoat ()
64 .\"O system call operates in exactly the same way as
65 .\"O .BR mkfifo (3),
66 .\"O except for the differences described in this manual page.
67 .BR mkfifoat ()
68 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¤³¤Î man ¥Ú¡¼¥¸¤ÇÀâÌÀ¤·¤Æ¤¤¤ë°ã¤¤¤¬¤¢¤ë°Ê³°¤Ï¡¢
69 .BR mkfifo (3)
70 ¤ÈÁ´¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
71
72 .\"O If the pathname given in
73 .\"O .I pathname
74 .\"O is relative, then it is interpreted relative to the directory
75 .\"O referred to by the file descriptor
76 .\"O .I dirfd
77 .\"O (rather than relative to the current working directory of
78 .\"O the calling process, as is done by
79 .\"O .BR mkfifo (3)
80 .\"O for a relative pathname).
81 .I pathname
82 ¤Ç»ØÄꤵ¤ì¤ë¥Ñ¥¹Ì¾¤¬ÁêÂХѥ¹Ì¾¤Ç¤¢¤ë¾ì¹ç¡¢
83 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿
84 .I dirfd
85 ¤Ç»²¾È¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë
86 .RB ( mkfifo (3)
87 ¤Ç¤Ï¡¢ÁêÂХѥ¹¤Ï¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
88 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤Ê¤ë)¡£
89
90 .\"O If
91 .\"O .I pathname
92 .\"O is relative and
93 .\"O .I dirfd
94 .\"O is the special value
95 .\"O .BR AT_FDCWD ,
96 .\"O then
97 .\"O .I pathname
98 .\"O is interpreted relative to the current working
99 .\"O directory of the calling process (like
100 .\"O .BR mkfifo (3)).
101 .I pathname
102 ¤¬ÁêÂХѥ¹¤Ç¤¢¤ê¡¢¤«¤Ä
103 .I dirfd
104 ¤¬ÆÃÊ̤ÊÃÍ
105 .B AT_FDCWD
106 ¤Ç¤¢¤ë¾ì¹ç¡¢
107 .I pathname
108 ¤Ï
109 .RB ( mkfifo (3)
110 ¤ÈƱ¤¸¤è¤¦¤Ë) ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
111 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
112
113 .\"O If
114 .\"O .I pathname
115 .\"O is absolute, then
116 .\"O .I dirfd
117 .\"O is ignored.
118 .I pathname
119 ¤¬ÀäÂХѥ¹¤Ç¤¢¤ë¾ì¹ç¡¢
120 .I dirfd
121 ¤Ï̵»ë¤µ¤ì¤ë¡£
122 .\"O .SH "RETURN VALUE"
123 .SH ÊÖ¤êÃÍ
124 .\"O On success,
125 .\"O .BR mkfifoat ()
126 .\"O returns 0.
127 À®¸ù¤·¤¿¾ì¹ç¡¢
128 .BR mkfifoat ()
129 ¤Ï 0 ¤òÊÖ¤¹¡£
130 .\"O On error, \-1 is returned and
131 .\"O .I errno
132 .\"O is set to indicate the error.
133 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
134 .I errno
135 ¤Ë¤Ï¥¨¥é¡¼¤ò¼¨¤¹Ãͤ¬ÀßÄꤵ¤ì¤ë¡£
136 .\"O .SH ERRORS
137 .SH ¥¨¥é¡¼
138 .\"O The same errors that occur for
139 .\"O .BR mkfifo (3)
140 .\"O can also occur for
141 .\"O .BR mkfifoat ().
142 .BR mkfifo (3)
143 ¤ÈƱ¤¸¥¨¥é¡¼¤¬
144 .BR mkfifoat ()
145 ¤Ç¤âµ¯¤³¤ë¡£
146 .\"O The following additional errors can occur for
147 .\"O .BR mkfifoat ():
148 .BR mkfifoat ()
149 ¤Ç¤Ï¡¢¤½¤Î¾¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë:
150 .TP
151 .B EBADF
152 .\"O .I dirfd
153 .\"O is not a valid file descriptor.
154 .I dirfd
155 ¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
156 .TP
157 .B ENOTDIR
158 .\"O .I pathname
159 .\"O is a relative path and
160 .\"O .I dirfd
161 .\"O is a file descriptor referring to a file other than a directory.
162 .I pathname
163 ¤¬ÁêÂХѥ¹¤Ç¡¢¤«¤Ä
164 .I dirfd
165 ¤¬¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤¢¤ë¡£
166 .\"O .SH VERSIONS
167 .SH ¥Ð¡¼¥¸¥ç¥ó
168 .\"O .BR mkfifoat ()
169 .\"O was added to glibc in version 2.4.
170 .BR mkfifoat ()
171 ¤Ï glibc ¤Î¥Ð¡¼¥¸¥ç¥ó 2.4 ¤ÇÄɲ䵤줿¡£
172 .\"O It is implemented using
173 .\"O .BR mknod (2),
174 .\"O available on Linux since kernel 2.6.16.
175 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
176 ¥«¡¼¥Í¥ë 2.6.16 °Ê¹ß¤Î Linux ¤ÇÍøÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿
177 .BR mknod (2)
178 ¤ò»È¤Ã¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£
179 .\"O .SH "CONFORMING TO"
180 .SH ½àµò
181 POSIX.1-2008.
182 .\"O .SH NOTES
183 .SH Ãí°Õ
184 .\"O See
185 .\"O .BR openat (2)
186 .\"O for an explanation of the need for
187 .\"O .BR mkfifoat ().
188 .BR mkfifoat ()
189 ¤¬É¬ÍפÊÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
190 .BR openat (2)
191 ¤ò»²¾È¤¹¤ë¤³¤È¡£
192 .\"O .SH "SEE ALSO"
193 .SH ´ØÏ¢¹àÌÜ
194 .BR openat (2),
195 .BR mkfifo (3),
196 .BR path_resolution (7)