summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-01-16 12:55:49 +0000
committerschwarze <schwarze@openbsd.org>2019-01-16 12:55:49 +0000
commita41d0f37be18caa1a290a21e618cbb06c70ee94f (patch)
treedb73e6e13029f72037ea6bb86bdbbd0f716d0283 /lib/libc/stdlib
parentinclude pf.h for #if NPF > 0 test (diff)
downloadwireguard-openbsd-a41d0f37be18caa1a290a21e618cbb06c70ee94f.tar.xz
wireguard-openbsd-a41d0f37be18caa1a290a21e618cbb06c70ee94f.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 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/atof.313
-rw-r--r--lib/libc/stdlib/strtod.313
2 files changed, 22 insertions, 4 deletions
diff --git a/lib/libc/stdlib/atof.3 b/lib/libc/stdlib/atof.3
index b520e2bc4a1..183f22d358d 100644
--- a/lib/libc/stdlib/atof.3
+++ b/lib/libc/stdlib/atof.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: atof.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $
+.\" $OpenBSD: atof.3,v 1.9 2019/01/16 12:55:49 schwarze Exp $
.\"
-.Dd $Mdocdate: September 10 2015 $
+.Dd $Mdocdate: January 16 2019 $
.Dt ATOF 3
.Os
.Sh NAME
@@ -70,3 +70,12 @@ An
.Fn atof
function first appeared in
.At v1 .
+.Sh CAVEATS
+On systems other than
+.Ox ,
+the
+.Dv LC_NUMERIC
+.Xr locale 1
+category can cause parsing failures; see CAVEATS in
+.Xr setlocale 3
+for details.
diff --git a/lib/libc/stdlib/strtod.3 b/lib/libc/stdlib/strtod.3
index baca4b223f3..0561f3615d7 100644
--- a/lib/libc/stdlib/strtod.3
+++ b/lib/libc/stdlib/strtod.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strtod.3,v 1.21 2016/06/02 15:07:34 millert Exp $
+.\" $OpenBSD: strtod.3,v 1.22 2019/01/16 12:55:49 schwarze Exp $
.\"
-.Dd $Mdocdate: June 2 2016 $
+.Dd $Mdocdate: January 16 2019 $
.Dt STRTOD 3
.Os
.Sh NAME
@@ -165,3 +165,12 @@ and
.Fn strtold
functions conform to
.St -isoC-99 .
+.Sh CAVEATS
+On systems other than
+.Ox ,
+the
+.Dv LC_NUMERIC
+.Xr locale 1
+category can cause parsing failures; see CAVEATS in
+.Xr setlocale 3
+for details.