getpid#

Synopsis#

#include <unistd.h>

pid_t getpid(void);

Status#

Partially implemented

Conformance#

IEEE Std 1003.1-2017

Description#

The getpid() function shall return the process ID of the calling process.

Return value#

The getpid() function shall always be successful, and no return value is reserved to indicate an error.

Errors#

No errors are defined.

Tests#

Untested

Known bugs#

None

See Also#

  1. Standard library functions

  2. Table of Contents