X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker 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: References: 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 wrote: > Hans-Bernhard Broeker 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 , the central POSIX include file, has an #include 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.