]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/ttyname.3.patch
Libc-498.tar.gz
[apple/libc.git] / gen / FreeBSD / ttyname.3.patch
CommitLineData
224c7076
A
1--- _SB/Libc/gen/FreeBSD/ttyname.3 2003-05-20 15:21:03.000000000 -0700
2+++ _SB/Libc/gen/FreeBSD/ttyname.3.edit 2006-06-28 16:55:51.000000000 -0700
3@@ -36,20 +36,26 @@
4 .Dt TTYNAME 3
5 .Os
6 .Sh NAME
7-.Nm ttyname ,
8 .Nm isatty ,
9+.Nm ttyname ,
10 .Nm ttyslot
11 .Nd get name of associated terminal (tty) from file descriptor
12 .Sh LIBRARY
13 .Lb libc
14 .Sh SYNOPSIS
15 .In unistd.h
16-.Ft char *
17-.Fn ttyname "int fd"
18 .Ft int
19-.Fn isatty "int fd"
20+.Fo isatty
21+.Fa "int fildes"
22+.Fc
23+.Ft char *
24+.Fo ttyname
25+.Fa "int fildes"
26+.Fc
27 .Ft int
28-.Fn ttyslot void
29+.Fo ttyslot
30+.Fa void
31+.Fc
32 .Sh DESCRIPTION
33 These functions operate on the system file descriptors for terminal
34 type devices.
35@@ -70,7 +76,7 @@
36 .Fn isatty
37 function
38 determines if the file descriptor
39-.Fa fd
40+.Fa fildes
41 refers to a valid
42 terminal type device.
43 .Pp
44@@ -80,7 +86,7 @@
45 gets the related device name of
46 a file descriptor for which
47 .Fn isatty
48-is true
49+is true.
50 .Pp
51 The
52 .Fn ttyslot
53@@ -94,16 +100,14 @@
54 function
55 returns the null terminated name if the device is found and
56 .Fn isatty
57-is true; otherwise
58-a
59+is true; otherwise, a
60 .Dv NULL
61 pointer is returned.
62 .Pp
63 The
64 .Fn ttyslot
65-function
66-returns the unit number of the device file if found; otherwise
67-the value zero is returned.
68+function returns the unit number of the device file if found;
69+otherwise, the value zero is returned.
70 .Sh FILES
71 .Bl -tag -width /etc/ttys -compact
72 .It Pa /dev/\(**