Content-type: text/html Manpage of TRACE_GETUSER

TRACE_GETUSER

Section: C Library Functions (3)     Updated: Feb 10, 1992    Return to Library's README

NAME

Trace_GetUser -- return the uid that produced a trace record

SYNOPSIS

int Trace_GetUser(fp, pid, uidp)
FILE *fp;
short pid;
uid_t *uidp;

DESCRIPTION

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.

DIAGNOSTICS

Returns TRACE_FILERECORDNOTFOUND if fp is not an open trace. Otherwise, returns TRACE_SUCCESS.

AUTHOR

Lily B. Mummert


Index

NAME
SYNOPSIS
DESCRIPTION
DIAGNOSTICS
AUTHOR

This document was created on Time: 05:25:53 GMT, October 10, 1998