Mon Apr 16 14:48:37 PDT 2007 [EMAIL PROTECTED]
* Handle sysconf(3) return value -1 when checking _SC_GETGR_R_SIZE_MAX and
_SC_GETPW_R_SIZE_MAX.
sysconf(3) returns -1 on failure, but this was not handled when checking
_SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX in System.Posix.User. This made
getUserEntryForID, getUserEntryForName, getGroupEntryForID and
getGroupEntryForName fail on OS X 10.4.9 on i386. Just checking that unistd.h
defines _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX as was done before does
not guarantee that sysconf(3) will succeed.
sysconf(3) failure is now handled by using the same default values as were
already used when sysconf(3) is not available, or the parameter names are not
defined.
M ./System/Posix/User.hsc -4 +11
_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries