>> Instead of >> fclose, use close, etc. Using those routines you'll >> have (depending on >> the OS and settings) the ability to use thousands of >> descriptors. For >> vanilla Solaris 10 you'll have 1024 by default with a >> hard limit of 65536. > >why the hard limit is 65536?
The *default* hardlimit is just like other default hard limits: to prevent user processes running the systems out of resources. (this only works to some extend but protects against single runaway processes) The implementation hard limit is 2G as file descriptors are signed integers. Not that such a number of filedescriptors require several GB of contiguous kernel memory. Casper _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org