From e26c6805dd56f5a3439c71092313785b312e88b7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 27 Jul 2020 18:46:13 +0200 Subject: [PATCH] Base: Add man page about set_process_name(2) --- Base/usr/share/man/man2/set_process_name.md | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Base/usr/share/man/man2/set_process_name.md diff --git a/Base/usr/share/man/man2/set_process_name.md b/Base/usr/share/man/man2/set_process_name.md new file mode 100644 index 0000000000..c74f8720d1 --- /dev/null +++ b/Base/usr/share/man/man2/set_process_name.md @@ -0,0 +1,28 @@ +## Name + +set\_process\_name - change the process name + +## Synopsis + +```**c++ +#include + +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)