Module Name:    src
Committed By:   christos
Date:           Thu Nov 12 17:30:03 UTC 2015

Modified Files:
        src/lib/libc/stdlib: strtoi.3 strtol.3 strtou.3 strtoul.3

Log Message:
Now that our source tree has binary constants, recognize them.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/stdlib/strtoi.3 \
    src/lib/libc/stdlib/strtou.3
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/stdlib/strtol.3
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/stdlib/strtoul.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdlib/strtoi.3
diff -u src/lib/libc/stdlib/strtoi.3:1.3 src/lib/libc/stdlib/strtoi.3:1.4
--- src/lib/libc/stdlib/strtoi.3:1.3	Sat Jul 11 11:50:56 2015
+++ src/lib/libc/stdlib/strtoi.3	Thu Nov 12 12:30:03 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strtoi.3,v 1.3 2015/07/11 15:50:56 wiz Exp $
+.\"	$NetBSD: strtoi.3,v 1.4 2015/11/12 17:30:03 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -36,7 +36,7 @@
 .\" Created by Kamil Rytarowski, based on ID:
 .\" NetBSD: strtol.3,v 1.31 2015/03/11 09:57:35 wiz Exp
 .\"
-.Dd April 30, 2015
+.Dd November 12, 2015
 .Dt STRTOI 3
 .Os
 .Sh NAME
@@ -98,8 +98,20 @@ If
 is zero or 16,
 the string may then include a
 .Ql 0x
+or
+.Ql 0X
+prefix,
+and the number will be read in base 16; otherwise,
+if the 
+.Fa base
+is zero or 2,
+the string may then include a
+.Ql 0b
+or
+.Ql 0B
 prefix,
-and the number will be read in base 16; otherwise, a zero
+and the number will be read in base 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,
Index: src/lib/libc/stdlib/strtou.3
diff -u src/lib/libc/stdlib/strtou.3:1.3 src/lib/libc/stdlib/strtou.3:1.4
--- src/lib/libc/stdlib/strtou.3:1.3	Sat Jul 11 11:51:33 2015
+++ src/lib/libc/stdlib/strtou.3	Thu Nov 12 12:30:03 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strtou.3,v 1.3 2015/07/11 15:51:33 wiz Exp $
+.\"	$NetBSD: strtou.3,v 1.4 2015/11/12 17:30:03 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -36,7 +36,7 @@
 .\" Created by Kamil Rytarowski, based on ID:
 .\" NetBSD: strtoul.3,v 1.29 2015/03/10 13:00:58 christos Exp
 .\"
-.Dd April 30, 2015
+.Dd November 15, 2015
 .Dt STRTOU 3
 .Os
 .Sh NAME
@@ -97,8 +97,21 @@ If
 is zero or 16,
 the string may then include a
 .Ql 0x
+or
+.Ql 0X
+prefix,
+and the number will be read in base 16; otherwise,
+and the number will be read in base 16; otherwise,
+if the 
+.Fa base
+is zero or 2,
+the string may then include a
+.Ql 0b
+or
+.Ql 0B
 prefix,
-and the number will be read in base 16; otherwise, a zero
+and the number will be read in base 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,

Index: src/lib/libc/stdlib/strtol.3
diff -u src/lib/libc/stdlib/strtol.3:1.32 src/lib/libc/stdlib/strtol.3:1.33
--- src/lib/libc/stdlib/strtol.3:1.32	Fri May  1 10:17:56 2015
+++ src/lib/libc/stdlib/strtol.3	Thu Nov 12 12:30:03 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strtol.3,v 1.32 2015/05/01 14:17:56 christos Exp $
+.\"	$NetBSD: strtol.3,v 1.33 2015/11/12 17:30:03 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     from: @(#)strtol.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd April 30, 2015
+.Dd November 15, 2015
 .Dt STRTOL 3
 .Os
 .Sh NAME
@@ -113,8 +113,20 @@ If
 is zero or 16,
 the string may then include a
 .Ql 0x
+or
+.Ql 0X
+prefix,
+and the number will be read in base 16; otherwise,
+if the 
+.Fa base
+is zero or 2,
+the string may then include a
+.Ql 0b
+or
+.Ql 0B
 prefix,
-and the number will be read in base 16; otherwise, a zero
+and the number will be read in base 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,

Index: src/lib/libc/stdlib/strtoul.3
diff -u src/lib/libc/stdlib/strtoul.3:1.31 src/lib/libc/stdlib/strtoul.3:1.32
--- src/lib/libc/stdlib/strtoul.3:1.31	Sun May  3 08:29:28 2015
+++ src/lib/libc/stdlib/strtoul.3	Thu Nov 12 12:30:03 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strtoul.3,v 1.31 2015/05/03 12:29:28 wiz Exp $
+.\"	$NetBSD: strtoul.3,v 1.32 2015/11/12 17:30:03 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     from: @(#)strtoul.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd April 30, 2015
+.Dd November 15, 2015
 .Dt STRTOUL 3
 .Os
 .Sh NAME
@@ -113,8 +113,21 @@ If
 is zero or 16,
 the string may then include a
 .Ql 0x
+or
+.Ql 0X
+prefix,
+and the number will be read in base 16; otherwise,
+and the number will be read in base 16; otherwise,
+if the 
+.Fa base
+is zero or 2,
+the string may then include a
+.Ql 0b
+or
+.Ql 0B
 prefix,
-and the number will be read in base 16; otherwise, a zero
+and the number will be read in base 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,

Reply via email to