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       ENODATA
44              The named attribute does not exist.
45
46       ENOTSUP
47              Extended  attributes are not supported by the filesystem, or are
48              disabled.
49
50       In addition, the errors documented in stat(2) can also occur.
51

VERSIONS

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

CONFORMING TO

57       These system calls are Linux-specific.
58

SEE ALSO

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

COLOPHON

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