Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (f - i) getppid(2)
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).
527186-023 Hewlett-Packard Company 3−81