[PATCH v2] strtol.3, strtoul.3: ERRORS: Clarify that these don't set errno on success

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

 



That's a guarantee made by POSIX.

Reported-by: Jakub Wilk <jwilk@xxxxxxxxx>
Cc: Florian Weimer <fweimer@xxxxxxxxxx>
Cc: Iker Pedrosa <ipedrosa@xxxxxxxxxx>
Cc: Michael Kerrisk <mtk.manpages@xxxxxxxxx>
Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>
---
 man3/strtol.3  | 3 +++
 man3/strtoul.3 | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/man3/strtol.3 b/man3/strtol.3
index 01c658025..1f1f98216 100644
--- a/man3/strtol.3
+++ b/man3/strtol.3
@@ -124,6 +124,9 @@ .SH RETURN VALUE
 and
 .BR LONG_MAX ).
 .SH ERRORS
+This function does not modify
+.I errno
+on success.
 .TP
 .B EINVAL
 (not in C99)
diff --git a/man3/strtoul.3 b/man3/strtoul.3
index a01a1d8db..32bd36dfc 100644
--- a/man3/strtoul.3
+++ b/man3/strtoul.3
@@ -124,6 +124,9 @@ .SH RETURN VALUE
 instead of
 .BR ULONG_MAX ).
 .SH ERRORS
+This function does not modify
+.I errno
+on success.
 .TP
 .B EINVAL
 (not in C99)
-- 
2.42.0

Attachment: signature.asc
Description: PGP signature


[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