diff options
author | ed <ed@FreeBSD.org> | 2010-01-24 14:44:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-24 14:44:05 +0000 |
commit | a2ddef4efb5d078a5dbc5b621b3655da63a16c7f (patch) | |
tree | 81b8c0d3f78725d703dce808a1f87344b7da0a07 /lib/libc | |
parent | 7d3996ff481a91f864c1644b501e05640f80099d (diff) | |
download | FreeBSD-src-a2ddef4efb5d078a5dbc5b621b3655da63a16c7f.zip FreeBSD-src-a2ddef4efb5d078a5dbc5b621b3655da63a16c7f.tar.gz |
Improve the ttyname(3) manual page.
- Remove unrelated references to tty(5).
- Remove unneeded relation with FILE *.
- Add better cross references.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/ttyname.3 | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/lib/libc/gen/ttyname.3 b/lib/libc/gen/ttyname.3 index e583833..9420bbe 100644 --- a/lib/libc/gen/ttyname.3 +++ b/lib/libc/gen/ttyname.3 @@ -47,19 +47,7 @@ .Ft int .Fn isatty "int fd" .Sh DESCRIPTION -These functions operate on the system file descriptors for terminal -type devices. -These descriptors are not related to the standard -.Tn I/O -.Dv FILE -typedef, but refer to the special device files found in -.Pa /dev -and for which an entry exists -in the initialization file -.Pa /etc/ttys -or pseudo-terminals. -(See -.Xr ttys 5 . ) +These functions operate on file descriptors for terminal type devices. .Pp The .Fn isatty @@ -100,11 +88,6 @@ The .Fn ttyname_r function returns 0 if successful. Otherwise an error number is returned. -.Sh FILES -.Bl -tag -width ".Pa /etc/ttys" -compact -.It Pa /dev/\(** -.It Pa /etc/ttys -.El .Sh ERRORS The .Fn ttyname_r @@ -122,8 +105,10 @@ argument is smaller than the length of the string to be returned. .El .Sh SEE ALSO -.Xr ioctl 2 , -.Xr ttys 5 +.Xr fdevname 3 , +.Xr ptsname 3 , +.Xr tcgetattr 3 , +.Xr tty 4 .Sh HISTORY The .Fn isatty |