getpid()

get process ID 

Function


SYNOPSIS

#include <sys/types.h>

#include <unistd.h>

pid_t getpid(void);


DESCRIPTION

The getpid() function returns the process ID of the calling process.


PARAMETERS

None.


RETURN VALUES

When completed, getpid() returns the 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(), getppid(), setpgid(), setpgrp(), setsid(), vfork()


PTC MKS Toolkit 10.4 Documentation Build 39.