ladybird/Base/usr/share/man/man2/set_process_name.md
kleines Filmröllchen 98c0c5e9e6 Help+Base: Add help://man URLs for links between man pages
The URLs of the form `help://man/<section>/<page>` link to another help
page inside the help application. All previous relative page links are
replaced by this new form. This doesn't change any behavior but it looks
much nicer :^)

Note that man doesn't handle these new links, but the previous relative
links didn't work either.
2022-01-11 00:24:57 +01:00

548 B

Name

set_process_name - change the process name

Synopsis

#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