Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdlib Now that our source tree has binary constant...



details:   https://anonhg.NetBSD.org/src/rev/eebb03de4827
branches:  trunk
changeset: 341586:eebb03de4827
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 12 17:30:03 2015 +0000

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

diffstat:

 lib/libc/stdlib/strtoi.3  |  18 +++++++++++++++---
 lib/libc/stdlib/strtol.3  |  18 +++++++++++++++---
 lib/libc/stdlib/strtou.3  |  19 ++++++++++++++++---
 lib/libc/stdlib/strtoul.3 |  19 ++++++++++++++++---
 4 files changed, 62 insertions(+), 12 deletions(-)

diffs (162 lines):

diff -r 370e4a9bbec9 -r eebb03de4827 lib/libc/stdlib/strtoi.3
--- a/lib/libc/stdlib/strtoi.3  Thu Nov 12 17:23:51 2015 +0000
+++ b/lib/libc/stdlib/strtoi.3  Thu Nov 12 17:30:03 2015 +0000
@@ -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 @@
 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, a zero
+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 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,
diff -r 370e4a9bbec9 -r eebb03de4827 lib/libc/stdlib/strtol.3
--- a/lib/libc/stdlib/strtol.3  Thu Nov 12 17:23:51 2015 +0000
+++ b/lib/libc/stdlib/strtol.3  Thu Nov 12 17:30:03 2015 +0000
@@ -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 @@
 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, a zero
+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 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,
diff -r 370e4a9bbec9 -r eebb03de4827 lib/libc/stdlib/strtou.3
--- a/lib/libc/stdlib/strtou.3  Thu Nov 12 17:23:51 2015 +0000
+++ b/lib/libc/stdlib/strtou.3  Thu Nov 12 17:30:03 2015 +0000
@@ -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 @@
 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, a zero
+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 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,
diff -r 370e4a9bbec9 -r eebb03de4827 lib/libc/stdlib/strtoul.3
--- a/lib/libc/stdlib/strtoul.3 Thu Nov 12 17:23:51 2015 +0000
+++ b/lib/libc/stdlib/strtoul.3 Thu Nov 12 17:30:03 2015 +0000
@@ -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 @@
 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, a zero
+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 2; otherwise,
+a zero
 .Fa base
 is taken as 10 (decimal) unless the next character is
 .Ql 0 ,



Home | Main Index | Thread Index | Old Index