OSDN Git Service

44746bf66f1a890ed607f0b171d692449c1f4d92
[linuxjm/LDP_man-pages.git] / draft / man2 / removexattr.2
1 .\" Copyright (C) Andreas Gruenbacher, February 2001
2 .\" Copyright (C) Silicon Graphics Inc, September 2001
3 .\"
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
32 .\"         all rights reserved.
33 .\" Translated Tue Jul  8 04:43:40 JST 2003
34 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\" Updated 2013-03-26, Akihiro MOTOKI <amotoki@gmail.com>
36 .\"
37 .TH REMOVEXATTR 2 2013\-01\-19 Linux "Linux Programmer's Manual"
38 .SH 名前
39 removexattr, lremovexattr, fremovexattr \- 拡張属性を削除する
40 .SH 書式
41 .fam C
42 .nf
43 \fB#include <sys/types.h>\fP
44 \fB#include <attr/xattr.h>\fP
45 .sp
46 \fBint removexattr(const char\ *\fP\fIpath\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
47 \fBint lremovexattr(const char\ *\fP\fIpath\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
48 \fBint fremovexattr(int \fP\fIfd\fP\fB, const char\ *\fP\fIname\fP\fB);\fP
49 .fi
50 .fam T
51 .SH 説明
52 拡張属性は、inode (ファイル、ディレクトリ、シンボリックリンク等) に 関連付けられた \fIname\fP:\fIvalue\fP の対である。
53 これらは、システム上のすべての inode に関連付けられた通常の属性 (\fBstat\fP(2)  が返すデータ) を拡張するものである。
54 拡張属性のコンセプトは \fBattr\fP(5)  に書かれている。
55 .PP
56 \fBremovexattr\fP()  removes the extended attribute identified by \fIname\fP and
57 associated with the given \fIpath\fP in the filesystem.
58 .PP
59 \fBlremovexattr\fP()  は \fBremovexattr\fP()  と同じだが、シンボリックリンクの場合に、リンクが参照しているファイル
60 ではなく、リンクそのものの情報を削除する点だけが異なる。
61 .PP
62 \fBfremovexattr\fP()  は \fBremovexattr\fP()  と同じだが、 \fIpath\fP の代わりに \fIfd\fP
63 で参照されたオープン済みファイルから拡張属性を削除するだけである点が異なる (\fIfd\fP は \fBopen\fP(2)  によって返される)。
64 .PP
65 拡張属性の名前は、普通の NULL 終端された文字列である。 \fIname\fP には、名前空間を表す接頭辞 (prefix) が含まれる。 個々の
66 inode に対し、互いに独立な名前空間が複数あってもよい。
67 .SH 返り値
68 成功した場合、0 が返される。 失敗した場合、 \-1 が返され、 \fIerrno\fP に適切な値がセットされる。
69 .SH エラー
70 .TP 
71 \fBENOATTR\fP
72 指定された属性が存在しない。(\fBENOATTR\fP は \fI<attr/xattr.h>\fP で \fBENODATA\fP
73 の同義語として定義されている。)
74 .TP 
75 \fBENOTSUP\fP
76 Extended attributes are not supported by the filesystem, or are disabled.
77 .PP
78 上記に加えて、 \fBstat\fP(2) に書かれているエラーが発生する場合もある。
79 .SH バージョン
80 これらのシステムコールはカーネル 2.4 以降の Linux で利用できる。 glibc でのサポートはバージョン 2.3 以降で行われている。
81 .SH 準拠
82 .\" .SH AUTHORS
83 .\" Andreas Gruenbacher,
84 .\" .RI < a.gruenbacher@computer.org >
85 .\" and the SGI XFS development team,
86 .\" .RI < linux-xfs@oss.sgi.com >.
87 .\" Please send any bug reports or comments to these addresses.
88 これらのシステムコールは Linux 独自である。
89 .SH 関連項目
90 \fBgetfattr\fP(1), \fBsetfattr\fP(1), \fBgetxattr\fP(2), \fBlistxattr\fP(2), \fBopen\fP(2),
91 \fBsetxattr\fP(2), \fBstat\fP(2), \fBattr\fP(5), \fBsymlink\fP(7)
92 .SH この文書について
93 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
94 である。プロジェクトの説明とバグ報告に関する情報は
95 http://www.kernel.org/doc/man\-pages/ に書かれている。