.\" 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
.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
.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
.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/.