Internal get{pw,gr}XX calls

Pierre A. Humblet Pierre.Humblet@ieee.org
Fri Nov 29 10:11:00 GMT 2002


At 06:45 PM 11/29/2002 +0100, you wrote:

Hello Corinna

>I'm sorry, I just typed the first idea and didn't check my thoughts
>for correctness.  The correct implementation would be:

OK.
But, now that I am staring at it, we will have problems with 32 bit
uids > 0x8000000, except if they are entered as negative numbers.
This is from the opengroup:
If the correct value is outside the range of representable values, 
LONG_MAX or LONG_MIN is returned (according to the sign of the value),
and errno is set to [ERANGE]. 

Pierre





More information about the Cygwin-patches mailing list