.TH GETPID 2 .SH NAME getpid \- get process identification .SH SYNOPSIS .B getpid( ) .SH DESCRIPTION .I Getpid returns the process ID of the current process. Most often it is used to generate uniquely-named temporary files. .SH "SEE ALSO" mktemp(3) .SH "ASSEMBLER (PDP-11)" (getpid = 20.) .br .B sys getpid .br (pid in r0)