set_process_name - change the process name
#include <unistd.h>
int set_process_name(const char* name, size_t name_length);
set_process_name()
changes the name of the calling process to the string name
with length name_length
.
In pledged programs, the proc
promise is required for this system call.
EFAULT
: name
is not in readable memory.ENAMETOOLONG
: name_length
is too long.