This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Internal get{pw,gr}XX calls
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