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

This commit is contained in:
christos 2015-11-12 17:30:03 +00:00
parent 557b696a7a
commit 6ea48155ff
4 changed files with 62 additions and 12 deletions

View File

@ -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, 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 ,

View File

@ -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, 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 ,

View File

@ -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, 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 ,

View File

@ -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, 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 ,