Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getluid(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getluid(3)  —  Subroutines

NAME

getluid, setluid − Get or set the login UID (Enhanced Security)

SYNOPSIS

#include <prot.h>
uid_t getluid( ); #include <prot.h>
int setluid(
        uid );

LIBRARY

Security Library − libsecurity.so

PARAMETERS

uidAn integer representing the user ID being requested. 

DESCRIPTION

The getluid() function gets the login UID associated with the process. The login UID is recorded with most audit events generated by the process, and is sometimes referred to as the audit UID (AUID). If the login UID has not been set yet, getluid() returns an error. 

The setluid() function sets the login UID for a process and all its descendants. 

RETURN VALUES

The getluid() function returns the actual UID on success and a −1 for failure. The setluid() function returns 0 for success and −1 for failure. 

SEE ALSO

Security

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026