Date: Sun, 22 Feb 2015 15:48:37 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r279160 - user/dchagin/lemul/sys/compat/linux Message-ID: <201502221548.t1MFmbZD005503@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502221548.t1MFmbZD005503>