GETPID

Section: System Calls (2)
Index Return to Main Contents

BSD mandoc
BSD 4  

NAME

getpid getppid - get parent or calling process identification  

SYNOPSIS

Fd #include <sys/types.h> Fd #include <unistd.h> Ft pid_t Fn getpid void Ft pid_t Fn getppid void  

DESCRIPTION

Fn Getpid returns the process ID of the calling process. The ID is guaranteed to be unique and is useful for constructing temporary file names.

Fn Getppid returns the process ID of the parent of the calling process.  

ERRORS

The Fn getpid and Fn getppid functions are always successful, and no return value is reserved to indicate an error.  

SEE ALSO

gethostid(2)  

STANDARDS

Fn Getpid and Fn getppid conform to St -p1003.1-88 .


 

Index

NAME
SYNOPSIS
DESCRIPTION
ERRORS
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 21:44:11 GMT, August 05, 2022