diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-02-15 21:22:09 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-02-15 21:22:09 +0000 |
commit | 5a6a633611f2b3754972bdb30b7cfeee8a683673 (patch) | |
tree | b479ba7d97d7e32cf7cd5397127fc8b86e249727 /sys/compat/linux | |
parent | f7f678849a370a5bbd0828274cf72547731d9a65 (diff) | |
download | FreeBSD-src-5a6a633611f2b3754972bdb30b7cfeee8a683673.zip FreeBSD-src-5a6a633611f2b3754972bdb30b7cfeee8a683673.tar.gz |
Put the macro declaration in the relevant include file for future use.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 3 | ||||
-rw-r--r-- | sys/compat/linux/linux_signal.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 8992082..a721a6e 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -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, diff --git a/sys/compat/linux/linux_signal.h b/sys/compat/linux/linux_signal.h index ba780e9..939009f 100644 --- a/sys/compat/linux/linux_signal.h +++ b/sys/compat/linux/linux_signal.h @@ -40,4 +40,7 @@ void ksiginfo_to_lsiginfo(ksiginfo_t *ksi, l_siginfo_t *lsi, l_int sig); #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_ */ |