about summary refs log tree commit diff
path: root/manual/job.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/job.texi')
-rw-r--r--manual/job.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/manual/job.texi b/manual/job.texi
index f97aceb61c..342aee326b 100644
--- a/manual/job.texi
+++ b/manual/job.texi
@@ -1247,3 +1247,21 @@ The @var{pgid} isn't a process group in the same session as the calling
 process.
 @end table
 @end deftypefun
+
+@comment termios.h
+@comment Unix98
+@deftypefun pid_t tcgetsid (int @var{fildes})
+This function is used to obtain the process group ID of the session
+for which terminal specified by @var{fildes} is the controlling terminal.
+If the call is successful the group ID is returned.  Otherwise the
+return value is @code{(pid_t) -1} and the global variable @var{errno}
+is set to the following value:
+@table @code
+@item EBADF
+The @var{filedes} argument is not a valid file descriptor.
+
+@item ENOTTY
+The calling process does not have a controlling terminal, or the file
+ins not the controlling terminal.
+@end table
+@end deftypefun