diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-01-24 14:44:05 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-24 14:44:05 +0000 |
commit | 89c3567d326484cde0105bf74312c5d8a6cc56f6 (patch) | |
tree | 81b8c0d3f78725d703dce808a1f87344b7da0a07 /lib/libc/gen/ttyname.3 | |
parent | 3c247358feb9691f8d35b0d9037a3fd0d9089ac1 (diff) | |
download | src-89c3567d326484cde0105bf74312c5d8a6cc56f6.tar.gz src-89c3567d326484cde0105bf74312c5d8a6cc56f6.zip |
Improve the ttyname(3) manual page.
- Remove unrelated references to tty(5).
- Remove unneeded relation with FILE *.
- Add better cross references.
Notes
Notes:
svn path=/head/; revision=202930
Diffstat (limited to 'lib/libc/gen/ttyname.3')
-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 e58383331eac..9420bbe8f9e4 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 |