GETPID(2) BSD Programmer's Manual GETPID(2) NNAAMMEE ggeettppiidd, ggeettppppiidd - get parent or calling process identification SSYYNNOOPPSSIISS ##iinncclluuddee <<uunniissttdd..hh>> _p_i_d___t ggeettppiidd(_v_o_i_d); _p_i_d___t ggeettppppiidd(_v_o_i_d); DDEESSCCRRIIPPTTIIOONN GGeettppiidd() returns the process ID of the calling process. The ID is guar- anteed to be unique and is useful for constructing temporary file names. GGeettppppiidd() returns the process ID of the parent of the calling process. EERRRROORRSS The ggeettppiidd() and ggeettppppiidd() functions are always successful, and no return value is reserved to indicate an error. SSEEEE AALLSSOO gethostid(2) SSTTAANNDDAARRDDSS GGeettppiidd() and ggeettppppiidd() conform to IEEE Std 1003.1-1988 (``POSIX''). 4th Berkeley Distribution June 4, 1993 1