Penguin

Differences between current version and predecessor to the previous major change of getresuid(2).

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Tuesday, December 31, 2002 2:02:10 am by PerryLorier
Older page: version 1 Last edited on Tuesday, June 4, 2002 12:23:41 am by perry Revert
@@ -1,54 +1,21 @@
-GETRESUID  
-!!!GETRESUID  
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-RETURN VALUE  
-ERRORS  
-CONFORMING TO  
-SEE ALSO  
-----  
 !!NAME 
-  
-  
 getresuid, getresgid - get real, effective and saved user or group ID 
 !!SYNOPSIS 
+ __#include <unistd.h>__  
  
+ __int getresuid(uid_t *__''ruid''__, uid_t *__''euid''__, uid_t *__''suid''__);  
  
-__#include __  
-  
-  
-__int getresuid(uid_t *__''ruid''__, uid_t  
-*__''euid''__, uid_t *__''suid''__);  
-int getresgid(gid_t *__''rgid''__, gid_t  
-*__''egid''__, gid_t  
-*__''sgid''__);__  
 !!DESCRIPTION 
+getresuid(2) (both introduced in Linux 2.1.44) get the [RealID], [EffectiveID] and [SavedID]'s (resp. group ID's) of the current process.  
  
-  
-__getresuid__ and __getresgid__ (both introduced in  
-Linux 2.1.44) get the real, effective and saved user ID's  
-(resp. group ID's) of the current process.  
 !!RETURN VALUE 
+On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately.  
  
-  
-On success, zero is returned. On error, -1 is returned, and  
-''errno'' is set appropriately.  
 !!ERRORS 
+;[EFAULT]: One of the arguments specified an address outside the calling program's address space.  
  
-  
-__EFAULT__  
-  
-  
-One of the arguments specified an address outside the  
-calling program's address space.  
 !!CONFORMING TO 
+This call is Linux-specific.  
  
-  
-This call is Linux-specific.  
 !!SEE ALSO 
-  
-  
- getuid(2), setuid(2), getreuid(2),  
- setreuid(2), setresuid(2)  
-----  
+getuid(2), setuid(2), getreuid(2), setreuid(2), setresuid(2) 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.