1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

Base: Add man pages for gettid(), getpid(), and getppid()

This commit is contained in:
Andreas Kling 2020-07-05 19:37:43 +02:00
parent d4fe3e8009
commit 6b3a7b1ce7
3 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,28 @@
## Name
getpid - get current process ID
## Synopsis
```**c++
#include <unistd.h>
pid_t getpid();
```
## Description
Returns the PID (process ID) of the calling process.
## Return value
The process ID of the calling process.
## Errors
None.
## See also
* [`getppid`(2)](getppid.md)
* [`gettid`(2)](gettid.md)