GETPID(2)

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
mktemp(3)

ASSEMBLER (PDP-11)
(getpid = 20.)
sys getpid
(pid in r0)