projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no SCCS file; new copyright; att/bsd/shared
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
ttyname.3
diff --git
a/usr/src/lib/libc/gen/ttyname.3
b/usr/src/lib/libc/gen/ttyname.3
index
d9ebcae
..
b71fd25
100644
(file)
--- a/
usr/src/lib/libc/gen/ttyname.3
+++ b/
usr/src/lib/libc/gen/ttyname.3
@@
-1,31
+1,32
@@
-.\" @(#)ttyname.3
4
.1 (Berkeley) %G%
+.\" @(#)ttyname.3
6
.1 (Berkeley) %G%
.\"
.\"
-.TH TTYNAME 3
+.TH TTYNAME 3
""
.AT 3
.SH NAME
ttyname, isatty, ttyslot \- find name of a terminal
.SH SYNOPSIS
.AT 3
.SH NAME
ttyname, isatty, ttyslot \- find name of a terminal
.SH SYNOPSIS
-.B char *ttyname(fildes)
+.B char *ttyname(fil
e
des)
.PP
.PP
-.B isatty(fildes)
+.B isatty(fil
e
des)
.PP
.B ttyslot()
.SH DESCRIPTION
.I Ttyname
returns a pointer to the null-terminated path name
of the terminal device associated with file descriptor
.PP
.B ttyslot()
.SH DESCRIPTION
.I Ttyname
returns a pointer to the null-terminated path name
of the terminal device associated with file descriptor
-.IR fildes .
+.I filedes
+(this is a system file descriptor and has nothing to do with the
+standard I/O FILE typedef).
.PP
.I Isatty
returns 1 if
.PP
.I Isatty
returns 1 if
-.I fildes
+.I fil
e
des
is associated with a terminal device, 0 otherwise.
.PP
.I Ttyslot
returns the number of the entry in the
.IR ttys (5)
is associated with a terminal device, 0 otherwise.
.PP
.I Ttyslot
returns the number of the entry in the
.IR ttys (5)
-file for the control terminal of the
-current process.
+file for the control terminal of the current process.
.SH FILES
/dev/\(**
.br
.SH FILES
/dev/\(**
.br
@@
-35,7
+36,7
@@
ioctl(2), ttys(5)
.SH DIAGNOSTICS
.I Ttyname
returns a null pointer (0) if
.SH DIAGNOSTICS
.I Ttyname
returns a null pointer (0) if
-.I fildes
+.I fil
e
des
does not describe a terminal device in directory `/dev'.
.PP
.I Ttyslot
does not describe a terminal device in directory `/dev'.
.PP
.I Ttyslot