| PR_SET_NAME(2const) | PR_SET_NAME(2const) |
PR_SET_NAME, PR_GET_NAME - operations on a process or thread
Standard C library (libc, -lc)
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_SET_NAME, char name[16]); int prctl(PR_GET_NAME, const char name[16]);
This is the same attribute that can be set via pthread_setname_np(3) and retrieved using pthread_getname_np(3).
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
Linux.
prctl(2), pthread_setname_np(3), pthread_getname_np(3), proc_pid_comm(5)
| 2024-06-02 | Linux man-pages 6.9.1 |