mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Base: Add man page about set_process_name(2)
This commit is contained in:
parent
b5f54d4153
commit
e26c6805dd
Notes:
sideshowbarker
2024-07-19 04:33:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e26c6805dd5
1 changed files with 28 additions and 0 deletions
28
Base/usr/share/man/man2/set_process_name.md
Normal file
28
Base/usr/share/man/man2/set_process_name.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
## Name
|
||||
|
||||
set\_process\_name - change the process name
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**c++
|
||||
#include <unistd.h>
|
||||
|
||||
int set_process_name(const char* name, size_t name_length);
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`set_process_name()` changes the name of the calling process to the string `name` with length `name_length`.
|
||||
|
||||
## Pledge
|
||||
|
||||
In pledged programs, the `proc` promise is required for this system call.
|
||||
|
||||
## Errors
|
||||
|
||||
* `EFAULT`: `name` is not in readable memory.
|
||||
* `ENAMETOOLONG`: `name_length` is too long.
|
||||
|
||||
## See also
|
||||
|
||||
* [`get_process_name`(2)](../man2/get_process_name.md)
|
Loading…
Reference in a new issue