From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <27eec7a11c56a350affafc714e638044.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199801220238.VAA01871@alpha1.estabrook.org> Date: Wed, 21 Jan 1998 18:57:31 -0500 (EST) From: Aleksandr Pilosov Subject: bug/patch in FD_SET macros On Alpha, FS_SET(fd,n) macros are broken for n%64 >32 Fix: change /usr/include/gnu/types.h, definition of __FDMASK from #define __FDMASK(d) (1 << ((d) % __NFDBITS)) to #define __FDMASK(d) (1UL << ((d) % __NFDBITS)) What happens is that 1 is an int, so it can't be left-shifted more than 32 times, 1UL is unsigned long, and works fine and dandy. I'm not sure if this list is correct way to report bug/patch for alpha glibc, but the axplinux-libc@listserv.azstarnet.com seems down. -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com