Uppercase Dt argument; \-1, not -1; sort SEE ALSO; & -> \*[Am].
This commit is contained in:
parent
714885bde5
commit
508c6e7767
@ -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
|
||||
|
@ -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 grantpt 3 ,
|
||||
.Xr unlockpt 3 ,
|
||||
.Xr ptsname 3 ,
|
||||
.Xr ioctl 2 ,
|
||||
.Xr open 2
|
||||
.Xr open 2 ,
|
||||
.Xr grantpt 3 ,
|
||||
.Xr ptsname 3 ,
|
||||
.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) {
|
||||
|
@ -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 ,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user