proc_exe_name_pid()

The name of the executable file

Syntax:

int proc_exe_name_pid(int pid, char *s);

Arguments:

Name Description
pid PID of process
s buffer to put the executable file

Description:

The name of the executable file (without path).

Return Values:

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

See Also:

proc_state_pid(), proc_ppid_pid(), proc_pgrp_pid() proc_sid_pid(), proc_terminal_pid(), proc_ptgid_pid(), proc_flags_pid()



INDEX