delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/07/17:17:27

Message-ID: <19980107221525.2322.qmail@hotmail.com>
From: "John Patton" <gimli21 AT hotmail DOT com>
To: istoykov AT plovdiv DOT techno-link DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Help: what they are for?
Date: Wed, 07 Jan 1998 14:15:25 PST

>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019