Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2010 14:44:05 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202930 - head/lib/libc/gen
Message-ID:  <201001241444.o0OEi5uH058170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Jan 24 14:44:05 2010
New Revision: 202930
URL: http://svn.freebsd.org/changeset/base/202930

Log:
  Improve the ttyname(3) manual page.
  
  - Remove unrelated references to tty(5).
  - Remove unneeded relation with FILE *.
  - Add better cross references.

Modified:
  head/lib/libc/gen/ttyname.3

Modified: head/lib/libc/gen/ttyname.3
==============================================================================
--- head/lib/libc/gen/ttyname.3	Sun Jan 24 14:30:57 2010	(r202929)
+++ head/lib/libc/gen/ttyname.3	Sun Jan 24 14:44:05 2010	(r202930)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001241444.o0OEi5uH058170>