Mail Archives: djgpp/2002/01/03/01:05:22
On 2 Jan 2002 15:11:11 GMT, Hans-Bernhard Broeker
<broeker AT physik DOT rwth-aachen DOT de> wrote:
>HARY <Hary AT address DOT is DOT invalid> wrote:
>> Hi,
>
>> While looking in docs for 'setgid' description i found that linux man
>> says: "CONFORMING TO: SVr4, SVID", but djgpp info states: "Portability:
>> not ANSI, POSIX"
>
>> These don't match, so who is right here? And what "SVID" is?
>
>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). By default, it follows
>"System V" semantics.
>
>DJGPP implements POSIX behaviour (but usually fails the call, as if
>you were on a system were only one group was defined at all).
>
>SVID is "System V Interface Definition" or something equivalent, IIRC.
DJGPP only returns and accepts 42 for uid or gid -- so only
setuid(getuid()) and setgid(getgid()) are valid!
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
--
Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
fake address use address above to reply
tosspam AT aol DOT com abuse AT aol DOT com abuse AT yahoo DOT com abuse AT hotmail DOT com abuse AT msn DOT com abuse AT sprint DOT com abuse AT earthlink DOT com abuse AT cadvision DOT com abuse AT ibsystems DOT com uce AT ftc DOT gov
spam traps
- Raw text -