proc_username_pid()

The user name of the owner of the process

Syntax:

int proc_username_pid(int pid, char *s);

Arguments:

Name Description
pid PID of process
s buffer to put the user name

Description:

The user name of the owner of the process

Return Values:

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

See Also:

proc_uid_pid()



INDEX