OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / removexattr.2
1 .\"
2 .\" Extended attributes system calls manual pages
3 .\"
4 .\" Copyright (C) Andreas Gruenbacher, February 2001
5 .\" Copyright (C) Silicon Graphics Inc, September 2001
6 .\"
7 .\" This is free documentation; you can redistribute it and/or
8 .\" modify it under the terms of the GNU General Public License as
9 .\" published by the Free Software Foundation; either version 2 of
10 .\" the License, or (at your option) any later version.
11 .\"
12 .\" The GNU General Public License's references to "object code"
13 .\" and "executables" are to be interpreted as the output of any
14 .\" document formatting or typesetting system, including
15 .\" intermediate and printed output.
16 .\"
17 .\" This manual is distributed in the hope that it will be useful,
18 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
19 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 .\" GNU General Public License for more details.
21 .\"
22 .\" You should have received a copy of the GNU General Public
23 .\" License along with this manual; if not, write to the Free
24 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
25 .\" USA.
26 .\"
27 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
28 .\"         all rights reserved.
29 .\" Translated Tue Jul  8 04:43:40 JST 2003
30 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
31 .\"
32 .\"WORD:        extended attributes     ³Èĥ°À­
33 .\"WORD:        namespace               Ì¾Á°¶õ´Ö
34 .\"
35 .TH REMOVEXATTR 2 2001-12-01 "Linux" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .\"O removexattr, lremovexattr, fremovexattr \- remove an extended attribute
38 .SH Ì¾Á°
39 removexattr, lremovexattr, fremovexattr \- ³Èĥ°À­¤òºï½ü¤¹¤ë
40 .\"O .SH SYNOPSIS
41 .SH ½ñ¼°
42 .fam C
43 .nf
44 .B #include <sys/types.h>
45 .B #include <attr/xattr.h>
46 .sp
47 .BI "int removexattr(const char\ *" path ", const char\ *" name );
48 .BI "int lremovexattr(const char\ *" path ", const char\ *" name );
49 .BI "int fremovexattr(int " fd ", const char\ *" name );
50 .fi
51 .fam T
52 .\"O .SH DESCRIPTION
53 .SH ÀâÌÀ
54 .\"O Extended attributes are
55 .\"O .IR name :\c
56 .\"O value pairs associated with inodes (files, directories, symbolic links, etc.).
57 .\"O They are extensions to the normal attributes which are associated
58 .\"O with all inodes in the system (i.e., the
59 .\"O .BR stat (2)
60 .\"O data).
61 .\"O A complete overview of extended attributes concepts can be found in
62 .\"O .BR attr (5).
63 ³Èĥ°À­¤Ï¡¢inode (¥Õ¥¡¥¤¥ë¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯Åù) ¤Ë
64 ´ØÏ¢ÉÕ¤±¤é¤ì¤¿
65 .IR name :\c
66 .I value
67 ¤ÎÂФǤ¢¤ë¡£
68 ¤³¤ì¤é¤Ï¡¢¥·¥¹¥Æ¥à¾å¤Î¤¹¤Ù¤Æ¤Î inode ¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿Ä̾ï¤Î°À­
69 .RB ( stat (2)
70 ¤¬ÊÖ¤¹¥Ç¡¼¥¿) ¤ò³ÈÄ¥¤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
71 ³Èĥ°À­¤Î¥³¥ó¥»¥×¥È¤Ï
72 .BR attr (5)
73 ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¡£
74 .PP
75 .\"O .BR removexattr ()
76 .\"O removes the extended attribute identified by
77 .\"O .I name
78 .\"O and associated with the given
79 .\"O .I path
80 .\"O in the file system.
81 .BR removexattr ()
82 ¤Ï¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î»ØÄꤵ¤ì¤¿
83 .I path
84 ¤ËÂбþ¤¹¤ë¡¢Ì¾Á°
85 .I name
86 ¤Î³Èĥ°À­¤òºï½ü¤¹¤ë¡£
87 .PP
88 .\"O .BR lremovexattr ()
89 .\"O is identical to
90 .\"O .BR removexattr (),
91 .\"O except in the case of a symbolic link, where the extended attribute is
92 .\"O removed from the link itself, not the file that it refers to.
93 .BR lremovexattr ()
94 ¤Ï
95 .BR removexattr ()
96 ¤ÈƱ¤¸¤À¤¬¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¾ì¹ç¤Ë¡¢¥ê¥ó¥¯¤¬»²¾È¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë
97 ¤Ç¤Ï¤Ê¤¯¡¢¥ê¥ó¥¯¤½¤Î¤â¤Î¤Î¾ðÊó¤òºï½ü¤¹¤ëÅÀ¤À¤±¤¬°Û¤Ê¤ë¡£
98 .PP
99 .\"O .BR fremovexattr ()
100 .\"O is identical to
101 .\"O .BR removexattr (),
102 .\"O only the extended attribute is removed from the open file referred to by
103 .\"O .I fd
104 .\"O (as returned by
105 .\"O .BR open (2))
106 .\"O in place of
107 .\"O .IR path .
108 .BR fremovexattr ()
109 ¤Ï
110 .BR removexattr ()
111 ¤ÈƱ¤¸¤À¤¬¡¢
112 .I path
113 ¤ÎÂå¤ï¤ê¤Ë
114 .I fd
115 ¤Ç»²¾È¤µ¤ì¤¿¥ª¡¼¥×¥óºÑ¤ß¥Õ¥¡¥¤¥ë¤«¤é³Èĥ°À­¤òºï½ü¤¹¤ë¤À¤±¤Ç¤¢¤ëÅÀ¤¬°Û¤Ê¤ë
116 .RI ( fd
117 ¤Ï
118 .BR open (2)
119 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë)¡£
120 .PP
121 .\"O An extended attribute name is a simple null-terminated string.
122 .\"O The
123 .\"O .I name
124 .\"O includes a namespace prefix; there may be several, disjoint
125 .\"O namespaces associated with an individual inode.
126 ³Èĥ°À­¤Î̾Á°¤Ï¡¢ÉáÄ̤ΠNULL ½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤Ç¤¢¤ë¡£
127 .I name
128 ¤Ë¤Ï¡¢Ì¾Á°¶õ´Ö¤òɽ¤¹ÀÜƬ¼­ (prefix) ¤¬´Þ¤Þ¤ì¤ë¡£
129 ¸Ä¡¹¤Î inode ¤ËÂФ·¡¢¸ß¤¤¤ËÆÈΩ¤Ê̾Á°¶õ´Ö¤¬Ê£¿ô¤¢¤Ã¤Æ¤â¤è¤¤¡£
130 .\"O .SH RETURN VALUE
131 .SH ÊÖ¤êÃÍ
132 .\"O On success, zero is returned.
133 .\"O On failure, \-1 is returned and
134 .\"O .I errno
135 .\"O is set appropriately.
136 À®¸ù¤·¤¿¾ì¹ç¡¢0 ¤¬ÊÖ¤µ¤ì¤ë¡£
137 ¼ºÇÔ¤·¤¿¾ì¹ç¡¢ \-1 ¤¬ÊÖ¤µ¤ì¡¢
138 .I errno
139 ¤ËŬÀÚ¤ÊÃͤ¬¥»¥Ã¥È¤µ¤ì¤ë¡£
140 .PP
141 .\"O If the named attribute does not exist,
142 .\"O .I errno
143 .\"O is set to
144 .\"O .BR ENOATTR .
145 »ØÄꤵ¤ì¤¿Ì¾Á°¤Î°À­¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢
146 .I errno
147 ¤Ë
148 .B ENOATTR
149 ¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
150 .PP
151 .\"O If extended attributes are not supported by the file system, or are disabled,
152 .\"O .I errno
153 .\"O is set to
154 .\"O .BR ENOTSUP .
155 ³Èĥ°À­¤¬¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
156 ¤â¤·¤¯¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
157 .I errno
158 ¤Ë
159 .B ENOTSUP
160 ¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
161 .PP
162 .\"O The errors documented for the
163 .\"O .BR stat (2)
164 .\"O system call are also applicable here.
165 .BR stat (2)
166 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ÎÀâÌÀ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¥¨¥é¡¼¤Ï
167 ¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ë¤âŬÍѤµ¤ì¤ë¡£
168 .\"O .SH VERSIONS
169 .SH ¥Ð¡¼¥¸¥ç¥ó
170 .\"O These system calls have been available on Linux since kernel 2.4;
171 .\"O glibc support is provided since version 2.3.
172 ¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥«¡¼¥Í¥ë 2.4 °Ê¹ß¤Î Linux ¤ÇÍøÍѤǤ­¤ë¡£
173 glibc ¤Ç¤Î¥µ¥Ý¡¼¥È¤Ï¥Ð¡¼¥¸¥ç¥ó 2.3 °Ê¹ß¤Ç¹Ô¤ï¤ì¤Æ¤¤¤ë¡£
174 .\"O .SH "CONFORMING TO"
175 .SH ½àµò
176 .\"O These system calls are Linux-specific.
177 ¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux Æȼ«¤Ç¤¢¤ë¡£
178 .\"O .\" .SH AUTHORS
179 .\" .SH Ãø¼Ô
180 .\"O .\" Andreas Gruenbacher,
181 .\"O .\" .RI < a.gruenbacher@computer.org >
182 .\"O .\" and the SGI XFS development team,
183 .\"O .\" .RI < linux-xfs@oss.sgi.com >.
184 .\"O .\" Please send any bug reports or comments to these addresses.
185 .\" Andreas Gruenbacher,
186 .\" .RI < a.gruenbacher@computer.org >
187 .\" ¤È SGI XFS ³«È¯¥Á¡¼¥à,
188 .\" .RI < linux-xfs@oss.sgi.com >¡£
189 .\" ¥Ð¥°¥ì¥Ý¡¼¥È¤ä¥³¥á¥ó¥È¤Ï¾åµ­¤Î¥¢¥É¥ì¥¹¤Þ¤ÇÁ÷¤Ã¤Æ²¼¤µ¤¤¡£
190 .\"O .SH SEE ALSO
191 .SH ´ØÏ¢¹àÌÜ
192 .BR getfattr (1),
193 .BR setfattr (1),
194 .BR getxattr (2),
195 .BR listxattr (2),
196 .BR open (2),
197 .BR setxattr (2),
198 .BR stat (2),
199 .BR attr (5),
200 .BR symlink (7)