1REMOVEXATTR(2)             Linux Programmer's Manual            REMOVEXATTR(2)
2
3
4

NAME

6       removexattr, lremovexattr, fremovexattr - remove an extended attribute
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/xattr.h>
11
12       int removexattr(const char *path, const char *name);
13       int lremovexattr(const char *path, const char *name);
14       int fremovexattr(int fd, const char *name);
15

DESCRIPTION

17       Extended attributes are name:value pairs associated with inodes (files,
18       directories, symbolic links, etc.).  They are extensions to the  normal
19       attributes  which  are  associated with all inodes in the system (i.e.,
20       the stat(2) data).  A complete overview of extended attributes concepts
21       can be found in xattr(7).
22
23       removexattr()  removes  the  extended  attribute identified by name and
24       associated with the given path in the filesystem.
25
26       lremovexattr() is identical to removexattr(), except in the case  of  a
27       symbolic  link,  where  the extended attribute is removed from the link
28       itself, not the file that it refers to.
29
30       fremovexattr()  is  identical  to  removexattr(),  only  the   extended
31       attribute  is removed from the open file referred to by fd (as returned
32       by open(2)) in place of path.
33
34       An extended attribute name  is  a  null-terminated  string.   The  name
35       includes  a namespace prefix; there may be several, disjoint namespaces
36       associated with an individual inode.
37

RETURN VALUE

39       On success, zero is returned.  On failure, -1 is returned and errno  is
40       set appropriately.
41

ERRORS

43       ENOATTR
44              The named attribute does not exist.  (ENOATTR is defined to be a
45              synonym for ENODATA in <attr/xattr.h>.)
46
47       ENOTSUP
48              Extended attributes are not supported by the filesystem, or  are
49              disabled.
50
51       In addition, the errors documented in stat(2) can also occur.
52

VERSIONS

54       These system calls have been available on Linux since kernel 2.4; glibc
55       support is provided since version 2.3.
56

CONFORMING TO

58       These system calls are Linux-specific.
59

SEE ALSO

61       getfattr(1), setfattr(1),  getxattr(2),  listxattr(2),  open(2),  setx‐
62       attr(2), stat(2), symlink(7), xattr(7)
63

COLOPHON

65       This  page  is  part of release 4.15 of the Linux man-pages project.  A
66       description of the project, information about reporting bugs,  and  the
67       latest     version     of     this    page,    can    be    found    at
68       https://www.kernel.org/doc/man-pages/.
69
70
71
72Linux                             2015-05-07                    REMOVEXATTR(2)
Impressum