Pgetuid
Section: Oct. 1, 1991
(2)
Updated: MiNT Programmer's Manual
Index
Return to Main Contents
NAME
Pgetuid, Pgetgid - get the current user or group id
SYNOPSIS
WORD Pgetuid();
WORD Pgetgid();
DESCRIPTION
Pgetuid
returns the user id of the currently running process. This is a number
between 0 and 255 which determines the access permissions of the process,
and which may be used in multi-user systems to distinguish different
users of the system.
Similarly,
Pgetgid
returns the group id of the currently running process; this will also
be a number between 0 and 255.
SEE ALSO
Psetuid(2)
BUGS
The real user (or group) id is always returned. The kernel also has a notion of
the effective user (group) id for setuid (setgid) programs, but no function
returns the latter value.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 16:01:47 GMT, March 03, 2023