GETPID(2) — Unix Programmer’s Manual
NAME
getpid − get process identification
SYNOPSIS
getpid( )
DESCRIPTION
Getpid returns the process ID of the current process. Most often it is used to generate uniquely-named temporary files.
SEE ALSO
ASSEMBLER (PDP-11)
(getpid = 20.)
sys getpid
(pid in r0)
7th Edition