Fwd: [patch] getxattr.2 : Fix RETURN VALUE description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The manpage for getxattr() says : "On success, a positive number
is returned indicating the size of the extended attribute value."

But in case the value length is zero, we should return the size as
zero (as is done by ext4, xfs). Thus "positive" number kind looks
misleading. So it should be changed to "nonnegative".

--Abhay

diff --git a/man2/getxattr.2 b/man2/getxattr.2
index adc7617..c343c34 100644
--- a/man2/getxattr.2
+++ b/man2/getxattr.2
@@ -98,7 +98,7 @@ The interface is designed to allow guessing of initial buffer
 sizes, and to enlarge buffers when the return value indicates
 that the buffer provided was too small.
 .SH RETURN VALUE
-On success, a positive number is returned indicating the size of the
+On success, a nonnegative number is returned indicating the size of the
 extended attribute value.
 On failure, \-1 is returned and
 .I errno
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux