mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
Base: Add man pages for gettid(), getpid(), and getppid()
This commit is contained in:
parent
d4fe3e8009
commit
6b3a7b1ce7
3 changed files with 84 additions and 0 deletions
28
Base/usr/share/man/man2/getppid.md
Normal file
28
Base/usr/share/man/man2/getppid.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
## Name
|
||||
|
||||
getppid - get current process's parent process ID
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**c++
|
||||
#include <unistd.h>
|
||||
|
||||
pid_t getppid();
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Returns the PID (process ID) of the parent of the calling process.
|
||||
|
||||
## Return value
|
||||
|
||||
The process ID of the parent of the calling process.
|
||||
|
||||
## Errors
|
||||
|
||||
None.
|
||||
|
||||
## See also
|
||||
|
||||
* [`getpid`(2)](getpid.md)
|
||||
* [`gettid`(2)](gettid.md)
|
Loading…
Add table
Add a link
Reference in a new issue