libexplain  1.4.D001
Functions
libexplain/uid_from_pid.c File Reference
#include <libexplain/ac/stdio.h>
#include <libexplain/ac/string.h>
#include <libexplain/uid_from_pid.h>

Go to the source code of this file.

Functions

uid_t explain_uid_from_pid (pid_t pid)

Function Documentation

uid_t explain_uid_from_pid ( pid_t  pid)

The explain_uid_from_pid function may be used to determin the effective user-ID of a process.

Parameters:
pidThe ID of he proicess of interest
Returns:
the usr ID pof th process, or (pid_t)-1 if couldnot be determined.

Definition at line 27 of file uid_from_pid.c.