GETPID(2) BSD Programmer's Manual GETPID(2)
getpid, getppid - get parent or calling process identification
#include <sys/types.h>
#include <unistd.h>
pid_t
getpid(void);
pid_t
getppid(void);
getpid() returns the process ID of the calling process. Though the ID is
guaranteed to be unique, it should NOT be used for constructing temporary
file names; see mkstemp(3) instead.
getppid() returns the process ID of the parent of the calling process.
The getpid() and getppid() functions are always successful, and no return
value is reserved to indicate an error.
gethostid(3)
getpid() and getppid() conform to IEEE Std 1003.1-1988 ("POSIX").
MirOS BSD #10-current June 4, 1993 1
Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.