OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / ctermid.3
index a0dc7bf..2b98a12 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" License.
+.\" %%%LICENSE_END
+.\"
 .\" Modified Sat Jul 24 19:51:06 1993 by Rik Faith (faith@cs.unc.edu)
-.TH CTERMID 3  2007-07-26 "GNU" "Linux Programmer's Manual"
+.TH CTERMID 3  2013-07-04 "GNU" "Linux Programmer's Manual"
 .SH NAME
 ctermid \- get controlling terminal name
 .SH SYNOPSIS
@@ -54,9 +56,15 @@ points to a buffer used to hold the terminal pathname.
 The symbolic constant
 .B L_ctermid
 is the maximum number of characters in the returned pathname.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 The pointer to the pathname.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR ctermid ()
+function is thread-safe with exceptions.
+It is not thread-safe if called with a NULL parameter.
+.SH CONFORMING TO
 Svr4, POSIX.1-2001.
 .SH BUGS
 The path returned may not uniquely identify the controlling
@@ -66,5 +74,13 @@ terminal; it may, for example, be
 It is not assured that the program can open the terminal.
 .\" in glibc 2.3.x, x >= 4, the glibc headers threw an error
 .\" if ctermid() was given an argument; fixed in 2.4.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ttyname (3)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.