int proc_exe_name_pid(int pid, char *s);
Name | Description |
---|---|
pid | PID of process |
s | buffer to put the executable file |
The name of the executable file (without path).
On success, returns the executable file length. On error, -1 is returned.
proc_state_pid(), proc_ppid_pid(), proc_pgrp_pid() proc_sid_pid(), proc_terminal_pid(), proc_ptgid_pid(), proc_flags_pid()
INDEX |