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

getppid(2) OSS System Calls Reference Manual
NAME
getppid - Gets the parent OSS process ID
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 getppid(void);
DESCRIPTION
The getppid( ) function returns the parent OSS process ID of the calling process. If the parent
process terminates or the calling process was created by a Guardian process, getppid() returns a
parent OSS process ID of 1.
Use From the Guardian Environment
Calls to getppid( ) from Guardian processes are not successful.
RETURN VALUES
When called by an OSS process, this function returns the requested OSS process 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).
346 Hewlett-Packard Company 527186-003