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.
getpid() and getppid() conform to IEEE Std 1003.1-1988 ("POSIX"). MirOS BSD #10-current June 4, 1993 1
Generated on 2015-10-06 19:36:22 by $MirOS: src/scripts/roff2htm,v 1.80 2015/01/02 13:54:19 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–2015 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.