1 .\" Copyright (C) Andreas Gruenbacher, February 2001
2 .\" Copyright (C) Silicon Graphics Inc, September 2001
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .TH REMOVEXATTR 2 2022-09-09 "Linux man-pages (unreleased)"
8 removexattr, lremovexattr, fremovexattr \- remove an extended attribute
11 .RI ( libc ", " \-lc )
14 .B #include <sys/xattr.h>
16 .BI "int removexattr(const char\ *" path ", const char\ *" name );
17 .BI "int lremovexattr(const char\ *" path ", const char\ *" name );
18 .BI "int fremovexattr(int " fd ", const char\ *" name );
21 Extended attributes are
23 pairs associated with inodes (files, directories, symbolic links, etc.).
24 They are extensions to the normal attributes which are associated
25 with all inodes in the system (i.e., the
28 A complete overview of extended attributes concepts can be found in
32 removes the extended attribute identified by
34 and associated with the given
41 except in the case of a symbolic link, where the extended attribute is
42 removed from the link itself, not the file that it refers to.
47 only the extended attribute is removed from the open file referred to by
54 An extended attribute name is a null-terminated string.
57 includes a namespace prefix; there may be several, disjoint
58 namespaces associated with an individual inode.
60 On success, zero is returned.
61 On failure, \-1 is returned and
63 is set to indicate the error.
67 The named attribute does not exist.
69 .\" is defined to be a synonym for
72 .\" .IR <attr/attributes.h> .)
75 Extended attributes are not supported by the filesystem, or are disabled.
77 In addition, the errors documented in
81 These system calls have been available on Linux since kernel 2.4;
82 glibc support is provided since version 2.3.
84 These system calls are Linux-specific.
86 .\" Andreas Gruenbacher,
87 .\" .RI < a.gruenbacher@computer.org >
88 .\" and the SGI XFS development team,
89 .\" .RI < linux-xfs@oss.sgi.com >.
90 .\" Please send any bug reports or comments to these addresses.