1GETPGRP(P) POSIX Programmer's Manual GETPGRP(P)
2
3
4
6 getpgrp - get the process group ID of the calling process
7
9 #include <unistd.h>
10
11 pid_t getpgrp(void);
12
13
15 The getpgrp() function shall return the process group ID of the calling
16 process.
17
19 The getpgrp() function shall always be successful and no return value
20 is reserved to indicate an error.
21
23 No errors are defined.
24
25 The following sections are informative.
26
28 None.
29
31 None.
32
34 4.3 BSD provides a getpgrp() function that returns the process group ID
35 for a specified process. Although this function supports job control,
36 all known job control shells always specify the calling process with
37 this function. Thus, the simpler System V getpgrp() suffices, and the
38 added complexity of the 4.3 BSD getpgrp() is provided by the XSI extenâ
39 sion getpgid().
40
42 None.
43
45 exec() , fork() , getpgid() , getpid() , getppid() , kill() , setpgid()
46 , setsid() , the Base Definitions volume of IEEE Std 1003.1-2001,
47 <sys/types.h>, <unistd.h>
48
50 Portions of this text are reprinted and reproduced in electronic form
51 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
52 -- Portable Operating System Interface (POSIX), The Open Group Base
53 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
54 Electrical and Electronics Engineers, Inc and The Open Group. In the
55 event of any discrepancy between this version and the original IEEE and
56 The Open Group Standard, the original IEEE and The Open Group Standard
57 is the referee document. The original Standard can be obtained online
58 at http://www.opengroup.org/unix/online.html .
59
60
61
62IEEE/The Open Group 2003 GETPGRP(P)