Content-type: text/html Man page of getluid

getluid

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

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

LIBRARY

Security Library - libsecurity.a and libsecurity.so  

SYNOPSIS

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

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

PARAMETERS

uid
An integer representing the user ID being requested.
 

DESCRIPTION

The function gets the system's the login UID associated with the process. If it has not been set yet, return an error.

The function sets the system's login UID for this process and all its descendants. Once set, it cannot be reset.  

RETURN VALUES

The function returns the actual UID on success and a -1 for failure. The function returns 0 for success and -1 for failure.

 

RELATED INFORMATION


Security

delim off


 

Index

NAME
LIBRARY
SYNOPSIS
PARAMETERS
DESCRIPTION
RETURN VALUES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:40:47 GMT, October 02, 2010