Date: Wed, 2 Mar 2011 19:48:19 +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: r219200 - stable/8/sys/compat/linux Message-ID: <201103021948.p22JmJod043847@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Wed Mar 2 19:48:19 2011 New Revision: 219200 URL: http://svn.freebsd.org/changeset/base/219200 Log: MFC r218717: Put the macro declaration in the relevant include file for future use. Modified: stable/8/sys/compat/linux/linux_misc.c stable/8/sys/compat/linux/linux_signal.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/compat/linux/linux_misc.c ============================================================================== --- stable/8/sys/compat/linux/linux_misc.c Wed Mar 2 19:46:45 2011 (r219199) +++ stable/8/sys/compat/linux/linux_misc.c Wed Mar 2 19:48:19 2011 (r219200) @@ -92,9 +92,6 @@ __FBSDID("$FreeBSD$"); int stclohz; /* Statistics clock frequency */ -#define BSD_TO_LINUX_SIGNAL(sig) \ - (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig) - static unsigned int linux_to_bsd_resource[LINUX_RLIM_NLIMITS] = { RLIMIT_CPU, RLIMIT_FSIZE, RLIMIT_DATA, RLIMIT_STACK, RLIMIT_CORE, RLIMIT_RSS, RLIMIT_NPROC, RLIMIT_NOFILE, Modified: stable/8/sys/compat/linux/linux_signal.h ============================================================================== --- stable/8/sys/compat/linux/linux_signal.h Wed Mar 2 19:46:45 2011 (r219199) +++ stable/8/sys/compat/linux/linux_signal.h Wed Mar 2 19:48:19 2011 (r219200) @@ -40,4 +40,7 @@ void ksiginfo_to_lsiginfo(ksiginfo_t *ks #define LINUX_SIG_VALID(sig) ((sig) <= LINUX_NSIG && (sig) > 0) +#define BSD_TO_LINUX_SIGNAL(sig) \ + (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig) + #endif /* _LINUX_SIGNAL_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103021948.p22JmJod043847>