Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Aleksandr Pilosov <apilos01@utopia.poly.edu>
Subject: bug/patch in FD_SET macros
Date: Wed, 21 Jan 1998 18:57:31 -0500 (EST)	[thread overview]
Message-ID: <27eec7a11c56a350affafc714e638044.axp-list@archive.invalid> (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

                 reply	other threads:[~1998-01-21 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox