1REMOVEXATTR(2)                   System calls                   REMOVEXATTR(2)
2
3
4

NAME

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

SYNOPSIS

9       #include <sys/types.h>
10       #include <attr/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 filedes, const char *name);
15

DESCRIPTION

17       Extended attributes are name:value pairs associated with inodes (files,
18       directories,  symlinks,  etc).   They  are  extensions  to  the  normal
19       attributes which are associated with all inodes in the system (i.e. the
20       stat(2) data).  A complete overview of extended attributes concepts can
21       be found in attr(5).
22
23       removexattr removes the extended attribute identified by name and asso‐
24       ciated with the given path in the filesystem.
25
26       lremovexattr is identical to removexattr, except in the case of a  sym‐
27       bolic  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  attribute
31       is  removed  from  the  open file pointed to by filedes (as returned by
32       open(2)) in place of path.
33
34       An extended attribute name is a  simple  NULL-terminated  string.   The
35       name  includes  a  namespace  prefix  -  there may be several, disjoint
36       namespaces 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
42       If the named attribute does not exist, errno is set to ENOATTR.
43
44       If extended attributes are not supported by the filesystem, or are dis‐
45       abled, errno is set to ENOTSUP.
46
47       The errors documented for the stat(2) system call are  also  applicable
48       here.
49

AUTHORS

51       Andreas Gruenbacher, <a.gruenbacher@bestbits.at> and the SGI XFS devel‐
52       opment team, <linux-xfs@oss.sgi.com>.  Please send any bug  reports  or
53       comments to these addresses.
54

SEE ALSO

56       getfattr(1),  setfattr(1),  open(2), stat(2), setxattr(2), getxattr(2),
57       listxattr(2), and attr(5).
58
59
60
61Dec 2001                      Extended Attributes               REMOVEXATTR(2)
Impressum