From owner-svn-src-user@FreeBSD.ORG Sun Feb 22 15:48:37 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF9C54CD; Sun, 22 Feb 2015 15:48:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBD84C5; Sun, 22 Feb 2015 15:48:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1MFmbX7005504; Sun, 22 Feb 2015 15:48:37 GMT (envelope-from dchagin@FreeBSD.org) Received: (from dchagin@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1MFmbZD005503; Sun, 22 Feb 2015 15:48:37 GMT (envelope-from dchagin@FreeBSD.org) Message-Id: <201502221548.t1MFmbZD005503@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dchagin set sender to dchagin@FreeBSD.org using -f From: Dmitry Chagin Date: Sun, 22 Feb 2015 15:48:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r279160 - user/dchagin/lemul/sys/compat/linux X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2015 15:48:38 -0000 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)