Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2011 21:22:09 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218717 - head/sys/compat/linux
Message-ID:  <201102152122.p1FLM9QC045119@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Tue Feb 15 21:22:09 2011
New Revision: 218717
URL: http://svn.freebsd.org/changeset/base/218717

Log:
  Put the macro declaration in the relevant include file for future use.

Modified:
  head/sys/compat/linux/linux_misc.c
  head/sys/compat/linux/linux_signal.h

Modified: head/sys/compat/linux/linux_misc.c
==============================================================================
--- head/sys/compat/linux/linux_misc.c	Tue Feb 15 21:01:13 2011	(r218716)
+++ head/sys/compat/linux/linux_misc.c	Tue Feb 15 21:22:09 2011	(r218717)
@@ -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: head/sys/compat/linux/linux_signal.h
==============================================================================
--- head/sys/compat/linux/linux_signal.h	Tue Feb 15 21:01:13 2011	(r218716)
+++ head/sys/compat/linux/linux_signal.h	Tue Feb 15 21:22:09 2011	(r218717)
@@ -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?201102152122.p1FLM9QC045119>