proc_cwd_pid()

The current working directory

Syntax:

int proc_cwd_pid(int pid, char *s);

Arguments:

Name Description
pid PID of process
s buffer to put the cwd

Description:

The current working directory for the process.

Return Values:

On success, returns the cwd length. On error, -1 is returned.

See Also:

proc_exe_pid(), proc_root_pid(), proc_cmdline_pid()



INDEX