.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
-.TH GETXATTR 2 2015-05-07 "Linux" "Linux Programmer's Manual"
+.TH GETXATTR 2 2020-06-09 "Linux" "Linux Programmer's Manual"
.SH NAME
getxattr, lgetxattr, fgetxattr \- retrieve an extended attribute value
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.B #include <sys/xattr.h>
-.sp
+.PP
.BI "ssize_t getxattr(const char\ *" path ", const char\ *" name ,
.BI " void\ *" value ", size_t " size );
.BI "ssize_t lgetxattr(const char\ *" path ", const char\ *" name ,
is set appropriately.
.SH ERRORS
.TP
-.B ENOATTR
+.B E2BIG
+The size of the attribute value is larger than the maximum size allowed; the
+attribute cannot be retrieved.
+This can happen on filesystems that support
+very large attribute values such as NFSv4, for example.
+.TP
+.B ENODATA
The named attribute does not exist, or the process has no access to
this attribute.
-.RB ( ENOATTR
-is defined to be a synonym for
-.BR ENODATA
-in
-.IR <attr/xattr.h> .)
+.\" .RB ( ENOATTR
+.\" is defined to be a synonym for
+.\" .BR ENODATA
+.\" in
+.\" .IR <attr/attributes.h> .)
.TP
.B ENOTSUP
Extended attributes are not supported by the filesystem, or are disabled.
of the
.I value
buffer is too small to hold the result.
-.TP
-.B E2BIG
-The size of the attribute value is larger than the maximum size allowed; the
-attribute cannot be retrieved. This can happen on filesystems that support
-very large attribute values such as NFSv4, for example.
.PP
In addition, the errors documented in
.BR stat (2)
.\" and the SGI XFS development team,
.\" .RI < linux-xfs@oss.sgi.com >.
.\" Please send any bug reports or comments to these addresses.
-.SH EXAMPLE
+.SH EXAMPLES
See
.BR listxattr (2).
.SH SEE ALSO