188 lines
4.4 KiB
HTML
188 lines
4.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of REMOVEXATTR</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>REMOVEXATTR</H1>
|
|
Section: Linux Programmer's Manual (2)<BR>Updated: 2019-03-06<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
removexattr, lremovexattr, fremovexattr - remove an extended attribute
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<PRE>
|
|
<B>#include <<A HREF="file:///usr/include/sys/types.h">sys/types.h</A>></B>
|
|
<B>#include <<A HREF="file:///usr/include/sys/xattr.h">sys/xattr.h</A>></B>
|
|
|
|
<B>int removexattr(const char *</B><I>path</I><B>, const char *</B><I>name</I><B>);</B>
|
|
<B>int lremovexattr(const char *</B><I>path</I><B>, const char *</B><I>name</I><B>);</B>
|
|
<B>int fremovexattr(int </B><I>fd</I><B>, const char *</B><I>name</I><B>);</B>
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Extended attributes are
|
|
<I>name</I>:<I>value</I>
|
|
|
|
pairs associated with inodes (files, directories, symbolic links, etc.).
|
|
They are extensions to the normal attributes which are associated
|
|
with all inodes in the system (i.e., the
|
|
<B><A HREF="/cgi-bin/man/man2html?2+stat">stat</A></B>(2)
|
|
|
|
data).
|
|
A complete overview of extended attributes concepts can be found in
|
|
<B><A HREF="/cgi-bin/man/man2html?7+xattr">xattr</A></B>(7).
|
|
|
|
<P>
|
|
|
|
<B>removexattr</B>()
|
|
|
|
removes the extended attribute identified by
|
|
<I>name</I>
|
|
|
|
and associated with the given
|
|
<I>path</I>
|
|
|
|
in the filesystem.
|
|
<P>
|
|
|
|
<B>lremovexattr</B>()
|
|
|
|
is identical to
|
|
<B>removexattr</B>(),
|
|
|
|
except in the case of a symbolic link, where the extended attribute is
|
|
removed from the link itself, not the file that it refers to.
|
|
<P>
|
|
|
|
<B>fremovexattr</B>()
|
|
|
|
is identical to
|
|
<B>removexattr</B>(),
|
|
|
|
only the extended attribute is removed from the open file referred to by
|
|
<I>fd</I>
|
|
|
|
(as returned by
|
|
<B><A HREF="/cgi-bin/man/man2html?2+open">open</A></B>(2))
|
|
|
|
in place of
|
|
<I>path</I>.
|
|
|
|
<P>
|
|
|
|
An extended attribute name is a null-terminated string.
|
|
The
|
|
<I>name</I>
|
|
|
|
includes a namespace prefix; there may be several, disjoint
|
|
namespaces associated with an individual inode.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
On success, zero is returned.
|
|
On failure, -1 is returned and
|
|
<I>errno</I>
|
|
|
|
is set appropriately.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ERRORS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>ENODATA</B>
|
|
|
|
<DD>
|
|
The named attribute does not exist.
|
|
|
|
|
|
|
|
|
|
|
|
<DT id="2"><B>ENOTSUP</B>
|
|
|
|
<DD>
|
|
Extended attributes are not supported by the filesystem, or are disabled.
|
|
</DL>
|
|
<P>
|
|
|
|
In addition, the errors documented in
|
|
<B><A HREF="/cgi-bin/man/man2html?2+stat">stat</A></B>(2)
|
|
|
|
can also occur.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>VERSIONS</H2>
|
|
|
|
These system calls have been available on Linux since kernel 2.4;
|
|
glibc support is provided since version 2.3.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
These system calls are Linux-specific.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+getfattr">getfattr</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+setfattr">setfattr</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+getxattr">getxattr</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+listxattr">listxattr</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+open">open</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+setxattr">setxattr</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+stat">stat</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+symlink">symlink</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+xattr">xattr</A></B>(7)
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">ERRORS</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">VERSIONS</A><DD>
|
|
<DT id="9"><A HREF="#lbAH">CONFORMING TO</A><DD>
|
|
<DT id="10"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="11"><A HREF="#lbAJ">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:34 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|