Mail Archives: djgpp/1998/01/07/17:17:27
>Hello experts
>
>I found two functions int libc which have only quoted (from info
>file) help. Unfortunately it is very unclear to me. Could
>somebody explain me more comprehensive what they are for? And what
>means 42 returned value?
>Thank you
>Ivo Stoykov
>istoykov AT plovdiv DOT techno-link DOT com
>
>/***** Quotation from: InfView - File: libc *****/
>
>geteuid
>Syntax #include <unistd.h>
> int geteuid(void);
>Description - Gets the effective UID.
>
>getgid
>Syntax #include <unistd.h>
> int getgid(void);
>Description - Get the current group id.
>
>For both Return Value is 42.
>/***** End of Quotation from: InfView - File: libc *****/
>
These fnxns are used when working withing Linux or Unix.
They don't have much of a purpose when writing software for
use on a DOS/Windows machine. JFYI, user ID's and group ID's
are used in the security subsystem in Linux and Unix to check
if a user has permissions to access a location.
See ya,
Johnny P.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- Raw text -