Differences between current version and previous revision of getuid(2).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Tuesday, December 31, 2002 2:26:31 am | by PerryLorier | |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:23:42 am | by perry | Revert |
@@ -1,49 +1,19 @@
-GETUID
-!!!GETUID
-NAME
-SYNOPSIS
-DESCRIPTION
-ERRORS
-CONFORMING TO
-SEE ALSO
-----
!!NAME
-
-
-
getuid, geteuid
- get user identity
+getuid - get user identity
!!SYNOPSIS
+ __#include <unistd.h>__
+ __#include <sys/types.h>__
-
-__#include __
-#include __
-
-
-
__uid_t getuid(void);
-uid_t geteuid
(void);__
+__uid_t getuid(void);__
!!DESCRIPTION
+getuid(2) returns the [RealID] of the current process.
+The real ID corresponds to the ID of the calling process. The effective ID corresponds to the set ID bit on the file being executed.
-__getuid__ returns the real user ID of the current
-process.
-
-
-__geteuid__ returns the effective user ID of the current
-process.
-
-
-The real ID corresponds to the ID of the calling process.
-The effective ID corresponds to the set ID bit on the file
-being executed.
!!ERRORS
+These functions are always successful.
-
-These functions are always successful.
!!CONFORMING TO
-
-
-
POSIX, BSD 4.3.
+[
POSIX]
, BSD 4.3.
!!SEE ALSO
-
-
setreuid(2), setuid(2)
-----