diff options
Diffstat (limited to 'usr/src/head/ucontext.h')
-rw-r--r-- | usr/src/head/ucontext.h | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/usr/src/head/ucontext.h b/usr/src/head/ucontext.h index 1c291a5ce0..6d96a18ad5 100644 --- a/usr/src/head/ucontext.h +++ b/usr/src/head/ucontext.h @@ -23,6 +23,8 @@ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -48,14 +50,13 @@ extern "C" { #endif #endif -#if defined(__STDC__) - extern int getcontext(ucontext_t *) __RETURNS_TWICE; #pragma unknown_control_flow(getcontext) extern int setcontext(const ucontext_t *) __NORETURN; extern int swapcontext(ucontext_t *_RESTRICT_KYWD, const ucontext_t *_RESTRICT_KYWD); extern void makecontext(ucontext_t *, void(*)(), int, ...); + #if !defined(_XPG4_2) || defined(__EXTENSIONS__) extern int walkcontext(const ucontext_t *, int (*)(uintptr_t, int, void *), void *); @@ -70,29 +71,7 @@ extern int stack_inbounds(void *); extern int stack_violation(int, const siginfo_t *, const ucontext_t *); extern void *_stack_grow(void *); -#endif -#else - -extern int getcontext() __RETURNS_TWICE; -#pragma unknown_control_flow(getcontext) -extern int setcontext(); -extern int swapcontext(); -extern void makecontext(); -#if !defined(_XPG4_2) || defined(__EXTENSIONS__) -extern int walkcontext(); -extern int printstack(); -extern int addrtosymstr(); -extern int getustack(); -extern int setustack(); - -extern int stack_getbounds(); -extern int stack_setbounds(); -extern int stack_inbounds(); -extern int stack_violation(); - -extern void *_stack_grow(); -#endif -#endif +#endif /* !_XPG4_2 || __EXTENSIONS__ */ #ifdef __cplusplus } |