summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-11 22:53:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-11 22:53:42 +0000
commita2a75f42b96df600aefffb291919895e6cc9f1f2 (patch)
treef3f14ce55110a8d7c36916a55f6a4320f2fd1f36 /sys
parent495e90d12de21424292515a57020ceeceec9711f (diff)
put protos inside #ifdef _KERNEL
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/include/freebsd_machdep.h2
-rw-r--r--sys/arch/i386/include/gdt.h4
-rw-r--r--sys/arch/i386/include/linux_machdep.h2
-rw-r--r--sys/arch/i386/include/svr4_machdep.h4
4 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/i386/include/freebsd_machdep.h b/sys/arch/i386/include/freebsd_machdep.h
index e9fd2cf977e..c338e2642d1 100644
--- a/sys/arch/i386/include/freebsd_machdep.h
+++ b/sys/arch/i386/include/freebsd_machdep.h
@@ -157,6 +157,8 @@ struct freebsd_ptrace_reg {
/* sys/i386/include/exec.h */
#define FREEBSD___LDPGSZ 4096
+#ifdef _KERNEL
void freebsd_sendsig __P((sig_t, int, int, u_long, int, union sigval));
+#endif
#endif /* _FREEBSD_MACHDEP_H */
diff --git a/sys/arch/i386/include/gdt.h b/sys/arch/i386/include/gdt.h
index 80d437de1db..2ec88669840 100644
--- a/sys/arch/i386/include/gdt.h
+++ b/sys/arch/i386/include/gdt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt.h,v 1.4 1996/05/30 09:30:10 deraadt Exp $ */
+/* $OpenBSD: gdt.h,v 1.5 1997/11/11 22:53:40 deraadt Exp $ */
/* $NetBSD: gdt.h,v 1.3 1996/02/27 22:32:11 jtc Exp $ */
/*-
@@ -37,7 +37,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef _KERNEL
void tss_alloc __P((struct pcb *));
void tss_free __P((struct pcb *));
void ldt_alloc __P((struct pcb *, union descriptor *, size_t));
void ldt_free __P((struct pcb *));
+#endif
diff --git a/sys/arch/i386/include/linux_machdep.h b/sys/arch/i386/include/linux_machdep.h
index 453593beee6..4d45532b9d0 100644
--- a/sys/arch/i386/include/linux_machdep.h
+++ b/sys/arch/i386/include/linux_machdep.h
@@ -76,8 +76,10 @@ struct linux_sigframe {
sig_t sf_handler;
};
+#ifdef _KERNEL
void linux_sendsig __P((sig_t, int, int, u_long, int, union sigval));
dev_t linux_fakedev __P((dev_t));
+#endif
/*
* Major device numbers of VT device on both Linux and NetBSD. Used in
diff --git a/sys/arch/i386/include/svr4_machdep.h b/sys/arch/i386/include/svr4_machdep.h
index e845400acaa..cc77173d17b 100644
--- a/sys/arch/i386/include/svr4_machdep.h
+++ b/sys/arch/i386/include/svr4_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_machdep.h,v 1.5 1997/08/27 20:17:42 mickey Exp $ */
+/* $OpenBSD: svr4_machdep.h,v 1.6 1997/11/11 22:53:41 deraadt Exp $ */
/* $NetBSD: svr4_machdep.h,v 1.5 1995/03/31 02:51:37 christos Exp $ */
/*
@@ -69,9 +69,11 @@ typedef struct {
struct svr4_ucontext;
+#ifdef _KERNEL
void svr4_getcontext __P((struct proc *, struct svr4_ucontext *, int, int));
int svr4_setcontext __P((struct proc *, struct svr4_ucontext *));
void svr4_sendsig __P((sig_t, int, int, u_long, int, union sigval));
+#endif
typedef struct {
svr4_gregset_t greg;