delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/04/08:04:22

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: standards and 'setgid' function
Date: 4 Jan 2002 12:47:53 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 25
Message-ID: <a1489p$fs4$1@nets3.rz.RWTH-Aachen.DE>
References: <slrn DOT pl DOT a3649e DOT j1 DOT Hary AT localhost DOT localdomain> <a0v7uf$am4$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <slrn DOT pl DOT a399q4 DOT ar DOT Hary AT localhost DOT localdomain>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1010148473 16260 137.226.32.75 (4 Jan 2002 12:47:53 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 4 Jan 2002 12:47:53 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

HARY <Hary AT address DOT is DOT invalid> wrote:
> Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote:
>> They're both right.  setgid is specified by POSIX, but Linux only
>> follows the exact details of that specification if you explicitly ask
>> for that (see the text of their man page).

> "setgid is implemented like the POSIX version with the _POSIX_SAVED_IDS
> feature." 

> I just don't know what _POSIX_SAVED_IDS means. Could you explain it?

Only by looking it up myself... The "feature" is actually a macro: if
it's #define'd, the feature is active.  On Linux, it's activated
automatically, because <unistd.h>, the central POSIX include file, has
an #include <bits/posix_opt.h> in it, and that file in turn has:

#define _POSIX_SAVED_IDS        1

AFAICS, this whole mechanism is needed only because the libc used on
Linux systems, glibc, is also used on other platforms.  But the
documentation is common to all of them, so it doesn't know the
behaviour details of the platform you're running it on.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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