| manpages.info - online man pages | ![]() |
|||
|
getppid (2) Table of Contents
Namegetpid, getppid - get parent or calling process identification
Synopsis
#include <sys/types.h>
pid_t
pid_t
DescriptionGetpid() returns the process ID of the calling process. The ID is guaranteed to be unique and is useful for constructing temporary file names.
Getppid() returns the process ID of the parent of the calling process.
ErrorsThe getpid() and getppid() functions are always successful, and no return value is reserved to indicate an error.
See Also
StandardsGetpid() and getppid() conform to IEEE Std 1003.1-1988 (``POSIX.1'').
|