diff options
author | wes <wes@FreeBSD.org> | 1999-11-28 23:28:49 +0000 |
---|---|---|
committer | wes <wes@FreeBSD.org> | 1999-11-28 23:28:49 +0000 |
commit | 6c73ef33e3ddc45ff955bdce14f81f2496609a4a (patch) | |
tree | 804c6f0a31679b8b101181b83c605d779db316dc /lib/libc/gen/ctermid.3 | |
parent | b47b66375e0f252552a738cc1ea63dd564a92887 (diff) | |
download | FreeBSD-src-6c73ef33e3ddc45ff955bdce14f81f2496609a4a.zip FreeBSD-src-6c73ef33e3ddc45ff955bdce14f81f2496609a4a.tar.gz |
Provide and document ctermid_r function.
Diffstat (limited to 'lib/libc/gen/ctermid.3')
-rw-r--r-- | lib/libc/gen/ctermid.3 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/gen/ctermid.3 b/lib/libc/gen/ctermid.3 index e3da33a..3b1668f 100644 --- a/lib/libc/gen/ctermid.3 +++ b/lib/libc/gen/ctermid.3 @@ -42,6 +42,8 @@ .Fd #include <stdio.h> .Ft char * .Fn ctermid "char *buf" +.Ft char * +.Fn ctermid_r "char *buf" .Sh DESCRIPTION The .Fn ctermid @@ -64,6 +66,17 @@ file .Aq Pa stdio.h ) bytes long. .Pp +.Fn ctermid_r +provides the same functionality as +.Fn ctermid +except that if +.Ar buf +is a +.Dv NULL +pointer, +.Dv NULL +is returned. +.Pp The current implementation simply returns .Ql /dev/tty . .Sh RETURN VALUES |