xref: /csrg-svn/lib/libc/sys/getpid.2 (revision 20071)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)getpid.2 4.1 (Berkeley) 05/09/85

GETPID 2
C 4
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)