int proc_cwd_pid(int pid, char *s);
Name | Description |
---|---|
pid | PID of process |
s | buffer to put the cwd |
The current working directory for the process.
On success, returns the cwd length. On error, -1 is returned.
proc_exe_pid(), proc_root_pid(), proc_cmdline_pid()
INDEX |