NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERRORS | ATTRIBUTES
#include <unistd.h>pid_t getpid(void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
getpid() 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.
The getpid() and getppid() functions are always successful, and no return value is reserved to indicate an error.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
MT-Level | Async-Signal-Safe |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERRORS | ATTRIBUTES