1 .\" Copyright (C) 2001, 2002, 2003, 2006 Silicon Graphics, Inc.
2 .\" All rights reserved.
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual. If not, see
21 .\" <http://www.gnu.org/licenses/>.
23 .TH ATTR_REMOVE 3 "Extended Attributes" "Dec 2001" "XFS Compatibility API"
25 attr_remove, attr_removef \- remove a user attribute of a filesystem object
30 .B #include <attr/attributes.h>
32 .B "int attr_remove (const char *\f2path\f3, const char *\f2attrname\f3, int \f2flags\f3);"
34 .B "int attr_removef (int \f2fd\f3, const char *\f2attrname\f3, int \f2flags\f3);"
41 functions provide a way to remove previously created attributes
42 from filesystem objects.
45 points to a path name for a filesystem object, and
47 refers to the file descriptor associated with a file.
50 exists, the attribute name and value will be removed from the
54 argument can contain the following symbols bitwise OR\'ed together:
62 address space, not in the
65 (limited to use by super-user only)
69 Do not follow symbolic links when resolving a
74 The default is to follow symbolic links.
77 will fail if one or more of the following are true:
81 The attribute name given is not associated with the indicated
86 The named file does not exist.
92 does not match the owner of the file
93 and the effective user
105 Search permission is denied on a
113 argument that is not defined for this system call.
118 points outside the allocated address space of the process.
122 A path name lookup involved too many symbolic links.
131 or a pathname component is longer than
140 The attribute name given is not associated with the indicated
147 argument that is not defined for this system call,
150 refers to a socket, not a file.
155 points outside the allocated address space of the process.
160 does not refer to a valid descriptor.
162 On success, zero is returned. On error, \-1 is returned, and
164 is set appropriately.