OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
37 removexattr, lremovexattr, fremovexattr \- 拡張属性を削除する
38 .SH 書式
39 .fam C
40 .nf
41 .B #include <sys/types.h>
42 .B #include <attr/xattr.h>
43 .sp
44 .BI "int removexattr(const char\ *" path ", const char\ *" name );
45 .BI "int lremovexattr(const char\ *" path ", const char\ *" name );
46 .BI "int fremovexattr(int " fd ", const char\ *" name );
47 .fi
48 .fam T
49 .SH 説明
50 拡張属性は、inode (ファイル、ディレクトリ、シンボリックリンク等) に
51 関連付けられた
52 .IR name :\c
53 .I value
54 の対である。
55 これらは、システム上のすべての inode に関連付けられた通常の属性
56 .RB ( stat (2)
57 が返すデータ) を拡張するものである。
58 拡張属性のコンセプトは
59 .BR attr (5)
60 に書かれている。
61 .PP
62 .BR removexattr ()
63 は、ファイルシステム内の指定された
64 .I path
65 に対応する、名前
66 .I name
67 の拡張属性を削除する。
68 .PP
69 .BR lremovexattr ()
70
71 .BR removexattr ()
72 と同じだが、シンボリックリンクの場合に、リンクが参照しているファイル
73 ではなく、リンクそのものの情報を削除する点だけが異なる。
74 .PP
75 .BR fremovexattr ()
76
77 .BR removexattr ()
78 と同じだが、
79 .I path
80 の代わりに
81 .I fd
82 で参照されたオープン済みファイルから拡張属性を削除するだけである点が異なる
83 .RI ( fd
84
85 .BR open (2)
86 によって返される)。
87 .PP
88 拡張属性の名前は、普通の NULL 終端された文字列である。
89 .I name
90 には、名前空間を表す接頭辞 (prefix) が含まれる。
91 個々の inode に対し、互いに独立な名前空間が複数あってもよい。
92 .SH 返り値
93 成功した場合、0 が返される。
94 失敗した場合、 \-1 が返され、
95 .I errno
96 に適切な値がセットされる。
97 .PP
98 指定された名前の属性が存在しない場合、
99 .I errno
100
101 .B ENOATTR
102 がセットされる。
103 .PP
104 拡張属性がそのファイルシステムでサポートされていない場合、
105 もしくは無効になっている場合、
106 .I errno
107
108 .B ENOTSUP
109 がセットされる。
110 .PP
111 .BR stat (2)
112 システムコールの説明に書かれているエラーは
113 これらのシステムコールにも適用される。
114 .SH バージョン
115 これらのシステムコールはカーネル 2.4 以降の Linux で利用できる。
116 glibc でのサポートはバージョン 2.3 以降で行われている。
117 .SH 準拠
118 これらのシステムコールは Linux 独自である。
119 .\" .SH 著者
120 .\" Andreas Gruenbacher,
121 .\" .RI < a.gruenbacher@computer.org >
122 .\" と SGI XFS 開発チーム,
123 .\" .RI < linux-xfs@oss.sgi.com >。
124 .\" バグレポートやコメントは上記のアドレスまで送って下さい。
125 .SH 関連項目
126 .BR getfattr (1),
127 .BR setfattr (1),
128 .BR getxattr (2),
129 .BR listxattr (2),
130 .BR open (2),
131 .BR setxattr (2),
132 .BR stat (2),
133 .BR attr (5),
134 .BR symlink (7)