]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/ctermid.3
Libc-1082.50.1.tar.gz
[apple/libc.git] / gen / FreeBSD / ctermid.3
index dfc28c3759dfe516cd79f0736421ecc26a83e6c2..2085245e5a14e65127a1f65d9bc4909d8fcb87da 100644 (file)
 .Dt CTERMID 3
 .Os
 .Sh NAME
-.Nm ctermid
+.Nm ctermid ,
+.Nm ctermid_r
 .Nd generate terminal pathname
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In stdio.h
 .Ft char *
-.Fn ctermid "char *buf"
+.Fn ctermid "char *s"
 .Ft char *
-.Fn ctermid_r "char *buf"
+.Fn ctermid_r "char *s"
 .Sh DESCRIPTION
 The
 .Fn ctermid
-function generates a string, that, when used as a pathname, refers to
+function generates a string that, when used as a pathname, refers to
 the current controlling terminal of the calling process.
 .Pp
 If
-.Fa buf
+.Fa s
 is the
 .Dv NULL
 pointer, a pointer to a static area is returned.
 Otherwise, the pathname is copied into the memory referenced by
-.Fa buf .
+.Fa s .
 The argument
-.Fa buf
+.Fa s
 is assumed to be at least
 .Dv L_ctermid
 (as defined in the include
@@ -68,9 +69,9 @@ The
 .Fn ctermid_r
 function
 provides the same functionality as
-.Fn ctermid
+.Fn ctermid ,
 except that if
-.Fa buf
+.Fa s
 is a
 .Dv NULL
 pointer,