getppid (2)
Leading comments
Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fol...
NAME
getpid getppid - get parent or calling process identificationLIBRARY
Lb libcSYNOPSIS
In sys/types.h In unistd.h Ft pid_t Fn getpid void Ft pid_t Fn getppid voidDESCRIPTION
The Fn getpid system call 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, for security reasons; see mkstemp(3) instead.The Fn getppid system call returns the process ID of the parent of the calling process.