]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/ttyname.3
Libc-825.24.tar.gz
[apple/libc.git] / gen / FreeBSD / ttyname.3
index c1d1b4fd173a5364ef0042f03a39470d20a3ebd1..0012549ecc807fd55f83c4a965014b39d4c03f38 100644 (file)
 .Dt TTYNAME 3
 .Os
 .Sh NAME
 .Dt TTYNAME 3
 .Os
 .Sh NAME
-.Nm ttyname ,
 .Nm isatty ,
 .Nm isatty ,
+.Nm ttyname ,
 .Nm ttyslot
 .Nd get name of associated terminal (tty) from file descriptor
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In unistd.h
 .Nm ttyslot
 .Nd get name of associated terminal (tty) from file descriptor
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In unistd.h
-.Ft char *
-.Fn ttyname "int fd"
 .Ft int
 .Ft int
-.Fn isatty "int fd"
+.Fo isatty
+.Fa "int fildes"
+.Fc
+.Ft char *
+.Fo ttyname
+.Fa "int fildes"
+.Fc
 .Ft int
 .Ft int
-.Fn ttyslot void
+.Fo ttyslot
+.Fa void
+.Fc
 .Sh DESCRIPTION
 These functions operate on the system file descriptors for terminal
 type devices.
 .Sh DESCRIPTION
 These functions operate on the system file descriptors for terminal
 type devices.
@@ -70,7 +76,7 @@ The
 .Fn isatty
 function
 determines if the file descriptor
 .Fn isatty
 function
 determines if the file descriptor
-.Fa fd
+.Fa fildes
 refers to a valid
 terminal type device.
 .Pp
 refers to a valid
 terminal type device.
 .Pp
@@ -80,7 +86,7 @@ function
 gets the related device name of
 a file descriptor for which
 .Fn isatty
 gets the related device name of
 a file descriptor for which
 .Fn isatty
-is true
+is true.
 .Pp
 The
 .Fn ttyslot
 .Pp
 The
 .Fn ttyslot
@@ -94,16 +100,14 @@ The
 function
 returns the null terminated name if the device is found and
 .Fn isatty
 function
 returns the null terminated name if the device is found and
 .Fn isatty
-is true; otherwise
-a
+is true; otherwise, a
 .Dv NULL
 pointer is returned.
 .Pp
 The
 .Fn ttyslot
 .Dv NULL
 pointer is returned.
 .Pp
 The
 .Fn ttyslot
-function
-returns the unit number of the device file if found; otherwise
-the value zero is returned.
+function returns the unit number of the device file if found;
+otherwise, the value zero is returned.
 .Sh FILES
 .Bl -tag -width /etc/ttys -compact
 .It Pa /dev/\(**
 .Sh FILES
 .Bl -tag -width /etc/ttys -compact
 .It Pa /dev/\(**