OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man2 / linkat.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 LINKAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
30 .SH Ì¾Á°
31 linkat \-  ¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤«¤éÁêÂÐŪ¤Ê°ÌÃ֤˥ե¡¥¤¥ë¥ê¥ó¥¯¤òºîÀ®¤¹¤ë
32 .SH ½ñ¼°
33 .nf
34 .B #include <fcntl.h>           /* AT_* Äê¿ô¤ÎÄêµÁ */
35 .B #include <unistd.h>
36 .sp
37 .BI "int linkat(int " olddirfd ", const char *" oldpath ,
38 .BI "           int " newdirfd ", const char *" newpath ", int " flags );
39 .fi
40 .sp
41 .in -4n
42 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
43 .RB ( feature_test_macros (7)
44 »²¾È):
45 .in
46 .sp
47 .BR linkat ():
48 .PD 0
49 .ad l
50 .RS 4
51 .TP 4
52 glibc 2.10 °Ê¹ß:
53 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
54 .TP
55 glibc 2.10 ¤è¤êÁ°:
56 _ATFILE_SOURCE
57 .RE
58 .ad
59 .PD
60 .SH ÀâÌÀ
61 .BR linkat ()
62 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¤³¤Î man ¥Ú¡¼¥¸¤ÇÀâÌÀ¤·¤Æ¤¤¤ë°ã¤¤¤¬¤¢¤ë°Ê³°¤Ï¡¢
63 .BR link (2)
64 ¤ÈÁ´¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
65
66 .I oldpath
67 ¤Ç»ØÄꤵ¤ì¤ë¥Ñ¥¹Ì¾¤¬ÁêÂХѥ¹Ì¾¤Ç¤¢¤ë¾ì¹ç¡¢
68 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿
69 .I olddirfd
70 ¤Ç»²¾È¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë
71 .RB ( link (2)
72 ¤Ç¤Ï¡¢ÁêÂХѥ¹¤Ï¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
73 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤Ê¤ë)¡£
74
75 .I oldpath
76 ¤¬ÁêÂХѥ¹¤Ç¤¢¤ê¡¢¤«¤Ä
77 .I olddirfd
78 ¤¬ÆÃÊ̤ÊÃÍ
79 .B AT_FDCWD
80 ¤Ç¤¢¤ë¾ì¹ç¡¢
81 .I oldpath
82 ¤Ï
83 .RB ( link (2)
84 ¤ÈƱ¤¸¤è¤¦¤Ë) ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
85 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
86
87 .I oldpath
88 ¤¬ÀäÂХѥ¹¤Ç¤¢¤ë¾ì¹ç¡¢
89 .I olddirfd
90 ¤Ï̵»ë¤µ¤ì¤ë¡£
91
92 .I newpath
93 ¤Î²ò¼á¤Ï
94 .I oldpath
95 ¤ÈƱÍͤǤ¢¤ë¤¬¡¢
96 ÁêÂХѥ¹Ì¾¤Ï¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿
97 .I newdirfd
98 ¤Ç»²¾È¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
99
100 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
101 .I oldpath
102 ¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤Î¾ì¹ç¡¢
103 .RB ( link (2)
104 ƱÍÍ)
105 .BR linkat ()
106 ¤Ï
107 .I oldpath
108 ¤Î»²¾È¤Î²ò·è¤ò¹Ô¤ï¤Ê¤¤¡£
109 Linux 2.6.18 °Ê¹ß¤Ç¤Ï¡¢
110 .B AT_SYMLINK_FOLLOW
111 ¥Õ¥é¥°¤ò
112 .I flags
113 ¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¤³¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢
114 .I oldpath
115 ¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤Î¾ì¹ç¡¢
116 .I oldpath
117 ¤Î»²¾È¤Î²ò·è¤ò¹Ô¤¦¡£
118 2.6.18 °ÊÁ°¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
119 .I flags
120 °ú¤­¿ô¤Ï»ÈÍѤµ¤ì¤º¡¢
121 0 ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤«¤Ã¤¿¡£
122 .SH ÊÖ¤êÃÍ
123 À®¸ù¤·¤¿¾ì¹ç¡¢
124 .BR linkat ()
125 ¤Ï 0 ¤òÊÖ¤¹¡£
126 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
127 .I errno
128 ¤Ë¤Ï¥¨¥é¡¼¤ò¼¨¤¹Ãͤ¬ÀßÄꤵ¤ì¤ë¡£
129 .SH ¥¨¥é¡¼
130 .BR link (2)
131 ¤ÈƱ¤¸¥¨¥é¡¼¤¬
132 .BR linkat ()
133 ¤Ç¤âµ¯¤³¤ë¡£
134 .BR linkat ()
135 ¤Ç¤Ï¡¢¤½¤Î¾¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë:
136 .TP
137 .B EBADF
138 .I olddirfd
139 ¤Þ¤¿¤Ï
140 .I newdirfd
141 ¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
142 .TP
143 .B ENOTDIR
144 .I oldpath
145 ¤¬ÁêÂХѥ¹¤Ç¡¢¤«¤Ä
146 .I olddirfd
147 ¤¬¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤¢¤ë¡£
148 ¤Þ¤¿¤Ï
149 .I newpath
150 ¤È
151 .I newdirfd
152 ¤Ë¤Ä¤¤¤Æ¡¢Æ±ÍͤΤ³¤È¤¬µ¯¤­¤Æ¤¤¤ë¡£
153 .SH ¥Ð¡¼¥¸¥ç¥ó
154 .BR linkat ()
155 ¤Ï Linux ¥«¡¼¥Í¥ë 2.6.16 ¤ÇÄɲ䵤줿¡£
156 .SH ½àµò
157 POSIX.1-2008.
158 .SH Ãí°Õ
159 .BR linkat ()
160 ¤¬É¬ÍפÊÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
161 .BR openat (2)
162 ¤ò»²¾È¤¹¤ë¤³¤È¡£
163 .SH ´ØÏ¢¹àÌÜ
164 .BR link (2),
165 .BR openat (2),
166 .BR path_resolution (7),
167 .BR symlink (7)