svn commit: r279160 - user/dchagin/lemul/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sun Feb 22 15:48:38 UTC 2015
Author: dchagin
Date: Sun Feb 22 15:48:36 2015
New Revision: 279160
URL: https://svnweb.freebsd.org/changeset/base/279160
Log:
Fix a bug introduced in r279107. Linux supports signal numbers from
1 to 64 incl. To prevent such errors in the future remove LINUX_NSIG
constant which is similar to SIGRTMAX and use last everywhere.
Remove LINUX_SIGTBLSZ constant which is not used anymore.
Modified:
user/dchagin/lemul/sys/compat/linux/linux.h
Modified: user/dchagin/lemul/sys/compat/linux/linux.h
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux.h Sun Feb 22 15:30:08 2015 (r279159)
+++ user/dchagin/lemul/sys/compat/linux/linux.h Sun Feb 22 15:48:36 2015 (r279160)
@@ -37,9 +37,6 @@ int linux_to_bsd_sigaltstack(int lsa);
int bsd_to_linux_sigaltstack(int bsa);
/* sigset */
-#define LINUX_SIGTBLSZ 31
-#define LINUX_NSIG 64
-
typedef struct {
uint64_t __mask;
} l_sigset_t;
@@ -87,7 +84,7 @@ void bsd_to_linux_sigset(sigset_t *, l_s
#define LINUX_SIGPWR 30
#define LINUX_SIGSYS 31
#define LINUX_SIGRTMIN 32
-#define LINUX_SIGRTMAX LINUX_NSIG-1
+#define LINUX_SIGRTMAX 64
#define LINUX_SIG_VALID(sig) ((sig) <= LINUX_SIGRTMAX && (sig) > 0)
More information about the svn-src-user
mailing list