Move some stuff into headers where they belong.

Sponsored by:	Google SoC 2006
Submitted by:	rdivacky
Noticed by:	jhb, ssouhlal
This commit is contained in:
Alexander Leidinger 2006-08-17 21:06:48 +00:00
parent 02e079a2c3
commit 94cb2ecf79
6 changed files with 4 additions and 16 deletions

View File

@ -125,8 +125,6 @@ static void linux32_fixlimits(struct proc *p);
extern LIST_HEAD(futex_list, futex) futex_list;
extern struct mtx futex_mtx;
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
static eventhandler_tag linux_exit_tag;
static eventhandler_tag linux_schedtail_tag;

View File

@ -72,4 +72,7 @@ void linux_proc_exit(void *, struct proc *);
void linux_schedtail(void *, struct proc *);
void linux_proc_exec(void *, struct proc *, struct image_params *);
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
#endif /* !_LINUX_EMUL_H_ */

View File

@ -94,9 +94,6 @@ __FBSDID("$FreeBSD$");
#define BSD_TO_LINUX_SIGNAL(sig) \
(((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig)
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
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,

View File

@ -51,9 +51,6 @@ __FBSDID("$FreeBSD$");
#include <compat/linux/linux_util.h>
#include <compat/linux/linux_emul.h>
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
void
linux_to_bsd_sigset(l_sigset_t *lss, sigset_t *bss)
{

View File

@ -67,9 +67,6 @@ __FBSDID("$FreeBSD$");
#include "opt_posix.h"
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
extern struct sysentvec elf32_freebsd_sysvec; /* defined in i386/i386/elf_machdep.c */
struct l_descriptor {

View File

@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
#include <compat/linux/linux_emul.h>
#include <compat/linux/linux_mib.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_util.h>
@ -106,12 +107,7 @@ static void linux_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask);
static void exec_linux_setregs(struct thread *td, u_long entry,
u_long stack, u_long ps_strings);
extern void linux_proc_exit(void *, struct proc *, struct image_params *);
extern void linux_proc_exec(void *, struct proc *, struct image_params *);
extern void linux_schedtail(void *, struct proc *);
extern LIST_HEAD(futex_list, futex) futex_list;
extern struct sx emul_shared_lock;
extern struct sx emul_lock;
extern struct mtx futex_mtx;
static eventhandler_tag linux_exit_tag;