PERFORCE change 104032 for review
Roman Divacky
rdivacky at FreeBSD.org
Tue Aug 15 14:22:44 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104032
Change 104032 by rdivacky at 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 <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)
{
==== //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;
More information about the p4-projects
mailing list