diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-24 17:46:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-24 17:46:26 +0000 |
commit | 946ad2939808cfad127432a624243a45afad805e (patch) | |
tree | ddbb905dbd7fab0e75cd799e6ced006289464f9c /sys | |
parent | c0c9d3073be450df630a75f5d2944bccf959561a (diff) |
do not expose a userland function to the kernel
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/signal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h index 7a444769d48..53f7eb99073 100644 --- a/sys/sys/signal.h +++ b/sys/sys/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.24 2012/12/05 23:20:24 deraadt Exp $ */ +/* $OpenBSD: signal.h,v 1.25 2013/03/24 17:46:25 deraadt Exp $ */ /* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */ /* @@ -183,6 +183,7 @@ typedef struct sigaltstack { typedef struct sigcontext ucontext_t; #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */ +#ifndef _KERNEL /* * For historical reasons; programs expect signal's return value to be * defined by <sys/signal.h>. @@ -190,4 +191,5 @@ typedef struct sigcontext ucontext_t; __BEGIN_DECLS void (*signal(int, void (*)(int)))(int); __END_DECLS +#endif /* !_KERNEL */ #endif /* !_SYS_SIGNAL_H_ */ |