]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- _SB/Libc/gen/FreeBSD/ctermid.3 2004-11-25 11:38:00.000000000 -0800 |
2 | +++ _SB/Libc/gen/FreeBSD/ctermid.3.edit 2006-06-28 16:55:50.000000000 -0700 | |
3 | @@ -36,31 +36,32 @@ | |
4 | .Dt CTERMID 3 | |
5 | .Os | |
6 | .Sh NAME | |
7 | -.Nm ctermid | |
8 | +.Nm ctermid , | |
9 | +.Nm ctermid_r | |
10 | .Nd generate terminal pathname | |
11 | .Sh LIBRARY | |
12 | .Lb libc | |
13 | .Sh SYNOPSIS | |
14 | .In stdio.h | |
15 | .Ft char * | |
16 | -.Fn ctermid "char *buf" | |
17 | +.Fn ctermid "char *s" | |
18 | .Ft char * | |
19 | -.Fn ctermid_r "char *buf" | |
20 | +.Fn ctermid_r "char *s" | |
21 | .Sh DESCRIPTION | |
22 | The | |
23 | .Fn ctermid | |
24 | -function generates a string, that, when used as a pathname, refers to | |
25 | +function generates a string that, when used as a pathname, refers to | |
26 | the current controlling terminal of the calling process. | |
27 | .Pp | |
28 | If | |
29 | -.Fa buf | |
30 | +.Fa s | |
31 | is the | |
32 | .Dv NULL | |
33 | pointer, a pointer to a static area is returned. | |
34 | Otherwise, the pathname is copied into the memory referenced by | |
35 | -.Fa buf . | |
36 | +.Fa s . | |
37 | The argument | |
38 | -.Fa buf | |
39 | +.Fa s | |
40 | is assumed to be at least | |
41 | .Dv L_ctermid | |
42 | (as defined in the include | |
43 | @@ -72,9 +73,9 @@ | |
44 | .Fn ctermid_r | |
45 | function | |
46 | provides the same functionality as | |
47 | -.Fn ctermid | |
48 | +.Fn ctermid , | |
49 | except that if | |
50 | -.Fa buf | |
51 | +.Fa s | |
52 | is a | |
53 | .Dv NULL | |
54 | pointer, |