This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
mistake in bits/sigset.h
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 9 Jul 2002 15:46:28 +0200 (CEST)
- Subject: mistake in bits/sigset.h
Hi,
For FreeBSD I was starting out with a copy of
sysdeps/unix/sysv/sysv4/bits/sigset.h,
but this file contains a very dumb mistake that leads to a loss of the
signal bits for signals > 33.
2002-07-06 Bruno Haible <bruno@clisp.org>
* sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
diff -r -c3 glibc-20020627.bak/sysdeps/unix/sysv/sysv4/bits/sigset.h glibc-20020627/sysdeps/unix/sysv/sysv4/bits/sigset.h
--- glibc-20020627.bak/sysdeps/unix/sysv/sysv4/bits/sigset.h Tue Jul 10 23:02:01 2001
+++ glibc-20020627/sysdeps/unix/sysv/sysv4/bits/sigset.h Fri Jul 5 01:18:02 2002
@@ -1,5 +1,5 @@
/* __sig_atomic_t, __sigset_t, and related definitions. SVR4 version.
- Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1994-1996, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,7 +44,7 @@
/* It's easier to assume 8-bit bytes than to get CHAR_BIT. */
-#define __NSSBITS (sizeof (__sigset_t) * 8)
+#define __NSSBITS (sizeof (unsigned long int) * 8)
#define __SSELT(s) ((s) / __NSSBITS)
#define __SSMASK(s) (1 << ((s) % __NSSBITS))