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

getpid(2) OSS System Calls Reference Manual
NAME
getpid - Gets the 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 getpid(void);
DESCRIPTION
The getpid() function returns the OSS process ID of the calling process.
Use From the Guardian Environment
Calls to getpid() 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).
380 Hewlett-Packard Company 527186-023