summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2004-05-28 00:10:57 +0000
committerwiz <wiz@NetBSD.org>2004-05-28 00:10:57 +0000
commit508c6e7767adb032aeb56e9d86cdd39dad21db45 (patch)
treec332847807135635db576c035b260a9df6e3f775 /lib/libc/stdlib
parent714885bde599b2ebf67485b3bd234f073dd764e4 (diff)
Uppercase Dt argument; \-1, not -1; sort SEE ALSO; & -> \*[Am].
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/grantpt.36
-rw-r--r--lib/libc/stdlib/posix_openpt.318
-rw-r--r--lib/libc/stdlib/ptsname.39
-rw-r--r--lib/libc/stdlib/unlockpt.36
4 files changed, 20 insertions, 19 deletions
diff --git a/lib/libc/stdlib/grantpt.3 b/lib/libc/stdlib/grantpt.3
index 272d6a5b1ed..c84ed1f1580 100644
--- a/lib/libc/stdlib/grantpt.3
+++ b/lib/libc/stdlib/grantpt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: grantpt.3,v 1.2 2004/05/28 00:06:50 wiz Exp $
+.\" $NetBSD: grantpt.3,v 1.3 2004/05/28 00:10:57 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -35,7 +35,7 @@
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd May 25, 2004
-.Dt grantpt 3
+.Dt GRANTPT 3
.Os
.Sh NAME
.Nm grantpt
@@ -61,7 +61,7 @@ descriptors at the time, all such access will be revoked.
.Sh RETURN VALUES
If successful,
.Fn grantpt
-returns 0; otherwise a value of -1 is returned and
+returns 0; otherwise a value of \-1 is returned and
.Va errno
is set to indicate the error.
.Sh ERRORS
diff --git a/lib/libc/stdlib/posix_openpt.3 b/lib/libc/stdlib/posix_openpt.3
index 57ab825c662..11ec590aae6 100644
--- a/lib/libc/stdlib/posix_openpt.3
+++ b/lib/libc/stdlib/posix_openpt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: posix_openpt.3,v 1.2 2004/05/28 00:06:51 wiz Exp $
+.\" $NetBSD: posix_openpt.3,v 1.3 2004/05/28 00:10:57 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -35,7 +35,7 @@
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd May 25, 2004
-.Dt posix_openpt 3
+.Dt POSIX_OPENPT 3
.Os
.Sh NAME
.Nm posix_openpt
@@ -60,20 +60,20 @@ call.
If successful,
.Fn posix_openpt
returns a non-negative integer, which corresponds to a file descriptor
-pointing to the master pseudo-terminal device. Otherwise, a value of -1
-is returned and
+pointing to the master pseudo-terminal device.
+Otherwise, a value of \-1 is returned and
.Va errno
is set to indicate the error.
.Sh SEE ALSO
+.Xr ioctl 2 ,
+.Xr open 2 ,
.Xr grantpt 3 ,
-.Xr unlockpt 3 ,
.Xr ptsname 3 ,
-.Xr ioctl 2 ,
-.Xr open 2
+.Xr unlockpt 3
.Sh RATIONALE
The standards committee did not want to directly expose the cloning device,
-thus decided to wrap the functionality in this function. The equivalent
-code would be:
+thus decided to wrap the functionality in this function.
+The equivalent code would be:
.Bd -literal
int
posix_openpt(int oflag) {
diff --git a/lib/libc/stdlib/ptsname.3 b/lib/libc/stdlib/ptsname.3
index 5772eb31271..1eb982d6d26 100644
--- a/lib/libc/stdlib/ptsname.3
+++ b/lib/libc/stdlib/ptsname.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: ptsname.3,v 1.2 2004/05/28 00:06:51 wiz Exp $
+.\" $NetBSD: ptsname.3,v 1.3 2004/05/28 00:10:57 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -35,7 +35,7 @@
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd May 25, 2004
-.Dt ptsname 3
+.Dt PTSNAME 3
.Os
.Sh NAME
.Nm ptsname
@@ -59,7 +59,8 @@ function is not re-entrant or thread-safe.
If successful,
.Fn ptsname
returns a pointer to a nul-terminated string containing the pathname
-of the slave pseudo-terminal device. If an error occurs
+of the slave pseudo-terminal device.
+If an error occurs
.Fn ptsname
will return
.Dv NULL
@@ -91,7 +92,7 @@ The
function is equivalent to:
.Bd -literal
struct ptmget pm;
- return ioctl(masterfd, TIOCPTSNAME, &pm) == -1 ? NULL : pm.ps;
+ return ioctl(masterfd, TIOCPTSNAME, \*[Am]pm) == -1 ? NULL : pm.ps;
.Ed
.Sh SEE ALSO
.Xr ioctl 2 ,
diff --git a/lib/libc/stdlib/unlockpt.3 b/lib/libc/stdlib/unlockpt.3
index 28063eb12ed..3028cc68349 100644
--- a/lib/libc/stdlib/unlockpt.3
+++ b/lib/libc/stdlib/unlockpt.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: unlockpt.3,v 1.2 2004/05/28 00:06:51 wiz Exp $
+.\" $NetBSD: unlockpt.3,v 1.3 2004/05/28 00:10:57 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -35,7 +35,7 @@
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd May 25, 2004
-.Dt unlockpt 3
+.Dt UNLOCKPT 3
.Os
.Sh NAME
.Nm unlockpt
@@ -57,7 +57,7 @@ slave pseudo-terminal device.
.Sh RETURN VALUES
If successful,
.Fn unlockpt
-returns 0; otherwise a value of -1 is returned and
+returns 0; otherwise a value of \-1 is returned and
.Va errno
is set to indicate the error.
.Sh ERRORS