[Mono-bugs] [Bug 74698][Min] Changed - Corlib Unit tests failing / wrong runtime support on FreeBSD
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 23 Apr 2005 19:00:18 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by flashdict@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74698
--- shadow/74698 2005-04-23 15:02:28.000000000 -0400
+++ shadow/74698.tmp.12784 2005-04-23 19:00:18.000000000 -0400
@@ -193,6 +193,17 @@
in security.c. If sysconf fails, it returns -1 which when viewed as
unsigned is a pretty large number.
+
+------- Additional Comments From flashdict@gmail.com 2005-04-23 19:00 -------
+Feh. Looks like another freebsdism, all right. Even though
+_SC_GETPW_R_SIZE_MAX (71) is clearly defined as a legitimate value for
+sysconf() in unistd.h, the darn thing just gives an error for it. The
+man page says something about how sysctl() is preferred (but
+non-portable) So, my suggestion (request) would be to check the
+return value for the sysconf() call and if it's -1, then just use the
+default of 1024.
+
+Thanks.