* bug/patch in FD_SET macros
@ 1998-01-21 23:57 Aleksandr Pilosov
0 siblings, 0 replies; only message in thread
From: Aleksandr Pilosov @ 1998-01-21 23:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-01-21 23:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-21 23:57 bug/patch in FD_SET macros Aleksandr Pilosov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox