[Glibc-bsd-commits] r2530 - in trunk/glibc-ports/kfreebsd: . bits linuxthreads
Aurelien Jarno
aurel32 at alioth.debian.org
Sun May 24 13:58:31 UTC 2009
Author: aurel32
Date: 2009-05-24 13:58:31 +0000 (Sun, 24 May 2009)
New Revision: 2530
Modified:
trunk/glibc-ports/kfreebsd/bits/signum.h
trunk/glibc-ports/kfreebsd/kernel-features.h
trunk/glibc-ports/kfreebsd/linuxthreads/allocrtsig.c
Log:
FreeBSD 7.0 has realtime signals support
Modified: trunk/glibc-ports/kfreebsd/bits/signum.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/signum.h 2009-05-24 10:40:58 UTC (rev 2529)
+++ trunk/glibc-ports/kfreebsd/bits/signum.h 2009-05-24 13:58:31 UTC (rev 2530)
@@ -66,6 +66,15 @@
#define SIGUSR1 30 /* User-defined signal 1 (POSIX). */
#define SIGUSR2 31 /* User-defined signal 2 (POSIX). */
+#define _NSIG 129 /* Biggest signal number + 1
+ (including real-time signals). */
+
+#define SIGRTMIN (__libc_current_sigrtmin ())
+#define SIGRTMAX (__libc_current_sigrtmax ())
+
+/* These are the hard limits of the kernel. These values should not be
+ used directly at user level. */
+#define __SIGRTMIN 32
+#define __SIGRTMAX (_NSIG - 1)
+
#endif /* <signal.h> included. */
-
-#define _NSIG 129 /* Biggest signal number + 1. */
Modified: trunk/glibc-ports/kfreebsd/kernel-features.h
===================================================================
--- trunk/glibc-ports/kfreebsd/kernel-features.h 2009-05-24 10:40:58 UTC (rev 2529)
+++ trunk/glibc-ports/kfreebsd/kernel-features.h 2009-05-24 13:58:31 UTC (rev 2530)
@@ -35,8 +35,10 @@
introduced. If somebody cares these values can afterwards be
corrected. */
-/* No real-time signals in FreeBSD 5.x or 6.x. */
-#define __ASSUME_REALTIME_SIGNALS 0
+/* Real-time signals introduced in FreeBSD 7.x. */
+#if __KFREEBSD_KERNEL_VERSION >= 0x70000
+# define __ASSUME_REALTIME_SIGNALS 1
+#endif
/* Use signals #32, #33, #34 for internal linuxthreads communication */
#define PTHREAD_SIGBASE 32
Modified: trunk/glibc-ports/kfreebsd/linuxthreads/allocrtsig.c
===================================================================
--- trunk/glibc-ports/kfreebsd/linuxthreads/allocrtsig.c 2009-05-24 10:40:58 UTC (rev 2529)
+++ trunk/glibc-ports/kfreebsd/linuxthreads/allocrtsig.c 2009-05-24 13:58:31 UTC (rev 2530)
@@ -1,14 +1 @@
-#if 1
-
-#define __SIGRTMIN 65
-#define __SIGRTMAX 126
#include <linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c>
-
-#else
-
-#include <signal/allocrtsig.c>
-strong_alias (__libc_current_sigrtmin, __libc_current_sigrtmin_private);
-strong_alias (__libc_current_sigrtmax, __libc_current_sigrtmax_private);
-strong_alias (__libc_allocate_rtsig, __libc_allocate_rtsig_private);
-
-#endif
More information about the Glibc-bsd-commits
mailing list