🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #318

Re: 7.0 & Mt. Xinu's getpwuid()

#318
From: Jaap Akkerhuis
Date: Mon, 19 Mar 1990 18:07
19 lines
1419 bytes
Excerpts from netnews.comp.unix.questions: 17-Mar-90 Re: 7.0 & Mt.
Xinu's getpwu.. Barton E. Schaefer@ogics (1585)

>  (And why the devil didn't Xinu
> use the *same* type as the argument to getpwuid()?)

I don't know, but Unix is riddled with these inconsistencies. Scanning
for instance the AT&T SVID Issue 2, you will find that getuid() returns
an unsigned short while setuid just expect an int, so the common code
setuid(getuid()) is actually incorrect according to the SVID. It should
be setuid((int)getuid()).

Hopefully POSIX will get rid of all these problems, but I'm not holding
my breath. When X/Open was in the process of producing their first
version of the X/Open recomendations, they had corrected a lot of these
anomalies. However, they had to retract that version on order of AT&T.
This makes me wonder whether AT&T SVID will ever be POSIX compliant.

	jaap
Technical Details
Message-ID: <ka1FzIC00Vsw0dM1Ma@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+
References: <11725@thor.acc.stolaf.edu>, <8077@ogicse.ogi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+
From: jaap+@andrew.cmu.edu (Jaap Akkerhuis)
Newsgroups: comp.mail.mush,comp.unix.questions
Subject: Re: 7.0 & Mt. Xinu's getpwuid()
Message-ID: <ka1FzIC00Vsw0dM1Ma@andrew.cmu.edu>
Date: 19 Mar 90 18:07:16 GMT
References: <11725@thor.acc.stolaf.edu>,
 <8077@ogicse.ogi.edu>
Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA
Lines: 19
In-Reply-To: <8077@ogicse.ogi.edu>