Be sure to read the "RKT couplings" below for additional information and updates to this entry.
|Subject: (6.24) Use more than ~100 Feeds on SunOS 4.1 ?|
SunOS 4.1 normally has a limit of 256 file descriptors per process. But
unfortunately there is a bug in stdio (the use of a _signed_ char ) which
lets one only use 128 file descriptors.
One way would be to use an exploder feed (like bufchan).
The other is:
There is a stdio replacement called sfio which you can get from
Just compile it as indicated in the package. After that, you must tweak
config.data a bit to use sfio:
DEFS -I../include -I/usr/local/include/sfio CC gcc CFLAGS $(DEFS) -O2 DBZCFLAGS $(CFLAGS) -DMMAP LDFLAGS (empty) LIBS -L/usr/local/lib/sfio -lsfio VAR_STYLE STDARGS (important! sfio doesn't like varargs if compiled ANSI) NOFILE_LIMIT -1 EXITVAL volatile void _EXITVAL volatile voidJust recompile inn then and go for it.
If you even need more than 256 descriptors, then you can use SunDBE (the
Sun Databese Excelerator) which raises the limit from 256 to 1024.
Thanks to Christopher Davis <firstname.lastname@example.org> for this tip.
[Last Changed: $Date: 1997/07/01 01:25:41 $ $Revision: 2.21 $]
[Copyright: 1997 Heiko Rupp, portions by Tom Limoncelli, Rich Salz, et al.]