diff --git a/sys/compat/linux/Makefile.inc b/sys/compat/linux/Makefile.inc index e48f9d03013d..96be31071ecd 100644 --- a/sys/compat/linux/Makefile.inc +++ b/sys/compat/linux/Makefile.inc @@ -1,6 +1,6 @@ -# $NetBSD: Makefile.inc,v 1.1 1998/09/30 21:38:46 erh Exp $ +# $NetBSD: Makefile.inc,v 1.2 1998/10/03 20:17:36 christos Exp $ -DEP= syscalls.conf syscalls.master ../../../kern/makesyscalls.sh +DEP= syscalls.conf syscalls.master ../../../../kern/makesyscalls.sh OBJS= linux_sysent.c linux_syscalls.c linux_syscall.h linux_syscallargs.h ${OBJS}: ${DEP} @@ -8,6 +8,6 @@ ${OBJS}: ${DEP} -mv -f linux_syscalls.c linux_syscalls.c.bak -mv -f linux_syscall.h linux_syscall.h.bak -mv -f linux_syscallargs.h linux_syscallargs.h.bak - sh ../../../kern/makesyscalls.sh syscalls.conf syscalls.master + sh ../../../../kern/makesyscalls.sh syscalls.conf syscalls.master all: ${OBJS} diff --git a/sys/compat/linux/Makefile.sc b/sys/compat/linux/Makefile.sc deleted file mode 100644 index 0088c6739669..000000000000 --- a/sys/compat/linux/Makefile.sc +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile.sc,v 1.1 1998/09/30 21:38:46 erh Exp $ - -DEP= syscalls.conf syscalls.master ../../../kern/makesyscalls.sh -OBJS= linux_sysent.c linux_syscalls.c linux_syscall.h linux_syscallargs.h - -${OBJS}: ${DEP} - -mv -f linux_sysent.c linux_sysent.c.bak - -mv -f linux_syscalls.c linux_syscalls.c.bak - -mv -f linux_syscall.h linux_syscall.h.bak - -mv -f linux_syscallargs.h linux_syscallargs.h.bak - sh ../../../kern/makesyscalls.sh syscalls.conf syscalls.master - -all: ${OBJS} diff --git a/sys/compat/linux/arch/alpha/Makefile b/sys/compat/linux/arch/alpha/Makefile index 4f0da1e7b36c..1e7173a1d2a4 100644 --- a/sys/compat/linux/arch/alpha/Makefile +++ b/sys/compat/linux/arch/alpha/Makefile @@ -1,12 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 18:01:53 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:37 christos Exp $ - -KDIR= /sys/compat/linux/alpha -INCSDIR= /usr/include/compat/linux/alpha - -INCS= linux_errno.h linux_exec.h linux_fcntl.h linux_machdep.h linux_mmap.h \ - linux_siginfo.h linux_signal.h linux_socket.h linux_syscall.h \ - linux_syscallargs.h linux_types.h - -.include <../Makefile.sc> +.include <../../Makefile.inc> .include diff --git a/sys/compat/linux/arch/alpha/linux_machdep.c b/sys/compat/linux/arch/alpha/linux_machdep.c index 226b70b90eb8..31238011755f 100644 --- a/sys/compat/linux/arch/alpha/linux_machdep.c +++ b/sys/compat/linux/arch/alpha/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.1 1998/10/01 00:34:22 erh Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.2 1998/10/03 20:17:37 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -72,15 +72,17 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include + +#include + #include #include #include diff --git a/sys/compat/linux/arch/alpha/linux_pipe.c b/sys/compat/linux/arch/alpha/linux_pipe.c index c412d6c30dc3..8a38a5c83090 100644 --- a/sys/compat/linux/arch/alpha/linux_pipe.c +++ b/sys/compat/linux/arch/alpha/linux_pipe.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_pipe.c,v 1.1 1998/10/01 00:32:27 erh Exp $ */ +/* $NetBSD: linux_pipe.c,v 1.2 1998/10/03 20:17:37 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -49,9 +49,10 @@ #include #include -#include -#include -#include +#include +#include +#include + #include /* diff --git a/sys/compat/linux/arch/alpha/linux_sigarray.c b/sys/compat/linux/arch/alpha/linux_sigarray.c index 81ac04ee6d67..d3cdaf399ce3 100644 --- a/sys/compat/linux/arch/alpha/linux_sigarray.c +++ b/sys/compat/linux/arch/alpha/linux_sigarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigarray.c,v 1.1 1998/10/01 00:32:27 erh Exp $ */ +/* $NetBSD: linux_sigarray.c,v 1.2 1998/10/03 20:17:37 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ #include #include -#include +#include int linux_to_native_sig[LINUX_NSIG] = { 0, diff --git a/sys/compat/linux/arch/alpha/linux_syscall.h b/sys/compat/linux/arch/alpha/linux_syscall.h index d4ef307b1d83..6ddd0ca78ed3 100644 --- a/sys/compat/linux/arch/alpha/linux_syscall.h +++ b/sys/compat/linux/arch/alpha/linux_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.1 1998/09/30 21:34:32 erh Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.2 1998/10/03 20:17:37 christos Exp $ */ /* * System call numbers. diff --git a/sys/compat/linux/arch/alpha/linux_syscallargs.h b/sys/compat/linux/arch/alpha/linux_syscallargs.h index 67a22c28cca8..8ff97cabe160 100644 --- a/sys/compat/linux/arch/alpha/linux_syscallargs.h +++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.1 1998/09/30 21:34:33 erh Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.2 1998/10/03 20:17:37 christos Exp $ */ /* * System call argument lists. diff --git a/sys/compat/linux/arch/alpha/linux_syscalls.c b/sys/compat/linux/arch/alpha/linux_syscalls.c index f299918cf5eb..b5a47edb60f9 100644 --- a/sys/compat/linux/arch/alpha/linux_syscalls.c +++ b/sys/compat/linux/arch/alpha/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.1 1998/09/30 21:34:33 erh Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.2 1998/10/03 20:17:38 christos Exp $ */ /* * System call names. @@ -13,14 +13,14 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #endif /* _KERNEL && ! _LKM */ char *linux_syscallnames[] = { diff --git a/sys/compat/linux/arch/alpha/linux_sysent.c b/sys/compat/linux/arch/alpha/linux_sysent.c index 572f9f69ce7c..213f59c58e8a 100644 --- a/sys/compat/linux/arch/alpha/linux_sysent.c +++ b/sys/compat/linux/arch/alpha/linux_sysent.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.1 1998/09/30 21:34:34 erh Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.2 1998/10/03 20:17:38 christos Exp $ */ /* * System call switch table. @@ -12,14 +12,14 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #define s(type) sizeof(type) diff --git a/sys/compat/linux/arch/alpha/syscalls.master b/sys/compat/linux/arch/alpha/syscalls.master index a6840514e827..a91a82081207 100644 --- a/sys/compat/linux/arch/alpha/syscalls.master +++ b/sys/compat/linux/arch/alpha/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp $ + $NetBSD: syscalls.master,v 1.2 1998/10/03 20:17:38 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -58,17 +58,17 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +;#include -#include -#include -#include -#include +#include -;#include 0 NOARGS { int sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } diff --git a/sys/compat/linux/arch/i386/Makefile b/sys/compat/linux/arch/i386/Makefile index d0ef58d4144f..6549cd92641a 100644 --- a/sys/compat/linux/arch/i386/Makefile +++ b/sys/compat/linux/arch/i386/Makefile @@ -1,11 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/10/01 00:28:33 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:38 christos Exp $ -KDIR= /sys/compat/linux/i386 -INCSDIR= /usr/include/compat/linux/i386 - -INCS= linux_errno.h linux_exec.h linux_fcntl.h linux_machdep.h linux_mmap.h \ - linux_signal.h linux_socket.h linux_syscall.h linux_syscallargs.h \ - linux_types.h - -.include <../Makefile.sc> +.include <../../Makefile.inc> .include diff --git a/sys/compat/linux/arch/i386/files.linux_i386 b/sys/compat/linux/arch/i386/files.linux_i386 index e640cf2d4db4..257955c0b860 100644 --- a/sys/compat/linux/arch/i386/files.linux_i386 +++ b/sys/compat/linux/arch/i386/files.linux_i386 @@ -1,23 +1,21 @@ -# $NetBSD: files.linux_i386,v 1.1 1998/10/01 00:29:11 erh Exp $ +# $NetBSD: files.linux_i386,v 1.2 1998/10/03 20:17:38 christos Exp $ # # Config file description for i386-dependent Linux compat code. -file compat/linux/i386/linux_machdep.c compat_linux -file compat/linux/i386/linux_syscalls.c compat_linux -file compat/linux/i386/linux_sysent.c compat_linux -file compat/linux/i386/linux_sigarray.c compat_linux +file compat/linux/arch/i386/linux_machdep.c compat_linux +file compat/linux/arch/i386/linux_syscalls.c compat_linux +file compat/linux/arch/i386/linux_sysent.c compat_linux +file compat/linux/arch/i386/linux_sigarray.c compat_linux -file compat/linux/multiarch/linux_pipe.c compat_linux - -file compat/linux/multiarch/linux_ipccall.c compat_linux -file compat/linux/multiarch/linux_misc_notalpha.c compat_linux -file compat/linux/multiarch/linux_sig_notalpha.c compat_linux -file compat/linux/multiarch/linux_sigaction.c compat_linux -file compat/linux/multiarch/linux_socketcall.c compat_linux -file compat/linux/multiarch/linux_llseek.c compat_linux - -file compat/linux/multiarch/linux_break.c compat_linux -file compat/linux/multiarch/linux_oldmmap.c compat_linux -file compat/linux/multiarch/linux_oldselect.c compat_linux -file compat/linux/multiarch/linux_olduname.c compat_linux -file compat/linux/multiarch/linux_oldolduname.c compat_linux +file compat/linux/common/linux_pipe.c compat_linux +file compat/linux/common/linux_ipccall.c compat_linux +file compat/linux/common/linux_misc_notalpha.c compat_linux +file compat/linux/common/linux_sig_notalpha.c compat_linux +file compat/linux/common/linux_sigaction.c compat_linux +file compat/linux/common/linux_socketcall.c compat_linux +file compat/linux/common/linux_llseek.c compat_linux +file compat/linux/common/linux_break.c compat_linux +file compat/linux/common/linux_oldmmap.c compat_linux +file compat/linux/common/linux_oldselect.c compat_linux +file compat/linux/common/linux_olduname.c compat_linux +file compat/linux/common/linux_oldolduname.c compat_linux diff --git a/sys/compat/linux/arch/i386/linux_machdep.c b/sys/compat/linux/arch/i386/linux_machdep.c index e0c19bfc1c52..89bff969e081 100644 --- a/sys/compat/linux/arch/i386/linux_machdep.c +++ b/sys/compat/linux/arch/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.43 1998/10/01 02:17:31 erh Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.44 1998/10/03 20:17:38 christos Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -57,13 +57,14 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include + #include -#include -#include -#include -#include #include #include diff --git a/sys/compat/linux/arch/i386/linux_sigarray.c b/sys/compat/linux/arch/i386/linux_sigarray.c index 767b5eacf8b6..0b4f834298cf 100644 --- a/sys/compat/linux/arch/i386/linux_sigarray.c +++ b/sys/compat/linux/arch/i386/linux_sigarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigarray.c,v 1.14 1998/10/01 02:27:33 erh Exp $ */ +/* $NetBSD: linux_sigarray.c,v 1.15 1998/10/03 20:17:38 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -74,7 +74,7 @@ #include #include -#include +#include int linux_to_native_sig[LINUX_NSIG] = { 0, diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h index 1224fb2b8d31..c3e6c97e5487 100644 --- a/sys/compat/linux/arch/i386/linux_syscall.h +++ b/sys/compat/linux/arch/i386/linux_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.1 1998/10/01 02:05:32 erh Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.2 1998/10/03 20:17:38 christos Exp $ */ /* * System call numbers. diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h index 3898979301f0..564ee98793a9 100644 --- a/sys/compat/linux/arch/i386/linux_syscallargs.h +++ b/sys/compat/linux/arch/i386/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.1 1998/10/01 02:05:33 erh Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.2 1998/10/03 20:17:38 christos Exp $ */ /* * System call argument lists. diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c index 6bb1699d6bfa..e35f64927858 100644 --- a/sys/compat/linux/arch/i386/linux_syscalls.c +++ b/sys/compat/linux/arch/i386/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.1 1998/10/01 02:05:33 erh Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.2 1998/10/03 20:17:39 christos Exp $ */ /* * System call names. @@ -13,11 +13,11 @@ #include #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #endif /* _KERNEL && ! _LKM */ char *linux_syscallnames[] = { diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c index c9458c5e9b4e..4af759c76282 100644 --- a/sys/compat/linux/arch/i386/linux_sysent.c +++ b/sys/compat/linux/arch/i386/linux_sysent.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.1 1998/10/01 02:05:33 erh Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.2 1998/10/03 20:17:39 christos Exp $ */ /* * System call switch table. @@ -12,11 +12,11 @@ #include #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #define s(type) sizeof(type) diff --git a/sys/compat/linux/arch/i386/syscalls.master b/sys/compat/linux/arch/i386/syscalls.master index 9eb8e7d99dcd..310852383e8f 100644 --- a/sys/compat/linux/arch/i386/syscalls.master +++ b/sys/compat/linux/arch/i386/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.26 1998/10/01 02:03:17 erh Exp $ + $NetBSD: syscalls.master,v 1.27 1998/10/03 20:17:39 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -39,12 +39,13 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include + +#include -#include 0 NOARGS { int sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } diff --git a/sys/compat/linux/arch/m68k/Makefile b/sys/compat/linux/arch/m68k/Makefile index 496b93e91b73..bbc857a34100 100644 --- a/sys/compat/linux/arch/m68k/Makefile +++ b/sys/compat/linux/arch/m68k/Makefile @@ -1,3 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 21:55:58 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ -.include <../Makefile.inc> +.include <../../Makefile.inc> +.include diff --git a/sys/compat/linux/arch/mips/Makefile b/sys/compat/linux/arch/mips/Makefile index 496b93e91b73..bbc857a34100 100644 --- a/sys/compat/linux/arch/mips/Makefile +++ b/sys/compat/linux/arch/mips/Makefile @@ -1,3 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 21:55:58 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ -.include <../Makefile.inc> +.include <../../Makefile.inc> +.include diff --git a/sys/compat/linux/arch/powerpc/Makefile b/sys/compat/linux/arch/powerpc/Makefile index c527f8f1bde5..bbc857a34100 100644 --- a/sys/compat/linux/arch/powerpc/Makefile +++ b/sys/compat/linux/arch/powerpc/Makefile @@ -1,3 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 21:55:59 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ -.include <../Makefile.inc> +.include <../../Makefile.inc> +.include diff --git a/sys/compat/linux/arch/sparc/Makefile b/sys/compat/linux/arch/sparc/Makefile index c527f8f1bde5..bbc857a34100 100644 --- a/sys/compat/linux/arch/sparc/Makefile +++ b/sys/compat/linux/arch/sparc/Makefile @@ -1,3 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 21:55:59 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ -.include <../Makefile.inc> +.include <../../Makefile.inc> +.include diff --git a/sys/compat/linux/arch/sparc64/Makefile b/sys/compat/linux/arch/sparc64/Makefile index 048d47444445..bbc857a34100 100644 --- a/sys/compat/linux/arch/sparc64/Makefile +++ b/sys/compat/linux/arch/sparc64/Makefile @@ -1,3 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/09/30 21:56:00 erh Exp $ +# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ -.include <../Makefile.inc> +.include <../../Makefile.inc> +.include diff --git a/sys/compat/linux/common/linux_break.c b/sys/compat/linux/common/linux_break.c index e9eb97d6e462..1cb898614388 100644 --- a/sys/compat/linux/common/linux_break.c +++ b/sys/compat/linux/common/linux_break.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_break.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_break.c,v 1.48 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -73,8 +73,8 @@ #include -#include -#include +#include +#include #include diff --git a/sys/compat/linux/common/linux_cdrom.c b/sys/compat/linux/common/linux_cdrom.c index 2aeb4c9fd556..dc6e44700b0e 100644 --- a/sys/compat/linux/common/linux_cdrom.c +++ b/sys/compat/linux/common/linux_cdrom.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_cdrom.c,v 1.2 1998/10/01 02:30:37 erh Exp $ */ +/* $NetBSD: linux_cdrom.c,v 1.3 1998/10/03 20:17:40 christos Exp $ */ /* * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -44,12 +44,13 @@ #include -#include -#include -#include +#include +#include +#include +#include +#include + #include -#include -#include #if 0 #define DPRINTF(x) printf x diff --git a/sys/compat/linux/common/linux_cdrom.h b/sys/compat/linux/common/linux_cdrom.h index c3932c37255f..0eddddf714c8 100644 --- a/sys/compat/linux/common/linux_cdrom.h +++ b/sys/compat/linux/common/linux_cdrom.h @@ -1,9 +1,12 @@ -/* $NetBSD: linux_cdrom.h,v 1.2 1998/10/01 02:30:37 erh Exp $ */ +/* $NetBSD: linux_cdrom.h,v 1.3 1998/10/03 20:17:40 christos Exp $ */ -/* - * Copyright (c) 1997 The NetBSD Foundation, Inc. +/*- + * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * + * This code is derived from software contributed to The NetBSD Foundation + * by Eric Haszlakiewicz. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -14,8 +17,8 @@ * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. * 4. Neither the name of The NetBSD Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. @@ -33,8 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_CDROM_H -#define _COMMON_LINUX_CDROM_H +#ifndef _LINUX_CDROM_H +#define _LINUX_CDROM_H #define LINUX_CDROMPAUSE 0x5301 #define LINUX_CDROMRESUME 0x5302 @@ -116,4 +119,4 @@ struct linux_cdrom_volctrl { u_char channel3; }; -#endif /* !_COMMON_LINUX_CDROM_H */ +#endif /* !_LINUX_CDROM_H */ diff --git a/sys/compat/linux/common/linux_dirent.h b/sys/compat/linux/common/linux_dirent.h index f1b9eb3a2d7c..a0d013f84b2b 100644 --- a/sys/compat/linux/common/linux_dirent.h +++ b/sys/compat/linux/common/linux_dirent.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_dirent.h,v 1.4 1998/10/01 03:37:51 erh Exp $ */ +/* $NetBSD: linux_dirent.h,v 1.5 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_DIRENT_H -#define _COMMON_LINUX_DIRENT_H +#ifndef _LINUX_DIRENT_H +#define _LINUX_DIRENT_H #define LINUX_MAXNAMLEN 255 @@ -82,4 +82,4 @@ struct linux_dirent { #define LINUX_NAMEOFF(dp) ((char *)&(dp)->d_name - (char *)dp) #define LINUX_RECLEN(de,namlen) ALIGN((LINUX_NAMEOFF(de) + (namlen) + 1)) -#endif /* !_COMMON_LINUX_DIRENT_H */ +#endif /* !_LINUX_DIRENT_H */ diff --git a/sys/compat/linux/common/linux_errno.h b/sys/compat/linux/common/linux_errno.h index 3521b7e3afb2..d20c494a36ca 100644 --- a/sys/compat/linux/common/linux_errno.h +++ b/sys/compat/linux/common/linux_errno.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_errno.h,v 1.2 1998/10/01 01:03:37 erh Exp $ */ +/* $NetBSD: linux_errno.h,v 1.3 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_ERRNO_H -#define _COMMON_LINUX_ERRNO_H +#ifndef _LINUX_ERRNO_H +#define _LINUX_ERRNO_H #define LINUX_EPERM 1 #define LINUX_ENOENT 2 @@ -106,7 +106,15 @@ #define LINUX_ERANGE 34 #define LINUX_EDEADLK 35 + /* Error numbers after here vary wildly */ /* depending on the machine architechture. */ +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_errno.h machine type. +#endif -#endif /* !_COMMON_LINUX_ERRNO_H */ +#endif /* !_LINUX_ERRNO_H */ diff --git a/sys/compat/linux/common/linux_error.c b/sys/compat/linux/common/linux_error.c index 0c931c75242c..6389228dbf3e 100644 --- a/sys/compat/linux/common/linux_error.c +++ b/sys/compat/linux/common/linux_error.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_error.c,v 1.5 1998/10/01 02:32:24 erh Exp $ */ +/* $NetBSD: linux_error.c,v 1.6 1998/10/03 20:17:40 christos Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -31,7 +31,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include /* * This list is used to translate NetBSD errors to linux errors diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c index a57dd170729d..869dcb40a783 100644 --- a/sys/compat/linux/common/linux_exec.c +++ b/sys/compat/linux/common/linux_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.c,v 1.31 1998/10/01 03:11:33 erh Exp $ */ +/* $NetBSD: linux_exec.c,v 1.32 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -89,15 +89,16 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include + +#include +#include -#include const char linux_emul_path[] = "/emul/linux"; diff --git a/sys/compat/linux/common/linux_exec.h b/sys/compat/linux/common/linux_exec.h index a8330a0302b2..640efe219deb 100644 --- a/sys/compat/linux/common/linux_exec.h +++ b/sys/compat/linux/common/linux_exec.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.h,v 1.9 1998/10/01 02:11:00 erh Exp $ */ +/* $NetBSD: linux_exec.h,v 1.10 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,9 +67,17 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ +#ifndef _LINUX_EXEC_H +#define _LINUX_EXEC_H + +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_exec.h machine type. +#endif -#ifndef _COMMON_LINUX_EXEC_H -#define _COMMON_LINUX_EXEC_H /* Defines for a.out executables */ #define LINUX_AOUT_HDR_SIZE (sizeof (struct exec)) @@ -110,4 +118,4 @@ int linux_elf64_probe __P((struct proc *, struct exec_package *, Elf64_Ehdr *, __END_DECLS #endif /* !_KERNEL */ -#endif /* !_COMMON_LINUX_EXEC_H */ +#endif /* !_LINUX_EXEC_H */ diff --git a/sys/compat/linux/common/linux_exec_aout.c b/sys/compat/linux/common/linux_exec_aout.c index a4f4b11dea6b..cbcac7bca93e 100644 --- a/sys/compat/linux/common/linux_exec_aout.c +++ b/sys/compat/linux/common/linux_exec_aout.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec_aout.c,v 1.31 1998/10/01 03:11:33 erh Exp $ */ +/* $NetBSD: linux_exec_aout.c,v 1.32 1998/10/03 20:17:40 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -86,17 +86,19 @@ #include #include -#include -#include -#include -#include -#include -#include -#include - #include #include -#include + +#include +#include +#include +#include +#include +#include + +#include +#include + static void *linux_aout_copyargs __P((struct exec_package *, struct ps_strings *, void *, void *)); diff --git a/sys/compat/linux/common/linux_exec_elf32.c b/sys/compat/linux/common/linux_exec_elf32.c index cf6730e015f1..15151d094c1f 100644 --- a/sys/compat/linux/common/linux_exec_elf32.c +++ b/sys/compat/linux/common/linux_exec_elf32.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec_elf32.c,v 1.31 1998/10/01 03:11:33 erh Exp $ */ +/* $NetBSD: linux_exec_elf32.c,v 1.32 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -93,15 +93,15 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include -#include +#include +#include static int ELFNAME2(linux,signature) __P((struct proc *, struct exec_package *, Elf_Ehdr *)); diff --git a/sys/compat/linux/common/linux_fcntl.h b/sys/compat/linux/common/linux_fcntl.h index fe094ced9c50..fdd34fa33ec7 100644 --- a/sys/compat/linux/common/linux_fcntl.h +++ b/sys/compat/linux/common/linux_fcntl.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_fcntl.h,v 1.2 1998/10/01 01:16:42 erh Exp $ */ +/* $NetBSD: linux_fcntl.h,v 1.3 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_FCNTL_H -#define _COMMON_LINUX_FCNTL_H +#ifndef _LINUX_FCNTL_H +#define _LINUX_FCNTL_H /* * The arguments in the flock structure have a different order from the @@ -89,4 +89,12 @@ struct linux_flock { linux_pid_t l_pid; }; -#endif /* !_COMMON_LINUX_FCNTL_H */ +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_fcntl.h machine type. +#endif + +#endif /* !_LINUX_FCNTL_H */ diff --git a/sys/compat/linux/common/linux_file.c b/sys/compat/linux/common/linux_file.c index 861793ab4fa8..6eb6563d91b2 100644 --- a/sys/compat/linux/common/linux_file.c +++ b/sys/compat/linux/common/linux_file.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_file.c,v 1.23 1998/10/01 03:22:11 erh Exp $ */ +/* $NetBSD: linux_file.c,v 1.24 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -89,14 +89,14 @@ #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include -#include +#include static int linux_to_bsd_ioflags __P((int)); static int bsd_to_linux_ioflags __P((int)); diff --git a/sys/compat/linux/common/linux_ioctl.c b/sys/compat/linux/common/linux_ioctl.c index f825004fbbe7..0e398313fbdb 100644 --- a/sys/compat/linux/common/linux_ioctl.c +++ b/sys/compat/linux/common/linux_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ioctl.c,v 1.19 1998/10/01 03:24:28 erh Exp $ */ +/* $NetBSD: linux_ioctl.c,v 1.20 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -85,10 +85,11 @@ #include -#include -#include +#include +#include +#include + #include -#include #include #define LINUX_TO_OSS(v) (v) /* do nothing, same ioctl() encoding */ diff --git a/sys/compat/linux/common/linux_ioctl.h b/sys/compat/linux/common/linux_ioctl.h index 60ecde8ea38b..36411744aaf1 100644 --- a/sys/compat/linux/common/linux_ioctl.h +++ b/sys/compat/linux/common/linux_ioctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ioctl.h,v 1.8 1998/10/01 01:33:04 erh Exp $ */ +/* $NetBSD: linux_ioctl.h,v 1.9 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_IOCTL_H -#define _COMMON_LINUX_IOCTL_H +#ifndef _LINUX_IOCTL_H +#define _LINUX_IOCTL_H struct linux_sys_ioctl_args; @@ -84,4 +84,12 @@ int linux_ioctl_socket __P((struct proc *, struct linux_sys_ioctl_args *, __END_DECLS #endif /* !_KERNEL */ -#endif /* !_COMMON_LINUX_IOCTL_H */ +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_ioctl.h machine type. +#endif + +#endif /* !_LINUX_IOCTL_H */ diff --git a/sys/compat/linux/common/linux_ipc.c b/sys/compat/linux/common/linux_ipc.c index e631acb6f5b9..cfc19cda5d03 100644 --- a/sys/compat/linux/common/linux_ipc.c +++ b/sys/compat/linux/common/linux_ipc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ipc.c,v 1.14 1998/10/01 03:27:38 erh Exp $ */ +/* $NetBSD: linux_ipc.c,v 1.15 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -78,16 +78,18 @@ #include #include -#include -#include +#include +#include +#include + #include #include -#include -#include -#include -#include -#include -#include + +#include +#include +#include +#include +#include /* * Note: Not all linux architechtures have explicit versions diff --git a/sys/compat/linux/common/linux_ipc.h b/sys/compat/linux/common/linux_ipc.h index 93cd6a1677bf..3196dfc7aeae 100644 --- a/sys/compat/linux/common/linux_ipc.h +++ b/sys/compat/linux/common/linux_ipc.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ipc.h,v 1.2 1998/10/01 03:48:32 erh Exp $ */ +/* $NetBSD: linux_ipc.h,v 1.3 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_IPC_H -#define _COMMON_LINUX_IPC_H +#ifndef _LINUX_IPC_H +#define _LINUX_IPC_H #include @@ -110,4 +110,4 @@ __END_DECLS #endif /* !_KERNEL */ #endif /* !SYSVSEM, !SYSVSHM, !SYSVMSG */ -#endif /* !_COMMON_LINUX_IPC_H */ +#endif /* !_LINUX_IPC_H */ diff --git a/sys/compat/linux/common/linux_ipccall.c b/sys/compat/linux/common/linux_ipccall.c index 65a6c77d7955..66d05bc0d082 100644 --- a/sys/compat/linux/common/linux_ipccall.c +++ b/sys/compat/linux/common/linux_ipccall.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ipccall.c,v 1.14 1998/10/01 03:27:38 erh Exp $ */ +/* $NetBSD: linux_ipccall.c,v 1.15 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -81,21 +81,23 @@ /* sys_ipc + args prototype */ -#include -#include +#include +#include + #include #include /* general ipc defines */ -#include +#include /* prototypes for real/normal linux-emul syscalls */ -#include -#include -#include +#include +#include +#include /* prototypes for sys_ipc stuff */ -#include +#include + /* Used on: arm, i386, m68k, mips, ppc, sparc, sparc64 */ /* Not used on: alpha */ diff --git a/sys/compat/linux/common/linux_ipccall.h b/sys/compat/linux/common/linux_ipccall.h index fff50e7faa57..0959deb60924 100644 --- a/sys/compat/linux/common/linux_ipccall.h +++ b/sys/compat/linux/common/linux_ipccall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ipccall.h,v 1.3 1998/10/01 03:29:46 erh Exp $ */ +/* $NetBSD: linux_ipccall.h,v 1.4 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,9 +67,14 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _MULTIARCH_LINUX_IPCCALL_H -#define _MULTIARCH_LINUX_IPCCALL_H +#ifndef _LINUX_IPCCALL_H +#define _LINUX_IPCCALL_H +/* + * All linux architectures except alpha use the sys_ipc + * syscall and need the associated defines. + */ +# if !defined(__alpha__) /* Used on: arm, i386, m68k, mips, ppc, sparc, sparc64 */ /* Not used on: alpha */ @@ -91,29 +96,30 @@ #define LINUX_SYS_shmctl 24 -#ifdef SYSVSEM +# ifdef SYSVSEM inline int linux_semop __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); + register_t *)); inline int linux_semget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -#endif + register_t *)); +# endif -#ifdef SYSVMSG +# ifdef SYSVMSG inline int linux_msgsnd __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); + register_t *)); inline int linux_msgrcv __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); + register_t *)); inline int linux_msgget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -#endif + register_t *)); +# endif -#ifdef SYSVSHM +# ifdef SYSVSHM inline int linux_shmdt __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); + register_t *)); inline int linux_shmget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -#endif + register_t *)); +# endif -#endif /* !_MULTIARCH_LINUX_IPCCALL_H */ +# endif +#endif /* !_LINUX_IPCCALL_H */ diff --git a/sys/compat/linux/common/linux_llseek.c b/sys/compat/linux/common/linux_llseek.c index 1a8f592f8259..3bea6f0152b8 100644 --- a/sys/compat/linux/common/linux_llseek.c +++ b/sys/compat/linux/common/linux_llseek.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_llseek.c,v 1.23 1998/10/01 03:22:11 erh Exp $ */ +/* $NetBSD: linux_llseek.c,v 1.24 1998/10/03 20:17:41 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -76,11 +76,12 @@ #include -#include -#include +#include +#include +#include +#include + #include -#include -#include /* Used on: arm, i386, m68k, mips, ppc, sparc */ /* Not used on: alpha, sparc64 */ diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 497f0b53f68e..55f88e60d386 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.48 1998/10/01 18:53:37 perry Exp $ */ +/* $NetBSD: linux_misc.c,v 1.49 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -124,14 +124,17 @@ #include #include -#include -#include -#include -#include -#include +#include +#include + #include -#include -#include + +#include +#include +#include +#include +#include + /* Local linux_misc.c functions: */ static void bsd_to_linux_statfs __P((struct statfs *, struct linux_statfs *)); diff --git a/sys/compat/linux/common/linux_misc.h b/sys/compat/linux/common/linux_misc.h index 9f7806a884f7..237ecf8b7969 100644 --- a/sys/compat/linux/common/linux_misc.h +++ b/sys/compat/linux/common/linux_misc.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.h,v 1.1 1998/10/01 03:49:59 erh Exp $ */ +/* $NetBSD: linux_misc.h,v 1.2 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -36,8 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_MISC_H -#define _COMMON_LINUX_MISC_H +#ifndef _LINUX_MISC_H +#define _LINUX_MISC_H #ifdef _KERNEL __BEGIN_DECLS @@ -47,4 +47,4 @@ int linux_select1 __P((struct proc *, register_t *, int, fd_set *, fd_set *, __END_DECLS #endif /* !_KERNEL */ -#endif /* !_COMMON_LINUX_MISC_H */ +#endif /* !_LINUX_MISC_H */ diff --git a/sys/compat/linux/common/linux_misc_notalpha.c b/sys/compat/linux/common/linux_misc_notalpha.c index 43afd8bd2b08..8f38a0834b68 100644 --- a/sys/compat/linux/common/linux_misc_notalpha.c +++ b/sys/compat/linux/common/linux_misc_notalpha.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc_notalpha.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_misc_notalpha.c,v 1.48 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -85,13 +85,14 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include + #include -#include /* * This file contains routines which are used diff --git a/sys/compat/linux/common/linux_mmap.h b/sys/compat/linux/common/linux_mmap.h index 19cc80635d92..6fa8f98cbb45 100644 --- a/sys/compat/linux/common/linux_mmap.h +++ b/sys/compat/linux/common/linux_mmap.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_mmap.h,v 1.2 1998/10/01 00:53:45 erh Exp $ */ +/* $NetBSD: linux_mmap.h,v 1.3 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_MMAP_H -#define _COMMON_LINUX_MMAP_H +#ifndef _LINUX_MMAP_H +#define _LINUX_MMAP_H #define LINUX_PROT_NONE 0x00 #define LINUX_PROT_READ 0x01 @@ -78,4 +78,29 @@ #define LINUX_MAP_SHARED 0x0001 #define LINUX_MAP_PRIVATE 0x0002 -#endif /* !_COMMON_LINUX_MMAP_H */ +#if defined(__i386__) +#include +#include +#elif defined(__alpha__) +#include +/* + * XXX ERH: All below here are guesses. The header + * XXX ERH: files are correct but the defined(*) + * XXX ERH: probably aren't + * + * XXX ERH: Can probably drop some of these headers: linux + * XXX ERH: is stupid about compat stuff. It doesn't really + * XXX ERH: use all the defines, but I don't want to go looking + * XXX ERH: through all the kernel sources right now. + */ +#elif defined(__mips__) +#include +#elif defined(__powerpc__) +#include +#elif defined(sparc) +#include +#else +#error Undefined linux_mmap.h machine type. +#endif + +#endif /* !_LINUX_MMAP_H */ diff --git a/sys/compat/linux/common/linux_msg.h b/sys/compat/linux/common/linux_msg.h index 029028e4cb37..bbf759f13967 100644 --- a/sys/compat/linux/common/linux_msg.h +++ b/sys/compat/linux/common/linux_msg.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_msg.h,v 1.3 1998/10/01 03:48:32 erh Exp $ */ +/* $NetBSD: linux_msg.h,v 1.4 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_MSG_H -#define _COMMON_LINUX_MSG_H +#ifndef _LINUX_MSG_H +#define _LINUX_MSG_H #include @@ -148,4 +148,4 @@ __END_DECLS #endif /* !_KERNEL */ #endif /* !SYSVMSG */ -#endif /* !_COMMON_LINUX_MSG_H */ +#endif /* !_LINUX_MSG_H */ diff --git a/sys/compat/linux/common/linux_oldmmap.c b/sys/compat/linux/common/linux_oldmmap.c index df26e740c596..2565781ac8a2 100644 --- a/sys/compat/linux/common/linux_oldmmap.c +++ b/sys/compat/linux/common/linux_oldmmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldmmap.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_oldmmap.c,v 1.48 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -77,9 +77,10 @@ #include #include -#include -#include -#include +#include +#include +#include + #include /* Used on: arm, i386, m68k */ diff --git a/sys/compat/linux/common/linux_oldolduname.c b/sys/compat/linux/common/linux_oldolduname.c index 3d26e4803d39..edcfa044ff39 100644 --- a/sys/compat/linux/common/linux_oldolduname.c +++ b/sys/compat/linux/common/linux_oldolduname.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldolduname.c,v 1.48 1998/10/01 18:58:28 perry Exp $ */ +/* $NetBSD: linux_oldolduname.c,v 1.49 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -77,9 +77,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include + #include /* Used on: arm, i386, mips, ppc */ diff --git a/sys/compat/linux/common/linux_oldselect.c b/sys/compat/linux/common/linux_oldselect.c index 6320637692f5..5b0d45684e1c 100644 --- a/sys/compat/linux/common/linux_oldselect.c +++ b/sys/compat/linux/common/linux_oldselect.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldselect.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_oldselect.c,v 1.48 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -77,10 +77,12 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include + #include /* Used on: arm, i386, m68k */ diff --git a/sys/compat/linux/common/linux_olduname.c b/sys/compat/linux/common/linux_olduname.c index 013921555349..ebe17c58e21a 100644 --- a/sys/compat/linux/common/linux_olduname.c +++ b/sys/compat/linux/common/linux_olduname.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_olduname.c,v 1.48 1998/10/01 18:57:05 perry Exp $ */ +/* $NetBSD: linux_olduname.c,v 1.49 1998/10/03 20:17:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -79,9 +79,10 @@ #include #include -#include -#include -#include +#include +#include +#include + #include /* Used on: (alpha), arm, i386, mips, ppc */ diff --git a/sys/compat/linux/common/linux_pipe.c b/sys/compat/linux/common/linux_pipe.c index 1a4c11726590..4dfcbdef75b0 100644 --- a/sys/compat/linux/common/linux_pipe.c +++ b/sys/compat/linux/common/linux_pipe.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_pipe.c,v 1.47 1998/10/01 04:05:56 erh Exp $ */ +/* $NetBSD: linux_pipe.c,v 1.48 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -80,9 +80,10 @@ #include #include -#include -#include -#include +#include +#include +#include + #include /* Used on: arm, i386, m68k, ppc */ diff --git a/sys/compat/linux/common/linux_sem.h b/sys/compat/linux/common/linux_sem.h index 25724a7e6821..2cb3929e89ac 100644 --- a/sys/compat/linux/common/linux_sem.h +++ b/sys/compat/linux/common/linux_sem.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sem.h,v 1.2 1998/10/01 03:48:32 erh Exp $ */ +/* $NetBSD: linux_sem.h,v 1.3 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_SEM_H -#define _COMMON_LINUX_SEM_H +#ifndef _LINUX_SEM_H +#define _LINUX_SEM_H #include @@ -121,11 +121,11 @@ struct linux_sys_semctl_args { __BEGIN_DECLS int linux_sys_semctl __P((struct proc *, void *, register_t *)); void bsd_to_linux_semid_ds __P((struct semid_ds *, - struct linux_semid_ds *)); + struct linux_semid_ds *)); void linux_to_bsd_semid_ds __P((struct linux_semid_ds *, - struct semid_ds *)); + struct semid_ds *)); __END_DECLS #endif /* !_KERNEL */ #endif /* !SYSVSEM */ -#endif /* !_COMMON_LINUX_SEM_H */ +#endif /* !_LINUX_SEM_H */ diff --git a/sys/compat/linux/common/linux_shm.h b/sys/compat/linux/common/linux_shm.h index 2e6a6235b4ca..c1897764dfd8 100644 --- a/sys/compat/linux/common/linux_shm.h +++ b/sys/compat/linux/common/linux_shm.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_shm.h,v 1.2 1998/10/01 03:48:32 erh Exp $ */ +/* $NetBSD: linux_shm.h,v 1.3 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_SHM_H -#define _COMMON_LINUX_SHM_H +#ifndef _LINUX_SHM_H +#define _LINUX_SHM_H #include @@ -119,11 +119,11 @@ __BEGIN_DECLS int linux_sys_shmat __P((struct proc *, void *, register_t *)); int linux_sys_shmctl __P((struct proc *, void *, register_t *)); void linux_to_bsd_shmid_ds __P((struct linux_shmid_ds *, - struct shmid_ds *)); + struct shmid_ds *)); void bsd_to_linux_shmid_ds __P((struct shmid_ds *, - struct linux_shmid_ds *)); + struct linux_shmid_ds *)); __END_DECLS #endif /* !_KERNEL */ #endif /* !SYSVSHM */ -#endif /* !_COMMON_LINUX_SHM_H */ +#endif /* !_LINUX_SHM_H */ diff --git a/sys/compat/linux/common/linux_sig_notalpha.c b/sys/compat/linux/common/linux_sig_notalpha.c index 4685c17cfde5..caeb47f901fb 100644 --- a/sys/compat/linux/common/linux_sig_notalpha.c +++ b/sys/compat/linux/common/linux_sig_notalpha.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sig_notalpha.c,v 1.14 1998/10/01 02:27:34 erh Exp $ */ +/* $NetBSD: linux_sig_notalpha.c,v 1.15 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -80,10 +80,11 @@ #include -#include -#include +#include +#include +#include + #include -#include /* Used on: arm, i386, m68k, mips, sparc, sparc64 */ /* Not used on: alpha */ diff --git a/sys/compat/linux/common/linux_sigaction.c b/sys/compat/linux/common/linux_sigaction.c index e715bc6f979d..527b59f24c1e 100644 --- a/sys/compat/linux/common/linux_sigaction.c +++ b/sys/compat/linux/common/linux_sigaction.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sigaction.c,v 1.14 1998/10/01 02:27:34 erh Exp $ */ +/* $NetBSD: linux_sigaction.c,v 1.15 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -80,10 +80,11 @@ #include -#include -#include +#include +#include +#include + #include -#include /* Used on: arm, i386, m68k, mips, ppc */ /* Not used on: alpha, sparc, sparc64 */ diff --git a/sys/compat/linux/common/linux_signal.c b/sys/compat/linux/common/linux_signal.c index 13e0ca8fd1b1..c1c46dca48be 100644 --- a/sys/compat/linux/common/linux_signal.c +++ b/sys/compat/linux/common/linux_signal.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_signal.c,v 1.14 1998/10/01 02:27:33 erh Exp $ */ +/* $NetBSD: linux_signal.c,v 1.15 1998/10/03 20:17:43 christos Exp $ */ /* * Copyright (c) 1998 Eric Haszlakiewicz @@ -63,10 +63,11 @@ #include -#include -#include +#include +#include +#include + #include -#include /* Locally used defines (in bsd<->linux conversion functions): */ /* XXX XAX rename to linux_old. Add stuff for new type linux_sigset_t diff --git a/sys/compat/linux/common/linux_signal.h b/sys/compat/linux/common/linux_signal.h index 32df4da9ce61..d2b37399411d 100644 --- a/sys/compat/linux/common/linux_signal.h +++ b/sys/compat/linux/common/linux_signal.h @@ -1,7 +1,42 @@ -/* $NetBSD: linux_signal.h,v 1.6 1998/10/01 00:57:30 erh Exp $ */ +/* $NetBSD: linux_signal.h,v 1.7 1998/10/03 20:17:43 christos Exp $ */ + +/*- + * Copyright (c) 1998 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Eric Haszlakiewicz. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. + * 4. Neither the name of The NetBSD Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ /* - * Copyright (c) 1998 Eric Haszlakiewicz * Copyright (c) 1995 Frank van der Linden * All rights reserved. * @@ -32,10 +67,16 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* Note: Machine dependant portions of this file exist. */ +#ifndef _LINUX_SIGNAL_H +#define _LINUX_SIGNAL_H -#ifndef _COMMON_LINUX_SIGNAL_H -#define _COMMON_LINUX_SIGNAL_H +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_signal.h machine type. +#endif #ifdef _KERNEL extern int native_to_linux_sig[]; @@ -51,21 +92,21 @@ void native_to_linux_sigset __P((const sigset_t *, linux_sigset_t *)); #endif #define linux_to_native_sigset(x,y) \ - linux_old_to_native_sigset((linux_old_sigset_t *)x, y) + linux_old_to_native_sigset((linux_old_sigset_t *)x, y) #define native_to_linux_sigset(x,y) \ - native_to_linux_old_sigset(x, (linux_old_sigset_t *)y) + native_to_linux_old_sigset(x, (linux_old_sigset_t *)y) -void linux_old_to_native_sigaction __P((struct linux_old_sigaction *, \ - struct sigaction *)); -void native_to_linux_old_sigaction __P((struct sigaction *, \ - struct linux_old_sigaction *)); +void linux_old_to_native_sigaction __P((struct linux_old_sigaction *, + struct sigaction *)); +void native_to_linux_old_sigaction __P((struct sigaction *, + struct linux_old_sigaction *)); -void linux_to_native_sigaction __P((struct linux_sigaction *, \ - struct sigaction *)); +void linux_to_native_sigaction __P((struct linux_sigaction *, + struct sigaction *)); void native_to_linux_sigaction __P((struct sigaction *, \ - struct linux_sigaction *)); + struct linux_sigaction *)); __END_DECLS #endif /* !_KERNEL */ -#endif /* !_COMMON_LINUX_SIGNAL_H */ +#endif /* !_LINUX_SIGNAL_H */ diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c index 12aa6d7a53ca..e07d97afacb1 100644 --- a/sys/compat/linux/common/linux_socket.c +++ b/sys/compat/linux/common/linux_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.16 1998/10/01 03:33:18 erh Exp $ */ +/* $NetBSD: linux_socket.c,v 1.17 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -94,14 +94,15 @@ #include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include + #include -#include -#include -#include -#include /* * The calls in this file are entered either via the linux_socketcall() diff --git a/sys/compat/linux/common/linux_socket.h b/sys/compat/linux/common/linux_socket.h index da82bb4af72c..887b421df262 100644 --- a/sys/compat/linux/common/linux_socket.h +++ b/sys/compat/linux/common/linux_socket.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.h,v 1.4 1998/10/01 01:19:07 erh Exp $ */ +/* $NetBSD: linux_socket.h,v 1.5 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,10 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* Note: Machine dependant portions of this file exist. */ - -#ifndef _COMMON_LINUX_SOCKET_H -#define _COMMON_LINUX_SOCKET_H +#ifndef _LINUX_SOCKET_H +#define _LINUX_SOCKET_H /* * Various Linux socket defines. Everything that is not re-defined here @@ -156,4 +154,12 @@ #define LINUX_TCP_NODELAY 1 #define LINUX_TCP_MAXSEG 2 -#endif /* !_COMMON_LINUX_SOCKET_H */ +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_socket.h machine type. +#endif + +#endif /* !_LINUX_SOCKET_H */ diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c index 00f58c8c903d..9663b8da386a 100644 --- a/sys/compat/linux/common/linux_socketcall.c +++ b/sys/compat/linux/common/linux_socketcall.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.c,v 1.16 1998/10/01 03:33:18 erh Exp $ */ +/* $NetBSD: linux_socketcall.c,v 1.17 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -89,14 +89,15 @@ #include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include + #include -#include -#include -#include -#include /* Used on: arm, i386, m68k, mips, ppc, sparc, sparc64 */ /* Not used on: alpha */ diff --git a/sys/compat/linux/common/linux_socketcall.h b/sys/compat/linux/common/linux_socketcall.h index 8ee614304f83..ee60f93a77db 100644 --- a/sys/compat/linux/common/linux_socketcall.h +++ b/sys/compat/linux/common/linux_socketcall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.h,v 1.2 1998/10/01 03:34:50 erh Exp $ */ +/* $NetBSD: linux_socketcall.h,v 1.3 1998/10/03 20:17:43 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,9 +67,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _MULTIARCH_LINUX_SOCKETCALL_H -#define _MULTIARCH_LINUX_SOCKETCALL_H +#ifndef _LINUX_SOCKETCALL_H +#define _LINUX_SOCKETCALL_H +/* Alpha does not use the socketcall multiplexer */ +#if !defined(__alpha__) /* Used on: arm, i386, m68k, mips, ppc, sparc, sparc64 */ /* Not used on: alpha */ @@ -225,7 +227,7 @@ struct linux_sys_recvmsg_args { syscallarg(u_int) flags; }; -#ifdef _KERNEL +# ifdef _KERNEL __BEGIN_DECLS int linux_sys_socket __P((struct proc *, void *, register_t *)); int linux_sys_socketpair __P((struct proc *, void *, register_t *)); @@ -234,6 +236,8 @@ int linux_sys_recvfrom __P((struct proc *, void *, register_t *)); int linux_sys_setsockopt __P((struct proc *, void *, register_t *)); int linux_sys_getsockopt __P((struct proc *, void *, register_t *)); __END_DECLS -#endif /* !_KERNEL */ +# endif /* !_KERNEL */ -#endif /* !_MULTIARCH_LINUX_SOCKETCALL_H */ +# endif + +#endif /* !_LINUX_SOCKETCALL_H */ diff --git a/sys/compat/linux/common/linux_sockio.h b/sys/compat/linux/common/linux_sockio.h index 5bf156d46f1e..404e8a0dd444 100644 --- a/sys/compat/linux/common/linux_sockio.h +++ b/sys/compat/linux/common/linux_sockio.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sockio.h,v 1.6 1998/10/01 03:53:01 erh Exp $ */ +/* $NetBSD: linux_sockio.h,v 1.7 1998/10/03 20:17:44 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,8 +67,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_SOCKIO_H -#define _COMMON_LINUX_SOCKIO_H +#ifndef _LINUX_SOCKIO_H +#define _LINUX_SOCKIO_H #define LINUX_SIOCGIFCONF _LINUX_IO(0x89, 0x12) #define LINUX_SIOCGIFFLAGS _LINUX_IO(0x89, 0x13) @@ -79,4 +79,4 @@ #define LINUX_SIOCADDMULTI _LINUX_IO(0x89, 0x31) #define LINUX_SIOCDELMULTI _LINUX_IO(0x89, 0x32) -#endif /* !_COMMON_LINUX_SOCKIO_H */ +#endif /* !_LINUX_SOCKIO_H */ diff --git a/sys/compat/linux/common/linux_termios.c b/sys/compat/linux/common/linux_termios.c index 609e21d4a794..77f6f49e643e 100644 --- a/sys/compat/linux/common/linux_termios.c +++ b/sys/compat/linux/common/linux_termios.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_termios.c,v 1.4 1998/10/01 03:36:27 erh Exp $ */ +/* $NetBSD: linux_termios.c,v 1.5 1998/10/03 20:17:44 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -78,12 +78,13 @@ #include -#include -#include -#include +#include +#include +#include +#include +#include + #include -#include -#include static speed_t linux_speeds[] = { 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, diff --git a/sys/compat/linux/common/linux_termios.h b/sys/compat/linux/common/linux_termios.h index 02ae3143d89c..512a9b07e034 100644 --- a/sys/compat/linux/common/linux_termios.h +++ b/sys/compat/linux/common/linux_termios.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_termios.h,v 1.3 1998/10/01 01:52:59 erh Exp $ */ +/* $NetBSD: linux_termios.h,v 1.4 1998/10/03 20:17:44 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -36,8 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _COMMON_LINUX_TERMIOS_H -#define _COMMON_LINUX_TERMIOS_H +#ifndef _LINUX_TERMIOS_H +#define _LINUX_TERMIOS_H struct linux_winsize { unsigned short ws_row; @@ -109,4 +109,11 @@ struct linux_termios { #define LINUX_N_X25 6 #define LINUX_N_6PACK 7 -#endif /* !_COMMON_LINUX_TERMIOS_H */ +#if defined(__i386__) +#include +#elif defined(__alpha__) +#include +#else +#error Undefined linux_termios.h machine type. +#endif +#endif /* !_LINUX_TERMIOS_H */ diff --git a/sys/compat/linux/common/linux_types.h b/sys/compat/linux/common/linux_types.h index 856204b74770..732ad98d79f1 100644 --- a/sys/compat/linux/common/linux_types.h +++ b/sys/compat/linux/common/linux_types.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_types.h,v 1.6 1998/10/01 01:31:11 erh Exp $ */ +/* $NetBSD: linux_types.h,v 1.7 1998/10/03 20:17:44 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,10 +67,40 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* Note: Machine dependant portions of this file exist. */ +#ifndef _LINUX_TYPES_H +#define _LINUX_TYPES_H -#ifndef _COMMON_LINUX_TYPES_H -#define _COMMON_LINUX_TYPES_H +#if defined(__i386__) +#include +#include /* XXX maybe */ +#elif defined(__alpha__) +#include +#include +#include +#include +#include +/* + * The rest are not written yet: + */ +#elif defined(__arm32__) +#include +#include +#include +#include +#include +#elif defined(__m68k__) +#include +#include +#include +#elif defined(__mips__) +#include +#include +#include +#elif defined(__powerpc__) +#include +#include +#include +#endif /* * Structure for uname(2) @@ -106,4 +136,4 @@ struct linux___sysctl { unsigned long __unused[4]; }; -#endif /* !_COMMON_LINUX_TYPES_H */ +#endif /* !_LINUX_TYPES_H */ diff --git a/sys/compat/linux/common/linux_util.h b/sys/compat/linux/common/linux_util.h index 4951b5707647..0a6aac1bd388 100644 --- a/sys/compat/linux/common/linux_util.h +++ b/sys/compat/linux/common/linux_util.h @@ -1,14 +1,11 @@ -/* $NetBSD: linux_util.h,v 1.7 1998/10/01 03:54:36 erh Exp $ */ +/* $NetBSD: linux_util.h,v 1.8 1998/10/03 20:17:44 christos Exp $ */ /*- - * Copyright (c) 1994 The NetBSD Foundation, Inc. + * Copyright (c) 1994, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation - * by Eric Haszlakiewicz. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Christos Zoulas. + * by Eric Haszlakiewicz and Christos Zoulas. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -20,8 +17,8 @@ * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. * 4. Neither the name of The NetBSD Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. @@ -67,8 +64,8 @@ * */ -#ifndef _COMMON_LINUX_UTIL_H_ -#define _COMMON_LINUX_UTIL_H_ +#ifndef _LINUX_UTIL_H +#define _LINUX_UTIL_H #include @@ -83,4 +80,4 @@ extern const char linux_emul_path[]; #define LINUX_CHECK_ALT_CREAT(p, sgp, path) \ CHECK_ALT_CREAT(p, sgp, linux_emul_path, path) -#endif /* !_COMMON_LINUX_UTIL_H_ */ +#endif /* !_LINUX_UTIL_H */ diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index db4d16a86917..b2b1ff02c95f 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.35 1998/10/01 18:23:37 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.36 1998/10/03 20:17:36 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -40,9 +40,9 @@ #define _LINUX_SYSCALL_H #if defined(__i386__) -#include +#include #elif defined(__alpha__) -#include +#include #else #define LINUX_SYS_MAXSYSCALL 0 #endif diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index a365638f1e32..6528265ee452 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.33 1998/10/01 04:20:19 erh Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.34 1998/10/03 20:17:37 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -40,9 +40,9 @@ #define _LINUX_SYSCALLARGS_H #if defined(i386) -#include +#include #elif defined(__alpha__) -#include +#include #else #error Undefined linux_syscallargs.h machine type. #endif diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 822da0d9ebab..db67e81a4656 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.33 1998/10/01 18:23:38 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.34 1998/10/03 20:17:37 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -39,9 +39,9 @@ /* XXX XXX This exists to keep kdump and friends happy. */ #if defined(__i386__) -#include "../../sys/compat/linux/i386/linux_syscalls.c" +#include "../../sys/compat/linux/arch/i386/linux_syscalls.c" #elif defined(__alpha__) -#include "../../sys/compat/linux/alpha/linux_syscalls.c" +#include "../../sys/compat/linux/arch/alpha/linux_syscalls.c" #else char *linux_syscallnames[] = { 0 }; #endif