summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2017-07-03 21:28:48 +0000
committerwiz <wiz@NetBSD.org>2017-07-03 21:28:48 +0000
commit56b14ee00121a3a960d2fbe103c85e147ac57103 (patch)
tree05478e811140b3d30b452dcff8e4df8bdab6e3f8 /lib/libc/stdlib
parent7c0084bd3e3114326ae5e7336142439f1d2a10e1 (diff)
Remove workaround for ancient HTML generation code.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt.36
-rw-r--r--lib/libc/stdlib/getopt_long.36
-rw-r--r--lib/libc/stdlib/getsubopt.34
-rw-r--r--lib/libc/stdlib/ptsname.34
-rw-r--r--lib/libc/stdlib/random.34
-rw-r--r--lib/libc/stdlib/strtoi.34
-rw-r--r--lib/libc/stdlib/strtol.36
-rw-r--r--lib/libc/stdlib/strtou.34
-rw-r--r--lib/libc/stdlib/strtoul.34
9 files changed, 21 insertions, 21 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index facef2c1d85..9aa9b9f83a7 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getopt.3,v 1.34 2014/06/05 22:09:50 wiz Exp $
+.\" $NetBSD: getopt.3,v 1.35 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -181,7 +181,7 @@ while ((ch = getopt(argc, argv, "bf:")) != -1) {
bflag = 1;
break;
case 'f':
- if ((fd = open(optarg, O_RDONLY, 0)) \*[Lt] 0) {
+ if ((fd = open(optarg, O_RDONLY, 0)) < 0) {
(void)fprintf(stderr,
"myname: %s: %s\en", optarg, strerror(errno));
exit(1);
@@ -300,7 +300,7 @@ while ((ch = getopt(argc, argv, "0123456789")) != -1) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
p = argv[optind - 1];
- if (p[0] == '-' \*[Am]\*[Am] p[1] == ch \*[Am]\*[Am] !p[2])
+ if (p[0] == '-' && p[1] == ch && !p[2])
length = ch - '0';
else
length = strtol(argv[optind] + 1, NULL, 10);
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index 6d03631706a..f36cc6c2779 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getopt_long.3,v 1.18 2007/07/02 17:56:17 ginsbach Exp $
+.\" $NetBSD: getopt_long.3,v 1.19 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -169,7 +169,7 @@ int daggerset;
static struct option longopts[] = {
{ "buffy", no_argument, 0, 'b' },
{ "fluoride", required_argument, 0, 'f' },
- { "daggerset", no_argument, \*[Am]daggerset, 1 },
+ { "daggerset", no_argument, &daggerset, 1 },
{ NULL, 0, NULL, 0 }
};
@@ -180,7 +180,7 @@ while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
bflag = 1;
break;
case 'f':
- if ((fd = open(optarg, O_RDONLY, 0)) \*[Lt] 0) {
+ if ((fd = open(optarg, O_RDONLY, 0)) < 0) {
(void)fprintf(stderr,
"myname: %s: %s\en", optarg, strerror(errno));
exit(1);
diff --git a/lib/libc/stdlib/getsubopt.3 b/lib/libc/stdlib/getsubopt.3
index 9a791cb2c24..f48ecd7d7d8 100644
--- a/lib/libc/stdlib/getsubopt.3
+++ b/lib/libc/stdlib/getsubopt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getsubopt.3,v 1.14 2009/11/17 15:02:08 wiz Exp $
+.\" $NetBSD: getsubopt.3,v 1.15 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -115,7 +115,7 @@ while ((ch = getopt(argc, argv, "ab:")) != \-1) {
case 'b':
options = optarg;
while (*options) {
- switch(getsubopt(\*[Am]options, tokens, \*[Am]value)) {
+ switch(getsubopt(&options, tokens, &value)) {
case ONE:
/* process ``one'' sub option */
break;
diff --git a/lib/libc/stdlib/ptsname.3 b/lib/libc/stdlib/ptsname.3
index 8c41c83dd5e..0671ae8526f 100644
--- a/lib/libc/stdlib/ptsname.3
+++ b/lib/libc/stdlib/ptsname.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: ptsname.3,v 1.9 2014/01/10 09:43:15 wiz Exp $
+.\" $NetBSD: ptsname.3,v 1.10 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -137,7 +137,7 @@ The
function is equivalent to:
.Bd -literal
struct ptmget pm;
- return ioctl(masterfd, TIOCPTSNAME, \*[Am]pm) == -1 ? NULL : pm.sn;
+ return ioctl(masterfd, TIOCPTSNAME, &pm) == -1 ? NULL : pm.sn;
.Ed
.Pp
Both the
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index cf35ca44e37..c83308a6980 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: random.3,v 1.21 2014/06/12 18:46:12 christos Exp $
+.\" $NetBSD: random.3,v 1.22 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -85,7 +85,7 @@ All the bits generated by
.Fn random
are usable.
For example,
-.Sq Li random()\*[Am]01
+.Sq Li random()&01
will produce a random binary value.
.Pp
Like
diff --git a/lib/libc/stdlib/strtoi.3 b/lib/libc/stdlib/strtoi.3
index dfdbe59aedf..c0d10c0c4ff 100644
--- a/lib/libc/stdlib/strtoi.3
+++ b/lib/libc/stdlib/strtoi.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtoi.3,v 1.6 2015/11/13 16:00:32 christos Exp $
+.\" $NetBSD: strtoi.3,v 1.7 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -198,7 +198,7 @@ points to the first unconverted character.
The given string was out of range; the value converted has been clamped;
or the range given was invalid, i.e.
.Fa lo
-\*[Gt]
+>
.Fa hi .
.El
.Sh SEE ALSO
diff --git a/lib/libc/stdlib/strtol.3 b/lib/libc/stdlib/strtol.3
index 28bbd831b57..94555396e44 100644
--- a/lib/libc/stdlib/strtol.3
+++ b/lib/libc/stdlib/strtol.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtol.3,v 1.39 2016/11/04 20:19:58 riastradh Exp $
+.\" $NetBSD: strtol.3,v 1.40 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -224,7 +224,7 @@ long lval;
\&...
errno = 0;
-lval = strtol(buf, \*[Am]ep, 10);
+lval = strtol(buf, &ep, 10);
if (ep == buf)
goto not_a_number;
if (*ep != '\e0')
@@ -265,7 +265,7 @@ long lval;
\&...
errno = 0;
-lval = strtol(buf, \*[Am]ep, 10);
+lval = strtol(buf, &ep, 10);
if (ep == buf)
goto not_a_number;
if (*ep != '\e0')
diff --git a/lib/libc/stdlib/strtou.3 b/lib/libc/stdlib/strtou.3
index b88c34319ee..98ceb8ce5cb 100644
--- a/lib/libc/stdlib/strtou.3
+++ b/lib/libc/stdlib/strtou.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtou.3,v 1.6 2015/11/13 16:00:32 christos Exp $
+.\" $NetBSD: strtou.3,v 1.7 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -198,7 +198,7 @@ points to the first unconverted character.
The given string was out of range; the value converted has been clamped; or
the range given was invalid, i.e.
.Fa lo
-\*[Gt]
+>
.Fa hi .
.El
.Sh SEE ALSO
diff --git a/lib/libc/stdlib/strtoul.3 b/lib/libc/stdlib/strtoul.3
index 1cb5b6d0fb2..c667bdb9a17 100644
--- a/lib/libc/stdlib/strtoul.3
+++ b/lib/libc/stdlib/strtoul.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtoul.3,v 1.36 2016/11/05 20:57:31 riastradh Exp $
+.\" $NetBSD: strtoul.3,v 1.37 2017/07/03 21:32:50 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -226,7 +226,7 @@ unsigned long ulval;
\&...
errno = 0;
-ulval = strtoul(buf, \*[Am]ep, 10);
+ulval = strtoul(buf, &ep, 10);
if (ep == buf)
goto not_a_number;
if (*ep != '\e0')