Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat Put the kernel function prototypes inside #ifdef ...



details:   https://anonhg.NetBSD.org/src/rev/1646548048aa
branches:  trunk
changeset: 783655:1646548048aa
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Jan 02 18:50:07 2013 +0000

description:
Put the kernel function prototypes inside #ifdef _KERNEL

diffstat:

 sys/compat/ibcs2/ibcs2_signal.h |  4 +++-
 sys/compat/svr4/svr4_signal.h   |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r e678372768ff -r 1646548048aa sys/compat/ibcs2/ibcs2_signal.h
--- a/sys/compat/ibcs2/ibcs2_signal.h   Wed Jan 02 18:48:22 2013 +0000
+++ b/sys/compat/ibcs2/ibcs2_signal.h   Wed Jan 02 18:50:07 2013 +0000
@@ -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 @@
 #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 */
diff -r e678372768ff -r 1646548048aa sys/compat/svr4/svr4_signal.h
--- a/sys/compat/svr4/svr4_signal.h     Wed Jan 02 18:48:22 2013 +0000
+++ b/sys/compat/svr4/svr4_signal.h     Wed Jan 02 18:50:07 2013 +0000
@@ -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 @@
 #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 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



Home | Main Index | Thread Index | Old Index