From owner-p4-projects@FreeBSD.ORG Tue Aug 15 14:22:44 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EC8AF16A4E0; Tue, 15 Aug 2006 14:22:43 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB6B116A4DA for ; Tue, 15 Aug 2006 14:22:43 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27A2543D46 for ; Tue, 15 Aug 2006 14:22:43 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7FEMhNN096689 for ; Tue, 15 Aug 2006 14:22:43 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7FEMg6F096686 for perforce@freebsd.org; Tue, 15 Aug 2006 14:22:42 GMT (envelope-from rdivacky@FreeBSD.org) Date: Tue, 15 Aug 2006 14:22:42 GMT Message-Id: <200608151422.k7FEMg6F096686@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 104032 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 14:22:44 -0000 http://perforce.freebsd.org/chv.cgi?CH=104032 Change 104032 by rdivacky@rdivacky_witten on 2006/08/15 14:22:00 Dont litter sources with extern struct sx bah but put this into linux_emul.h Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_emul.h#4 edit .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_misc.c#14 edit .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_signal.c#7 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#52 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_sysvec.c#16 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_emul.h#4 (text+ko) ==== @@ -72,4 +72,7 @@ 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_ */ ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_misc.c#14 (text+ko) ==== @@ -94,9 +94,6 @@ #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, ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_signal.c#7 (text+ko) ==== @@ -52,9 +52,6 @@ #include #include -extern struct sx emul_shared_lock; -extern struct sx emul_lock; - void linux_to_bsd_sigset(l_sigset_t *lss, sigset_t *bss) { ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#52 (text+ko) ==== @@ -67,9 +67,6 @@ #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 { ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_sysvec.c#16 (text+ko) ==== @@ -108,8 +108,6 @@ u_long stack, u_long ps_strings); 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;