On Tue, 29 Jul 2003, Egbert Eich wrote: > There is the following report in bugzilla (#97):
> --------------------------------- > On Redhat 8 at any rate, the TRANS_OPEN_MAX constant should be compiled to a > call to sysconf(), but is actually compiled into a default of 256. This breaks > my app, which for various reasons opens >256 file descriptors. As the kernel > default limit is 1024, the fact that Xlib has this value compiled in means the > app will randomly abort when 256 is reached. There is a test case for this that > I will attach. > ---------------------------------- > Anyway, sysconf() is only used if __GNU__ is defined. > However the appropriate sysconf() call seems to be > standard POSIX.1, therefore we should use some other > macro indicating that it should be used instead of > a fixed value. > Any idea? You should be able to test for _SC_OPEN_MAX instead of __GNU__. Marc. +----------------------------------+-----------------------------------+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax: 1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +-----------------------------------+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply | | CANADA | | +----------------------------------+-----------------------------------+ XFree86 Core Team member. ATI driver and X server internals. _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel