dnl
-dnl "$Id: cups-network.m4,v 1.9 2003/02/12 19:31:10 mike Exp $"
+dnl "$Id: cups-network.m4,v 1.10 2003/08/28 15:16:07 mike Exp $"
dnl
dnl Networking stuff for the Common UNIX Printing System (CUPS).
dnl
AC_SUBST(NETLIBS)
-maxfiles=4096
+if test "$uname" = "SunOS"; then
+ case "$uversion" in
+ 55* | 56*)
+ maxfiles=1024
+ ;;
+ *)
+ maxfiles=4096
+ ;;
+ esac
+else
+ maxfiles=4096
+fi
-AC_ARG_WITH(maxfiles, [ --with-maxfiles=N set maximum number of file descriptors for CUPS. ],
+AC_ARG_WITH(maxfiles, [ --with-maxfiles=N set maximum number of file descriptors for scheduler ],
maxfiles=$withval)
AC_DEFINE_UNQUOTED(CUPS_MAX_FDS, $maxfiles)
dnl
-dnl End of "$Id: cups-network.m4,v 1.9 2003/02/12 19:31:10 mike Exp $".
+dnl End of "$Id: cups-network.m4,v 1.10 2003/08/28 15:16:07 mike Exp $".
dnl
/*
- * "$Id: http.c,v 1.122 2003/08/04 18:45:51 swdev Exp $"
+ * "$Id: http.c,v 1.123 2003/08/28 15:16:07 mike Exp $"
*
* HTTP routines for the Common UNIX Printing System (CUPS).
*
getrlimit(RLIMIT_NOFILE, &limit);
- http->input_set = calloc(1, (limit.rlim_cur + 7) / 8);
+ http->input_set = calloc(1, (limit.rlim_cur + 31) / 32);
#endif /* WIN32 */
if (!http->input_set)
/*
- * End of "$Id: http.c,v 1.122 2003/08/04 18:45:51 swdev Exp $".
+ * End of "$Id: http.c,v 1.123 2003/08/28 15:16:07 mike Exp $".
*/
/*
- * "$Id: main.c,v 1.107 2003/08/01 20:00:53 mike Exp $"
+ * "$Id: main.c,v 1.108 2003/08/28 15:16:08 mike Exp $"
*
* Scheduler main loop for the Common UNIX Printing System (CUPS).
*
* Allocate memory for the input and output sets...
*/
- SetSize = (MaxFDs + 7) / 8;
+ SetSize = (MaxFDs + 31) / 32;
InputSet = (fd_set *)calloc(1, SetSize);
OutputSet = (fd_set *)calloc(1, SetSize);
input = (fd_set *)calloc(1, SetSize);
/*
- * End of "$Id: main.c,v 1.107 2003/08/01 20:00:53 mike Exp $".
+ * End of "$Id: main.c,v 1.108 2003/08/28 15:16:08 mike Exp $".
*/