summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2019-01-16 12:55:49 +0000
committerschwarze <>2019-01-16 12:55:49 +0000
commit4e3ee06a0112af4d558016a09518906f404dc0d3 (patch)
tree248b2403757e6a997374e9351310826047941ace /src
parent715034b8f674f25253f9f569e323a0633d1eaf3c (diff)
downloadopenbsd-4e3ee06a0112af4d558016a09518906f404dc0d3.tar.gz
openbsd-4e3ee06a0112af4d558016a09518906f404dc0d3.tar.bz2
openbsd-4e3ee06a0112af4d558016a09518906f404dc0d3.zip
For all functions known to be infected by LC_NUMERIC, add short
CAVEATS pointing to the new CAVEATS section in setlocale(3). Make those in wprintf(3) and wscanf(3) more concise since duplicate information is a bad idea. Incompleteness of information originally pointed out by millert@. OK millert@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/atof.313
-rw-r--r--src/lib/libc/stdlib/strtod.313
2 files changed, 22 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/atof.3 b/src/lib/libc/stdlib/atof.3
index b520e2bc4a..183f22d358 100644
--- a/src/lib/libc/stdlib/atof.3
+++ b/src/lib/libc/stdlib/atof.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atof.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atof.3,v 1.9 2019/01/16 12:55:49 schwarze Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: January 16 2019 $
35.Dt ATOF 3 35.Dt ATOF 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -70,3 +70,12 @@ An
70.Fn atof 70.Fn atof
71function first appeared in 71function first appeared in
72.At v1 . 72.At v1 .
73.Sh CAVEATS
74On systems other than
75.Ox ,
76the
77.Dv LC_NUMERIC
78.Xr locale 1
79category can cause parsing failures; see CAVEATS in
80.Xr setlocale 3
81for details.
diff --git a/src/lib/libc/stdlib/strtod.3 b/src/lib/libc/stdlib/strtod.3
index baca4b223f..0561f3615d 100644
--- a/src/lib/libc/stdlib/strtod.3
+++ b/src/lib/libc/stdlib/strtod.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strtod.3,v 1.21 2016/06/02 15:07:34 millert Exp $ 32.\" $OpenBSD: strtod.3,v 1.22 2019/01/16 12:55:49 schwarze Exp $
33.\" 33.\"
34.Dd $Mdocdate: June 2 2016 $ 34.Dd $Mdocdate: January 16 2019 $
35.Dt STRTOD 3 35.Dt STRTOD 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -165,3 +165,12 @@ and
165.Fn strtold 165.Fn strtold
166functions conform to 166functions conform to
167.St -isoC-99 . 167.St -isoC-99 .
168.Sh CAVEATS
169On systems other than
170.Ox ,
171the
172.Dv LC_NUMERIC
173.Xr locale 1
174category can cause parsing failures; see CAVEATS in
175.Xr setlocale 3
176for details.