Open System Services System Calls Reference Manual (G06.25+, H06.03+)

getpgrp(2) OSS System Calls Reference Manual
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).
344 Hewlett-Packard Company 527186-003