From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4dbef82e5689cd70 X-Google-Attributes: gid111c93,public From: Onno Hovers Subject: Re: Wich Red Hat version should I Buy ??? Date: 1997/12/21 Message-ID: <67hqml$2kh$1@surfer.xs4all.nl>#1/1 X-Deja-AN: 309012185 References: <34911A14.7C95@noord.bart.nl> Organization: Home and Away Reply-To: onno@stack.nl Newsgroups: comp.os.linux.alpha David.Mosberger@DONTSPAMacm.org wrote: > While I generally agree with this sentiment, there is one relatively > serious glibc 2.x bug that bites rh5.0: the glibc version shipped with > rh5.0 has an FDMASK macro that is broken. The effect is that if you > try to use fd_sets with file descriptors >31 then things may go > awfully wrong. E.g., XF86_TGA terminates with extreme prejudice when > trying to open more than ~30 windows. More important, emacs seems to > get stuck randomly due to this bug. The following two changes should > be made to fix the problem: > > : > > > > old: #define __FDMASK(d) (1 << ((d) % __NFDBITS)) > > new: #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) > > > > : > > > > old: #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) > > new: #define __FD_ISSET(d, set) (((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) != 0) This does not fix (or even change) anything. You probably do not even know what these macros are doing. Regards, Onno -- < >-> Onno Hovers (onno@stack.nl http://www.stack.nl/~onno/) Student physics at the University of Technology Eindhoven No, I do not want ANY unsollicited bulk e-mail