Message-ID: <19980107221525.2322.qmail@hotmail.com> From: "John Patton" To: istoykov AT plovdiv DOT techno-link DOT com Cc: djgpp AT delorie DOT com Subject: Re: Help: what they are for? Content-Type: text/plain Date: Wed, 07 Jan 1998 14:15:25 PST Precedence: bulk >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 > int geteuid(void); >Description - Gets the effective UID. > >getgid >Syntax #include > 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