Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (f - i) getpgrp(2)
NAME
getpgrp - Gets the process group ID of the calling process
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <unistd.h>
pid_t getpgrp(void);
DESCRIPTION
The getpgrp() function returns the process group ID of the calling process.
Use From the Guardian Environment
Calls to getpgrp() from Guardian processes are not successful.
RETURN VALUES
When called by an OSS process, this function returns the requested process group ID. When
called by a Guardian process, Guardian trap number 5 is set.
RELATED INFORMATION
Commands: ps(1).
Functions: exec(2), _exit(2), fork(2), kill(2), setpgid(2), setsid(2), tdm_fork(2).
527186-023 Hewlett-Packard Company 379