OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man2 / mknodat.2
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-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
28 .\"
29 .TH MKNODAT 2 2010-09-20 "Linux" "Linux Programmer's Manual"
30 .SH Ì¾Á°
31 mknodat \- ¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤«¤éÁêÂÐŪ¤Ê°ÌÃ֤ˡ¢
32 Æüì¥Õ¥¡¥¤¥ë¤äÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë
33 .SH ½ñ¼°
34 .nf
35 .B #include <fcntl.h>           /* AT_* Äê¿ô¤ÎÄêµÁ */
36 .B #include <sys/stat.h>
37 .sp
38 .BI "int mknodat(int " dirfd ", const char *" pathname ", mode_t " mode \
39 ", dev_t " dev );
40 .fi
41 .sp
42 .in -4n
43 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
44 .RB ( feature_test_macros (7)
45 »²¾È):
46 .in
47 .sp
48 .BR mknodat ():
49 .PD 0
50 .ad l
51 .RS 4
52 .TP 4
53 glibc 2.10 °Ê¹ß:
54 _XOPEN_SOURCE\ >=\ 700
55 .\" Other FTM combinations will also expose mknodat(), but this function was
56 .\" added in SUSv4, marked XSI, so we'll just document what the standard says
57 .TP 4
58 glibc 2.10 ¤è¤êÁ°:
59 _ATFILE_SOURCE
60 .RE
61 .ad
62 .PD
63 .SH ÀâÌÀ
64 .BR mknodat ()
65 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¤³¤Î man ¥Ú¡¼¥¸¤ÇÀâÌÀ¤·¤Æ¤¤¤ë°ã¤¤¤¬¤¢¤ë°Ê³°¤Ï¡¢
66 .BR mknod (2)
67 ¤ÈÁ´¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
68
69 .I pathname
70 ¤Ç»ØÄꤵ¤ì¤ë¥Ñ¥¹Ì¾¤¬ÁêÂХѥ¹Ì¾¤Ç¤¢¤ë¾ì¹ç¡¢
71 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿
72 .I dirfd
73 ¤Ç»²¾È¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë
74 .RB ( mknod (2)
75 ¤Ç¤Ï¡¢ÁêÂХѥ¹¤Ï¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
76 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤Ê¤ë)¡£
77
78 .I pathname
79 ¤¬ÁêÂХѥ¹¤Ç¤¢¤ê¡¢¤«¤Ä
80 .I dirfd
81 ¤¬ÆÃÊ̤ÊÃÍ
82 .B AT_FDCWD
83 ¤Ç¤¢¤ë¾ì¹ç¡¢
84 .I pathname
85 ¤Ï
86 .RB ( mknod (2)
87 ¤ÈƱ¤¸¤è¤¦¤Ë) ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
88 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
89
90 .I pathname
91 ¤¬ÀäÂХѥ¹¤Ç¤¢¤ë¾ì¹ç¡¢
92 .I dirfd
93 ¤Ï̵»ë¤µ¤ì¤ë¡£
94 .SH ÊÖ¤êÃÍ
95 À®¸ù¤·¤¿¾ì¹ç¡¢
96 .BR mknodat ()
97 ¤Ï 0 ¤òÊÖ¤¹¡£
98 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
99 .I errno
100 ¤Ë¤Ï¥¨¥é¡¼¤ò¼¨¤¹Ãͤ¬ÀßÄꤵ¤ì¤ë¡£
101 .SH ¥¨¥é¡¼
102 .BR mknod (2)
103 ¤ÈƱ¤¸¥¨¥é¡¼¤¬
104 .BR mknodat ()
105 ¤Ç¤âµ¯¤³¤ë¡£
106 .BR mknodat ()
107 ¤Ç¤Ï¡¢¤½¤Î¾¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë:
108 .TP
109 .B EBADF
110 .I dirfd
111 ¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
112 .TP
113 .B ENOTDIR
114 .I pathname
115 ¤¬ÁêÂХѥ¹¤Ç¡¢¤«¤Ä
116 .I dirfd
117 ¤¬¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤¢¤ë¡£
118 .SH ¥Ð¡¼¥¸¥ç¥ó
119 .BR mknodat ()
120 ¤Ï Linux ¥«¡¼¥Í¥ë 2.6.16 ¤ÇÄɲ䵤줿¡£
121 .SH ½àµò
122 POSIX.1-2008.
123 .SH Ãí°Õ
124 .BR mknodat ()
125 ¤¬É¬ÍפÊÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
126 .BR openat (2)
127 ¤ò»²¾È¤¹¤ë¤³¤È¡£
128 .SH ´ØÏ¢¹àÌÜ
129 .BR mknod (2),
130 .BR openat (2),
131 .BR path_resolution (7)