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_ */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"