Content-type: text/html
int Trace_GetUser(fp, pid, uidp) FILE *fp; short pid; uid_t *uidp;
Trace_GetUser returns the uid in *uidp of the user that owns process pid in the trace fp. If the uid is unknown, it returns 65535. The uid associated with a process is written in the FORK record for the process. If the fork does not occur in the trace, and the process forks no children, the library will not be able to determine the uid. These edge effects typically apply to daemons and other long-lived processes run as superuser.
Returns TRACE_FILERECORDNOTFOUND if fp is not an open trace. Otherwise, returns TRACE_SUCCESS.
Lily B. Mummert