OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / tcgetpgrp.3
index 4358244..4a27352 100644 (file)
@@ -22,7 +22,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH TCGETPGRP 3 2003-01-28 "GNU" "Linux Programmer's Manual"
+.TH TCGETPGRP 3 2014-01-13 "GNU" "Linux Programmer's Manual"
 .SH NAME
 tcgetpgrp, tcsetpgrp \- get and set terminal foreground process group
 .SH SYNOPSIS
@@ -42,12 +42,15 @@ which must be the controlling terminal of the calling process.
 .LP
 The function
 .BR tcsetpgrp ()
-makes the process group with process group ID \fIpgrp\fP
+makes the process group with process group ID
+.I pgrp
 the foreground process group on the terminal associated to
 .IR fd ,
 which must be the controlling terminal of the calling process,
 and still be associated with its session.
-Moreover, \fIpgrp\fP must be a (nonempty) process group belonging to
+Moreover,
+.I pgrp
+must be a (nonempty) process group belonging to
 the same session as the calling process.
 .LP
 If
@@ -103,6 +106,13 @@ of the calling process.
 .I pgrp
 has a supported value, but is not the process group ID of a
 process in the same session as the calling process.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR tcgetpgrp ()
+and
+.BR tcsetpgrp ()
+functions are thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -118,3 +128,11 @@ The functions are POSIX inventions.
 .BR setpgid (2),
 .BR setsid (2),
 .BR credentials (7)
+.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/.