Internal get{pw,gr}XX calls

Pierre A. Humblet
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:

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]. 


More information about the Cygwin-patches mailing list