dg_getauthid(2) C2 Trusted DG/UX 5.4.2T dg_getauthid(2)
NAME
dggetauthid - Get the authentication ID of the calling process.
SYNOPSIS
#include <sys/dgtparms.h>
authidt dggetauthid (pidt pid);
where:
pid The ID of the process whose authID is returned. As a special case, when
pid is 0 the authentication ID of the calling process is returned.
DESCRIPTION
The dggetauthid() system call returns the authentication ID of the
process identified by pid. If pid is 0 the authentication ID of the
calling process is returned.
ACCESS CONTROL
The caller must have appropriate privilege to get the authentication
ID of another process.
RETURN VALUE
Returns the authentication ID of the specified process unless an
error occurs, in which case -1 is returned.
ERRORS
When an error occurs errno will be set to one of the following error
codes:
EPERM The caller does not have appropriate privilege.
ESRCH No process with ID pid exists.
SEE ALSO
dgsetauthid(2)
Trusted Facilty Manual for the C2 Trusted DG/UX System
Audit System Administrator's Guide for the C2 Trusted DG/UX System
Licensed material--property of copyright holder(s) 1