OSDN Git Service

078a27f08e8779242b2572f1683b9e6e6052ee3d
[linuxjm/LDP_man-pages.git] / draft / man2 / mknod.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
4 .\"                               1993 Michael Haardt
5 .\"                               1993,1994 Ian Jackson.
6 .\" You may distribute it under the terms of the GNU General
7 .\" Public License. It comes with NO WARRANTY.
8 .\"
9 .\" Modified 1996-08-18 by urs
10 .\" Modified 2003-04-23 by Michael Kerrisk
11 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
12 .\"
13 .\"
14 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
15 .\"         all rights reserved.
16 .\" Translated 1997-06-26, SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
17 .\" Updated & Modified 1999-03-01, NAKANO Takeo <nakano@apm.seikei.ac.jp>
18 .\" Updated & Modified 2001-06-04, Yuichi SATO <ysato@h4.dion.ne.jp>
19 .\" Updated & Modified 2003-07-26, Yuichi SATO <ysato444@yahoo.co.jp>
20 .\" Updated & Modified 2004-12-31, Yuichi SATO
21 .\" Updated 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
22 .\"
23 .\"WORD:        node            ¥Î¡¼¥É
24 .\"WORD:        permission      µö²Ä°À­
25 .\"WORD:        resolve         (¥Ñ¥¹Ì¾¤ò) ²ò·è¤¹¤ë
26 .\"
27 .TH MKNOD 2 2008-12-01 "Linux" "Linux Programmer's Manual"
28 .\"O .SH NAME
29 .SH Ì¾Á°
30 .\"O mknod \- create a special or ordinary file
31 mknod \- Æüì¥Õ¥¡¥¤¥ë¤äÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë
32 .\"O .SH SYNOPSIS
33 .SH ½ñ¼°
34 .nf
35 .B #include <sys/types.h>
36 .B #include <sys/stat.h>
37 .B #include <fcntl.h>
38 .B #include <unistd.h>
39 .sp
40 .BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev );
41 .fi
42 .sp
43 .in -4n
44 .\"O Feature Test Macro Requirements for glibc (see
45 .\"O .BR feature_test_macros (7)):
46 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
47 .RB ( feature_test_macros (7)
48 »²¾È):
49 .in
50 .sp
51 .BR mknod ():
52 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
53 .\"O .SH DESCRIPTION
54 .SH ÀâÌÀ
55 .\"O The system call
56 .\"O .BR mknod ()
57 .\"O creates a file system node (file, device special file or
58 .\"O named pipe) named
59 .\"O .IR pathname ,
60 .\"O with attributes specified by
61 .\"O .I mode
62 .\"O and
63 .\"O .IR dev .
64 ¥·¥¹¥Æ¥à¥³¡¼¥ë
65 .BR mknod ()
66 ¤Ï
67 .I pathname
68 ¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¡¦¥Î¡¼¥É
69 (¥Õ¥¡¥¤¥ë¡¢¥Ç¥Ð¥¤¥¹¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¡¢Ì¾Á°ÉÕ¤­¥Ñ¥¤¥×) ¤ò¡¢
70 °À­
71 .I mode
72 ¤È
73 .I dev
74 ¤Î»ØÄê¤Ë¤·¤¿¤¬¤Ã¤ÆºîÀ®¤¹¤ë¡£
75
76 .\"O The
77 .\"O .I mode
78 .\"O argument specifies both the permissions to use and the type of node
79 .\"O to be created.
80 .I mode
81 °ú¤­¿ô¤Ë¤Ï¡¢ºîÀ®¤¹¤ë¥Î¡¼¥É¤Îµö²Ä°À­ (permission) ¤È¥¿¥¤¥×¤ò»ØÄꤹ¤ë¡£
82 .\"O It should be a combination (using bitwise OR) of one of the file types
83 .\"O listed below and the permissions for the new node.
84 .I mode
85 ¤Î»ØÄê¤Ï°Ê²¼¤Ë¤¢¤²¤ë¥Õ¥¡¥¤¥ë¥¿¥¤¥×¤Î¤¦¤Á¤Î 1 ¤Ä¤È¡¢
86 µö²Ä°À­¤ÎÁȹ礻 (¥Ó¥Ã¥È¤´¤È¤Î OR ¤ò»ÈÍÑ) ¤Ç¹Ô¤¦¡£
87
88 .\"O The permissions are modified by the process's
89 .\"O .I umask
90 .\"O in the usual way: the permissions of the created node are
91 .\"O .IR "(mode & ~umask)" .
92 µö²Ä°À­¤ÏÄ̾ïÄ̤ꡢ¥×¥í¥»¥¹¤Î
93 .I umask
94 ¤Ë¤è¤Ã¤Æ½¤Àµ¤µ¤ì¡¢ºîÀ®¤µ¤ì¤¿¥Î¡¼¥É¤Îµö²Ä°À­¤Ï
95 .I "(mode & ~umask)"
96 ¤È¤Ê¤ë¡£
97
98 .\"O The file type must be one of
99 .\"O .BR S_IFREG ,
100 .\"O .BR S_IFCHR ,
101 .\"O .BR S_IFBLK ,
102 .\"O .B S_IFIFO
103 .\"O or
104 .\"O .B S_IFSOCK
105 .\"O .\" (S_IFSOCK since Linux 1.2.4)
106 .\"O to specify a regular file (which will be created empty), character
107 .\"O special file, block special file, FIFO (named pipe), or Unix domain socket,
108 .\"O respectively.
109 .\"O (Zero file type is equivalent to type
110 .\"O .BR S_IFREG .)
111 ¥Õ¥¡¥¤¥ë¥¿¥¤¥×¤Ë¤Ï
112 .BR S_IFREG ,
113 .BR S_IFCHR ,
114 .BR S_IFBLK ,
115 .BR S_IFIFO ,
116 .B S_IFSOCK
117 .\" (S_IFSOCK ¤Ï Linux 1.2.4 ¤«¤é¸ºß¤¹¤ë)
118 ¤Î¤¤¤º¤ì¤«¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
119 ¤½¤ì¤¾¤ì½ç¤Ë¡¢Ä̾ï¤Î¥Õ¥¡¥¤¥ë (¶õ¤Î¥Õ¥¡¥¤¥ë¤È¤·¤ÆºîÀ®¤µ¤ì¤ë)¡¦
120 ¥­¥ã¥é¥¯¥¿¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¡¦¥Ö¥í¥Ã¥¯¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¡¦
121 FIFO (̾Á°ÉÕ¤­¥Ñ¥¤¥×)¡¦Unix ¥É¥á¥¤¥ó¥½¥±¥Ã¥È¤Ç¤¢¤ë
122 (¥Õ¥¡¥¤¥ë¥¿¥¤¥× 0 ¤Ï
123 .B S_IFREG
124 ¤ÈƱ¤¸¤Ç¤¢¤ë)¡£
125
126 .\"O If the file type is
127 .\"O .B S_IFCHR
128 .\"O or
129 .\"O .B S_IFBLK
130 .\"O then
131 .\"O .I dev
132 .\"O specifies the major and minor numbers of the newly created device
133 .\"O special file
134 .\"O .RB ( makedev (3)
135 .\"O may be useful to build the value for
136 .\"O .IR dev );
137 .\"O otherwise it is ignored.
138 ¥Õ¥¡¥¤¥ë¥¿¥¤¥×¤¬
139 .B S_IFCHR
140 ¤Þ¤¿¤Ï
141 .B S_IFBLK
142 ¤Î¤È¤­¡¢
143 .I dev
144 ¤Ë¤ÏºîÀ®¤¹¤ë¥Ç¥Ð¥¤¥¹¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Î¥á¥¸¥ã¡¼ÈÖ¹æ¤È
145 ¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤ò»ØÄꤹ¤ë
146 .RB ( makedev (3)
147 ¤Ï
148 .I dev
149 ¤Î¤³¤ì¤é¤ÎÈÖ¹æ¤òºîÀ®¤¹¤ëºÝ¤ËÌòΩ¤Ä¤À¤í¤¦)¡£
150 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï
151 .I dev
152 ¤Ï̵»ë¤µ¤ì¤ë¡£
153
154 .\"O If
155 .\"O .I pathname
156 .\"O already exists, or is a symbolic link, this call fails with an
157 .\"O .B EEXIST
158 .\"O error.
159 .I pathname
160 ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢¤Þ¤¿¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¾ì¹ç¡¢
161 ¤³¤Î¸Æ¤Ó½Ð¤·¤Ï
162 .B EEXIST
163 ¥¨¥é¡¼¤Ç¼ºÇÔ¤¹¤ë¡£
164
165 .\"O The newly created node will be owned by the effective user ID of the
166 .\"O process.
167 .\"O If the directory containing the node has the set-group-ID
168 .\"O bit set, or if the file system is mounted with BSD group semantics, the
169 .\"O new node will inherit the group ownership from its parent directory;
170 .\"O otherwise it will be owned by the effective group ID of the process.
171 ¿·¤·¤¯ºîÀ®¤µ¤ì¤¿¥Î¡¼¥É¤Î½êÍ­¼Ô¤Ï¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶ ID ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
172 ¿·¤¿¤Ëºî¤é¤ì¤¿¥Î¡¼¥É¤òÊÝ»ý¤¹¤ë
173 ¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Î set-group-ID ¥Ó¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤¿¤ê¡¢
174 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ BSD ¤Î¥°¥ë¡¼¥×¥»¥Þ¥ó¥Æ¥£¥¯¥¹¤Ë¤·¤¿¤¬¤Ã¤Æ
175 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¿·¤·¤¤¥Î¡¼¥É¤Î¥°¥ë¡¼¥×½êÍ­¸¢¤Ï¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Î
176 ¥°¥ë¡¼¥×½êÍ­¸¢¤ò·Ñ¾µ¤¹¤ë (¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤ÈƱ¤¸¤Ë¤Ê¤ë)¡£
177 ¤Þ¤¿¡¢¤½¤¦¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¤Î½êÍ­¥°¥ë¡¼¥×¤Ï¥×¥í¥»¥¹¤Î¼Â¸ú¥°¥ë¡¼¥× ID ¤È¤Ê¤ë¡£
178 .\"O .SH RETURN VALUE
179 .SH ÊÖ¤êÃÍ
180 .\"O .BR mknod ()
181 .\"O returns zero on success, or \-1 if an error occurred (in which case,
182 .\"O .I errno
183 .\"O is set appropriately).
184 .BR mknod ()
185 ¤ÏÀ®¸ù¤·¤¿¾ì¹ç 0 ¤ò¡¢¼ºÇÔ¤·¤¿¾ì¹ç \-1 ¤òÊÖ¤¹
186 (¼ºÇÔ¤·¤¿¾ì¹ç
187 .I errno
188 ¤¬¥¨¥é¡¼¤ÎÆâÍƤˤ·¤¿¤¬¤Ã¤Æ¥»¥Ã¥È¤µ¤ì¤ë)¡£
189 .\"O .SH ERRORS
190 .SH ¥¨¥é¡¼
191 .TP
192 .B EACCES
193 .\"O The parent directory does not allow write permission to the process,
194 .\"O or one of the directories in the path prefix of
195 .\"O .I pathname
196 .\"O did not allow search permission.
197 .\"O (See also
198 .\"O .BR path_resolution (7).)
199 ¥×¥í¥»¥¹¤¬¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î½ñ¤­¹þ¤ßµö²Ä¤ò»ý¤¿¤Ê¤¤¡£
200 ¤â¤·¤¯¤Ï¥Ñ¥¹Ì¾
201 .I pathname
202 Ãæ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤Î¤É¤ì¤«¤Ë¸¡º÷µö²Ä°À­¤¬Ìµ¤¤
203 .RB ( path_resolution (7)
204 ¤â»²¾È¤¹¤ë¤³¤È)¡£
205 .TP
206 .B EEXIST
207 .\"O .I pathname
208 .\"O already exists.
209 .\"O This includes the case where
210 .\"O .I pathname
211 .\"O is a symbolic link, dangling or not.
212 .I pathname
213 ¤¬´û¤Ë¸ºß¤¹¤ë¡£
214 ¤³¤ì¤Ë¤Ï
215 .I pathname
216 ¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤Ç¤¢¤ë¾ì¹ç¤â´Þ¤Þ¤ì¤ë
217 (¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤¬²õ¤ì¤Æ¤¤¤ë¤« (dangling) ¤É¤¦¤«¤Ï´Ø·¸¤Ê¤¤)¡£
218 .TP
219 .B EFAULT
220 .\"O .IR pathname " points outside your accessible address space."
221 .I pathname
222 ¤¬¤½¤Î¥×¥í¥»¥¹¤Î¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
223 .TP
224 .B EINVAL
225 .\"O .I mode
226 .\"O requested creation of something other than a regular file, device
227 .\"O special file, FIFO or socket.
228 .I mode
229 ¤¬Ä̾ï¤Î¥Õ¥¡¥¤¥ë¡¦¥Ç¥Ð¥¤¥¹¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¡¦FIFO¡¦¥½¥±¥Ã¥È°Ê³°¤ò
230 ºîÀ®¤¹¤ë¤è¤¦¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¡£
231 .TP
232 .B ELOOP
233 .\"O Too many symbolic links were encountered in resolving
234 .\"O .IR pathname .
235 ¥Ñ¥¹Ì¾
236 .I pathname
237 ¤ò²ò·è¤¹¤ë¤È¤­¤Ë¡¢´Þ¤Þ¤ì¤Æ¤¤¤ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤¿¡£
238 .TP
239 .B ENAMETOOLONG
240 .\"O .IR pathname " was too long."
241 .I pathname
242 ¤¬Ä¹²á¤®¤ë¡£
243 .TP
244 .B ENOENT
245 .\"O A directory component in
246 .\"O .I pathname
247 .\"O does not exist or is a dangling symbolic link.
248 .I pathname
249 Ãæ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢
250 ¤Þ¤¿¤Ï¥ê¥ó¥¯Àè¤Î̵¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¡£
251 .TP
252 .B ENOMEM
253 .\"O Insufficient kernel memory was available.
254 ½½Ê¬¤Ê¥«¡¼¥Í¥ë¥á¥â¥ê¤¬Ìµ¤¤¡£
255 .TP
256 .B ENOSPC
257 .\"O The device containing
258 .\"O .I pathname
259 .\"O has no room for the new node.
260 .I pathname
261 ¤Î¤¢¤ë¥Ç¥Ð¥¤¥¹¤Ë¿·¤¿¤Ë¥Î¡¼¥É¤òºîÀ®¤¹¤ë¶õ¤­¤¬Ìµ¤¤¡£
262 .TP
263 .B ENOTDIR
264 .\"O A component used as a directory in
265 .\"O .I pathname
266 .\"O is not, in fact, a directory.
267 .I pathname
268 Ãæ¤Î¥Ç¥£¥ì¥¯¥È¥êÍ×ÁǤ¬¡¢¼ÂºÝ¤Ë¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¡£
269 .TP
270 .B EPERM
271 .\"O .I mode
272 .\"O requested creation of something other than a regular file,
273 .\"O FIFO (named pipe), or Unix domain socket, and the caller
274 .\"O is not privileged (Linux: does not have the
275 .\"O .B CAP_MKNOD
276 .\"O capability);
277 .\"O .\" For Unix domain sockets and regular files, EPERM is only returned in
278 .\"O .\" Linux 2.2 and earlier; in Linux 2.4 and later, unprivileged can
279 .\"O .\" use mknod() to make these files.
280 .\"O also returned if the file system containing
281 .\"O .I pathname
282 .\"O does not support the type of node requested.
283 .I mode
284 ¤ÏÄ̾ï¤Î¥Õ¥¡¥¤¥ë¡¦FIFO (̾Á°ÉÕ¤­¥Ñ¥¤¥×)¡¦Unix ¥É¥á¥¤¥ó¥½¥±¥Ã¥È°Ê³°¤ò
285 ºîÀ®¤¹¤ë¤è¤¦¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤¬¡¢¼Â¹Ô¼Ô¤¬Æø¢
286 (Linux ¤Ç¤Ï
287 .B CAP_MKNOD
288 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£ (capability)) ¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
289 .\" Unix ¥É¥á¥¤¥ó¥½¥±¥Ã¥È¤ÈÄ̾ï¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ mknod() ¤ò¹Ô¤¦¤È¡¢
290 .\" Linux 2.2 °ÊÁ°¤Ç¤Ï EPERM ¤òÊÖ¤¹¤À¤±¤Ç¤¢¤ë¡£
291 .\" Linux 2.4 °Ê¹ß¤Ç¤ÏÆø¢¤ò»ý¤Ã¤Æ¤¤¤Ê¤¯¤Æ¤â¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ò
292 .\" ºîÀ®¤¹¤ë¤Î¤Ë mknod() ¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
293 ¤Þ¤¿¤Ï
294 .I pathname
295 ¤òÊÝ»ý¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¡¢»ØÄꤵ¤ì¤¿¥Î¡¼¥É·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
296 .TP
297 .B EROFS
298 .\"O .I pathname
299 .\"O refers to a file on a read-only file system.
300 .I pathname
301 ¤¬Æɤ߽Ф·ÀìÍÑ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥Õ¥¡¥¤¥ë¤ò»Ø¤·¤Æ¤¤¤ë¡£
302 .\"O .SH CONFORMING TO
303 .SH ½àµò
304 .\"O SVr4, 4.4BSD, POSIX.1-2001 (but see below).
305 .\"O .\" The Linux version differs from the SVr4 version in that it
306 .\"O .\" does not require root permission to create pipes, also in that no
307 .\"O .\" EMULTIHOP, ENOLINK, or EINTR error is documented.
308 SVr4, 4.4BSD, POSIX.1-2001 (²¼µ­¤â»²¾È).
309 .\" Linux ¤Î¼ÂÁõ¤Ï SVr4 ¤Î¼ÂÁõ¤È°Û¤Ê¤ê¡¢¥Ñ¥¤¥×¤ÎºîÀ®¤Ë¤Ï root ¸¢¸Â¤¬ÉÔÍפǤ¢¤ë¡£
310 .\" ¤Þ¤¿ EMULTIHOP ¤È ENOLINK ¤È EINTR ¤Î¥¨¥é¡¼¤Ë¤Ä¤¤¤Æ¤Ïµ­½Ò¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
311 .\"O .SH NOTES
312 .SH Ãí°Õ
313 .\"O POSIX.1-2001 says: "The only portable use of
314 .\"O .BR mknod ()
315 .\"O is to create a FIFO-special file.
316 .\"O If
317 .\"O .I mode
318 .\"O is not
319 .\"O .B S_IFIFO
320 .\"O or
321 .\"O .I dev
322 .\"O is not 0, the behavior of
323 .\"O .BR mknod ()
324 .\"O is unspecified."
325 POSIX.1-2001 ¤Ç¤Ï¼¡¤Î¤è¤¦¤Ë½ñ¤¤¤Æ¤¤¤ë¡§
326 .RB ¡Ö mknod ()
327 ¤ÎÍ£°ì¤Î°Ü¿¢À­¤Î¤¢¤ë»ÈÍÑË¡¤Ï¡¢FIFO ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¤³¤È¤Ç¤¢¤ë¡£
328 .I mode
329 ¤¬
330 .B S_IFIFO
331 ¤Ç¤Ï¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï
332 .I dev
333 ¤¬ 0 ¤Ç¤Ï¤Ê¤¤¾ì¹ç¡¢
334 .BR mknod ()
335 ¤ÎµóÆ°¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£¡×
336 .\"O However, nowadays one should never use
337 .\"O .BR mknod ()
338 .\"O for this purpose; one should use
339 .\"O .BR mkfifo (3),
340 .\"O a function especially defined for this purpose.
341 ¤·¤«¤·¤Ê¤¬¤é¡¢¸½ºß¤Ç¤Ï¤³¤ÎÌÜŪ¤Î¤¿¤á¤Ë
342 .BR mknod ()
343 ¤ò»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£¤³¤ÎÌÜŪ¤Î¤¿¤á¤ËÆÃÊ̤ËÄêµÁ¤µ¤ì¤¿´Ø¿ô¤Ç¤¢¤ë
344 .BR mkfifo ()
345 ¤ò»ÈÍѤ¹¤Ù¤­¤Ç¤¢¤ë¡£
346
347 .\"O Under Linux, this call cannot be used to create directories.
348 Linux ¤Ç¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¤¿¤á¤Ë
349 ¤³¤Î¸Æ¤Ó½Ð¤·¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
350 .\"O One should make directories with
351 .\"O .BR mkdir (2).
352 ¥Ç¥£¥ì¥¯¥È¥ê¤Ï
353 .BR mkdir (2)
354 ¤ÇºîÀ®¤¹¤Ù¤­¤Ç¤¢¤ë¡£
355 .\"O .\" and one should make Unix domain sockets with socket(2) and bind(2).
356 .\" Unix ¥É¥á¥¤¥ó¥½¥±¥Ã¥È¤Ï socket(2) ¤È bind(2) ¤ÇºîÀ®¤¹¤Ù¤­¤Ç¤¢¤ë¡£
357
358 .\"O There are many infelicities in the protocol underlying NFS.
359 .\"O Some of these affect
360 .\"O .BR mknod ().
361 NFS ¤ò¼Â¸½¤·¤Æ¤¤¤ë¥×¥í¥È¥³¥ë¤Ë¤Ï¿¤¯¤ÎÉÔÈ÷¤¬Â¸ºß¤·¡¢
362 ¤½¤ì¤é¤Î¤¤¤¯¤Ä¤«¤Ï
363 .BR mknod ()
364 ¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¡£
365 .\"O .SH SEE ALSO
366 .SH ´ØÏ¢¹àÌÜ
367 .BR chmod (2),
368 .BR chown (2),
369 .BR fcntl (2),
370 .BR mkdir (2),
371 .BR mknodat (2),
372 .BR mount (2),
373 .BR socket (2),
374 .BR stat (2),
375 .BR umask (2),
376 .BR unlink (2),
377 .BR makedev (3),
378 .BR mkfifo (3),
379 .BR path_resolution (7)