mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
29 lines
534 B
Markdown
29 lines
534 B
Markdown
|
|
## 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)
|