From owner-svn-src-stable-8@FreeBSD.ORG Wed Mar 2 20:02:52 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED3AB106564A; Wed, 2 Mar 2011 20:02:52 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C1E258FC14; Wed, 2 Mar 2011 20:02:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p22K2q4a045637; Wed, 2 Mar 2011 20:02:52 GMT (envelope-from dchagin@svn.freebsd.org) Received: (from dchagin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p22K2q24045633; Wed, 2 Mar 2011 20:02:52 GMT (envelope-from dchagin@svn.freebsd.org) Message-Id: <201103022002.p22K2q24045633@svn.freebsd.org> From: Dmitry Chagin Date: Wed, 2 Mar 2011 20:02:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r219203 - in stable/8/sys: amd64/linux32 compat/linux i386/linux X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 20:02:53 -0000 Author: dchagin Date: Wed Mar 2 20:02:52 2011 New Revision: 219203 URL: http://svn.freebsd.org/changeset/base/219203 Log: MFC r218720: For realtime signals fill the sigval value. Modified: stable/8/sys/amd64/linux32/linux.h stable/8/sys/compat/linux/linux_signal.c stable/8/sys/i386/linux/linux.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/amd64/linux32/linux.h ============================================================================== --- stable/8/sys/amd64/linux32/linux.h Wed Mar 2 20:01:24 2011 (r219202) +++ stable/8/sys/amd64/linux32/linux.h Wed Mar 2 20:02:52 2011 (r219203) @@ -306,6 +306,7 @@ struct l_new_utsname { #define LINUX_SIGPOLL LINUX_SIGIO #define LINUX_SIGPWR 30 #define LINUX_SIGSYS 31 +#define LINUX_SIGRTMIN 32 #define LINUX_SIGTBLSZ 31 #define LINUX_NSIG_WORDS 2 Modified: stable/8/sys/compat/linux/linux_signal.c ============================================================================== --- stable/8/sys/compat/linux/linux_signal.c Wed Mar 2 20:01:24 2011 (r219202) +++ stable/8/sys/compat/linux/linux_signal.c Wed Mar 2 20:02:52 2011 (r219203) @@ -649,4 +649,8 @@ ksiginfo_to_lsiginfo(ksiginfo_t *ksi, l_ lsi->lsi_uid = ksi->ksi_uid; break; } + if (sig >= LINUX_SIGRTMIN) { + lsi->lsi_int = ksi->ksi_info.si_value.sival_int; + lsi->lsi_ptr = PTROUT(ksi->ksi_info.si_value.sival_ptr); + } } Modified: stable/8/sys/i386/linux/linux.h ============================================================================== --- stable/8/sys/i386/linux/linux.h Wed Mar 2 20:01:24 2011 (r219202) +++ stable/8/sys/i386/linux/linux.h Wed Mar 2 20:02:52 2011 (r219203) @@ -281,6 +281,7 @@ struct l_new_utsname { #define LINUX_SIGPOLL LINUX_SIGIO #define LINUX_SIGPWR 30 #define LINUX_SIGSYS 31 +#define LINUX_SIGRTMIN 32 #define LINUX_SIGTBLSZ 31 #define LINUX_NSIG_WORDS 2