Module Name: src
Committed By: dsl
Date: Wed Jan 2 18:50:08 UTC 2013
Modified Files:
src/sys/compat/ibcs2: ibcs2_signal.h
src/sys/compat/svr4: svr4_signal.h
Log Message:
Put the kernel function prototypes inside #ifdef _KERNEL
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/compat/ibcs2/ibcs2_signal.h
cvs rdiff -u -r1.31 -r1.32 src/sys/compat/svr4/svr4_signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/ibcs2/ibcs2_signal.h
diff -u src/sys/compat/ibcs2/ibcs2_signal.h:1.20 src/sys/compat/ibcs2/ibcs2_signal.h:1.21
--- src/sys/compat/ibcs2/ibcs2_signal.h:1.20 Wed Dec 5 00:31:01 2007
+++ src/sys/compat/ibcs2/ibcs2_signal.h Wed Jan 2 18:50:07 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_signal.h,v 1.20 2007/12/05 00:31:01 dsl Exp $ */
+/* $NetBSD: ibcs2_signal.h,v 1.21 2013/01/02 18:50:07 dsl Exp $ */
/*
* Copyright (c) 1994, 1995 Scott Bartram
@@ -121,10 +121,12 @@ struct ibcs2_sigaltstack {
#define IBCS2_SS_DISABLE 0x00000002
#define IBCS2_SS_ALLBITS 0x00000003
+#ifdef _KERNEL
extern const int native_to_ibcs2_signo[];
void ibcs2_to_native_sigset(const ibcs2_sigset_t *, sigset_t *);
void native_to_ibcs2_sigset(const sigset_t *, ibcs2_sigset_t *);
void ibcs2_sendsig(const struct ksiginfo *, const sigset_t *);
+#endif
#endif /* _IBCS2_SIGNAL_H */
Index: src/sys/compat/svr4/svr4_signal.h
diff -u src/sys/compat/svr4/svr4_signal.h:1.31 src/sys/compat/svr4/svr4_signal.h:1.32
--- src/sys/compat/svr4/svr4_signal.h:1.31 Mon Apr 28 20:23:45 2008
+++ src/sys/compat/svr4/svr4_signal.h Wed Jan 2 18:50:08 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_signal.h,v 1.31 2008/04/28 20:23:45 martin Exp $ */
+/* $NetBSD: svr4_signal.h,v 1.32 2013/01/02 18:50:08 dsl Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -126,6 +126,7 @@ struct svr4_sigaltstack {
#define SVR4_SS_DISABLE 0x00000002
#define SVR4_SS_ALLBITS 0x00000003
+#ifdef _KERNEL
extern const int native_to_svr4_signo[];
extern const int svr4_to_native_signo[];
void native_to_svr4_sigset(const sigset_t *, svr4_sigset_t *);
@@ -133,6 +134,7 @@ void svr4_to_native_sigset(const svr4_si
void native_to_svr4_sigaltstack(const struct sigaltstack *, struct svr4_sigaltstack *);
void svr4_to_native_sigaltstack(const struct svr4_sigaltstack *, struct sigaltstack *);
void svr4_sendsig(const struct ksiginfo *, const sigset_t *);
+#endif
/* sys_context() function codes */
#define SVR4_GETCONTEXT 0