COHERENT manpages
This page displays the COHERENT manpage for getpid() [Get process identifier].
List of available manpages
Index
getpid() -- System Call (libc) Get process identifier #include <unistd.h> getpid() Every process has a unique number, called its process id. fork() returns the process id of a created child process to the parent process. getpid() returns the process id of the requesting process. Typically a process uses getpid() to pass its process id to another process which wants to send it a signal, or to generate a unique temporary file name. Example For an example of using this system call in a C program, see signal(). See Also fork(), getppid(), kill, libc, mktemp, unistd.h POSIX Standard, §4.1.1