Gets the parent process ID of the specified process.
#include <sys/types.h> #include <sys/errno.h>
pid_t getppidx (ProcessID) pid_t ProcessID;
ProcessID | Specifies the process ID. If this parameter is 0, then the parent process ID of the calling process will be returned. |
The getppidx kernel service returns the parent process ID of the specified process.
The getppidx kernel service can be called from the process environment only.
-1 | Indicates that the ProcessID parameter is invalid. |
The getppidx service returns the parent process ID of the calling process.
The getppidx kernel service is part of the Base Operating System (BOS) Runtime.
The getpid kernel service.
Process and Exception Management Kernel Services and Understanding Execution Environments in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.