OSDN Git Service

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