Date: Wed, 2 Mar 2011 20:02:52 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219203 - in stable/8/sys: amd64/linux32 compat/linux i386/linux Message-ID: <201103022002.p22K2q24045633@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103022002.p22K2q24045633>