get_process_name - get the process name
#include <unistd.h>
int get_process_name(char* buffer, int buffer_length);
get_process_name()
places the current process name into the provided buffer
.
In pledged programs, the stdio
promise is required for this system call.
EFAULT
: the process name could not be copied into the buffer.ENAMETOOLONG
: buffer_length
is too short.