02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

getuid(2) getuid(2)<br />

NAME<br />

get uid, geteuid, getgid, getegid - get real and<br />

effective user IDs and group IDs<br />

SYNOPSIS<br />

#include <br />

uid t getuid ()<br />

uid t geteuid ( )<br />

uid t getgid ( )<br />

uid t getegid ( )<br />

DESCRIPTION<br />

get uid returns the real user ID of the calling process The real<br />

user ID is a positive integer by which each user allowed on the<br />

system is identified.<br />

geteuid returns the effective user ID of the calling process.<br />

Each active process has an effective user ID that is equal to the<br />

process's real user ID unless the process of one of its ancestors<br />

evolved from a fail that had the set-user-ID bit set (see exec(2».<br />

getgid returns the real group ID of the calling process. A real<br />

group ID is a positive integer that identifies each user as a member<br />

ofagroup.<br />

getegid returns the effective group ID of the calling process.<br />

Each active process has an effective group ID that is equal to the<br />

process's real group ID unless the process of one of its ancestors<br />

evolved from a fail that had the set-group-ID bit set (see<br />

exec(2».<br />

RETURN VALUE<br />

getuid<br />

geteuid<br />

getgid<br />

getegid<br />

February, 1990<br />

Revision C<br />

Returns the real user ID of the calling process.<br />

Returns the effective user ID of the calling process.<br />

Returns the real group ID of the calling process.<br />

Returns the effective group ID of the calling<br />

process.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!