ucontext.h (fba37afd99f13bc8fe48c08caa1438f82285f5a0) ucontext.h (6a3e8e8695d5c7d1d18c6800d676990d7f61a2a4)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 16 unchanged lines hidden (view full) ---

25/*
26 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
27 * Use is subject to license terms.
28 */
29
30#ifndef _UCONTEXT_H
31#define _UCONTEXT_H
32
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 16 unchanged lines hidden (view full) ---

25/*
26 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
27 * Use is subject to license terms.
28 */
29
30#ifndef _UCONTEXT_H
31#define _UCONTEXT_H
32
33#pragma ident "%Z%%M% %I% %E% SMI"
34
35#include <sys/ucontext.h>
36
37#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
38#include <sys/siginfo.h>
39#endif
40
41#ifdef __cplusplus
42extern "C" {

--- 4 unchanged lines hidden (view full) ---

47#pragma redefine_extname makecontext __makecontext_v2
48#else
49#define makecontext __makecontext_v2
50#endif
51#endif
52
53#if defined(__STDC__)
54
33#include <sys/ucontext.h>
34
35#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
36#include <sys/siginfo.h>
37#endif
38
39#ifdef __cplusplus
40extern "C" {

--- 4 unchanged lines hidden (view full) ---

45#pragma redefine_extname makecontext __makecontext_v2
46#else
47#define makecontext __makecontext_v2
48#endif
49#endif
50
51#if defined(__STDC__)
52
55extern int getcontext(ucontext_t *);
53extern int getcontext(ucontext_t *) __RETURNS_TWICE;
56#pragma unknown_control_flow(getcontext)
57extern int setcontext(const ucontext_t *) __NORETURN;
58extern int swapcontext(ucontext_t *_RESTRICT_KYWD,
59 const ucontext_t *_RESTRICT_KYWD);
60extern void makecontext(ucontext_t *, void(*)(), int, ...);
61#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
62extern int walkcontext(const ucontext_t *, int (*)(uintptr_t, int, void *),
63 void *);

--- 6 unchanged lines hidden (view full) ---

70extern int stack_setbounds(const stack_t *);
71extern int stack_inbounds(void *);
72extern int stack_violation(int, const siginfo_t *, const ucontext_t *);
73
74extern void *_stack_grow(void *);
75#endif
76#else
77
54#pragma unknown_control_flow(getcontext)
55extern int setcontext(const ucontext_t *) __NORETURN;
56extern int swapcontext(ucontext_t *_RESTRICT_KYWD,
57 const ucontext_t *_RESTRICT_KYWD);
58extern void makecontext(ucontext_t *, void(*)(), int, ...);
59#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
60extern int walkcontext(const ucontext_t *, int (*)(uintptr_t, int, void *),
61 void *);

--- 6 unchanged lines hidden (view full) ---

68extern int stack_setbounds(const stack_t *);
69extern int stack_inbounds(void *);
70extern int stack_violation(int, const siginfo_t *, const ucontext_t *);
71
72extern void *_stack_grow(void *);
73#endif
74#else
75
78extern int getcontext();
76extern int getcontext() __RETURNS_TWICE;
79#pragma unknown_control_flow(getcontext)
80extern int setcontext();
81extern int swapcontext();
82extern void makecontext();
83#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
84extern int walkcontext();
85extern int printstack();
86extern int addrtosymstr();

--- 17 unchanged lines hidden ---
77#pragma unknown_control_flow(getcontext)
78extern int setcontext();
79extern int swapcontext();
80extern void makecontext();
81#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
82extern int walkcontext();
83extern int printstack();
84extern int addrtosymstr();

--- 17 unchanged lines hidden ---