getppid()

get parent process ID 

Function


SYNOPSIS

#include <sys/types.h>

#include <unistd.h>

pid_t getppid(void);


DESCRIPTION

The getppid() function returns the parent process ID of the calling process.


PARAMETERS

None.


RETURN VALUES

When completed, getppid() returns the parent process ID of the calling process. This call always returns successfully.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
_NutForkExecl(), _NutForkExecle(), _NutForkExeclp(), _NutForkExeclpe(), _NutForkExecv(), _NutForkExecve(), _NutForkExecvp(), _NutForkExecvpe(), _NutQueryPid(), execl(), execle(), execlp(), execlpe(), execv(), execve(), execvp(), execvpe(), fork(), getpgid(), getpgrp(), setpgid(), setpgrp(), setsid(), vfork()


PTC MKS Toolkit 10.3 Documentation Build 39.