mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Base: Add documentation for get_process_name
`set_process_name` has a getter pair (which it links to); lets document it. Solves #6007.
This commit is contained in:
parent
b6093ae2e3
commit
b2c952a6fa
Notes:
sideshowbarker
2024-07-18 20:19:49 +09:00
Author: https://github.com/Nicholas-Baron 🔰
Commit: b2c952a6fa
Pull-request: https://github.com/SerenityOS/serenity/pull/6339
1 changed files with 28 additions and 0 deletions
28
Base/usr/share/man/man2/get_process_name.md
Normal file
28
Base/usr/share/man/man2/get_process_name.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
## Name
|
||||
|
||||
get\_process\_name - get the process name
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**c++
|
||||
#include <unistd.h>
|
||||
|
||||
int get_process_name(char* buffer, int buffer_length);
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`get_process_name()` places the current process name into the provided `buffer`.
|
||||
|
||||
## Pledge
|
||||
|
||||
In pledged programs, the `stdio` promise is required for this system call.
|
||||
|
||||
## Errors
|
||||
|
||||
* `EFAULT`: the process name could not be copied into the buffer.
|
||||
* `ENAMETOOLONG`: `buffer_length` is too short.
|
||||
|
||||
## See also
|
||||
|
||||
* [`set_process_name`(2)](../man2/set_process_name.md)
|
Loading…
Add table
Add a link
Reference in a new issue