OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH REMOVEXATTR 2 2001\-12\-01 Linux "Linux Programmer's Manual"
33 .SH 名前
34 removexattr, lremovexattr, fremovexattr \- 拡張属性を削除する
35 .SH 書式
36 .fam C
37 .nf
38 \fB#include <sys/types.h>\fP
39 \fB#include <attr/xattr.h>\fP
40 .sp
41 \fBint removexattr(const char\ *\fP\fIpath\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
42 \fBint lremovexattr(const char\ *\fP\fIpath\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
43 \fBint fremovexattr(int \fP\fIfd\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
44 .fi
45 .fam T
46 .SH 説明
47 拡張属性は、inode (ファイル、ディレクトリ、シンボリックリンク等) に 関連付けられた \fIname\fP:\fIvalue\fP の対である。
48 これらは、システム上のすべての inode に関連付けられた通常の属性 (\fBstat\fP(2)  が返すデータ) を拡張するものである。
49 拡張属性のコンセプトは \fBattr\fP(5)  に書かれている。
50 .PP
51 \fBremovexattr\fP()  は、ファイルシステム内の指定された \fIpath\fP に対応する、名前 \fIname\fP の拡張属性を削除する。
52 .PP
53 \fBlremovexattr\fP()  は \fBremovexattr\fP()  と同じだが、シンボリックリンクの場合に、リンクが参照しているファイル
54 ではなく、リンクそのものの情報を削除する点だけが異なる。
55 .PP
56 \fBfremovexattr\fP()  は \fBremovexattr\fP()  と同じだが、 \fIpath\fP の代わりに \fIfd\fP
57 で参照されたオープン済みファイルから拡張属性を削除するだけである点が異なる (\fIfd\fP は \fBopen\fP(2)  によって返される)。
58 .PP
59 拡張属性の名前は、普通の NULL 終端された文字列である。 \fIname\fP には、名前空間を表す接頭辞 (prefix) が含まれる。 個々の
60 inode に対し、互いに独立な名前空間が複数あってもよい。
61 .SH 返り値
62 成功した場合、0 が返される。 失敗した場合、 \-1 が返され、 \fIerrno\fP に適切な値がセットされる。
63 .PP
64 指定された名前の属性が存在しない場合、 \fIerrno\fP に \fBENOATTR\fP がセットされる。
65 .PP
66 拡張属性がそのファイルシステムでサポートされていない場合、 もしくは無効になっている場合、 \fIerrno\fP に \fBENOTSUP\fP がセットされる。
67 .PP
68 \fBstat\fP(2)  システムコールの説明に書かれているエラーは これらのシステムコールにも適用される。
69 .SH バージョン
70 これらのシステムコールはカーネル 2.4 以降の Linux で利用できる。 glibc でのサポートはバージョン 2.3 以降で行われている。
71 .SH 準拠
72 .\" .SH AUTHORS
73 .\" Andreas Gruenbacher,
74 .\" .RI < a.gruenbacher@computer.org >
75 .\" and the SGI XFS development team,
76 .\" .RI < linux-xfs@oss.sgi.com >.
77 .\" Please send any bug reports or comments to these addresses.
78 これらのシステムコールは Linux 独自である。
79 .SH 関連項目
80 \fBgetfattr\fP(1), \fBsetfattr\fP(1), \fBgetxattr\fP(2), \fBlistxattr\fP(2), \fBopen\fP(2),
81 \fBsetxattr\fP(2), \fBstat\fP(2), \fBattr\fP(5), \fBsymlink\fP(7)