Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 88099 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/include/asm-ppc64/signal.h.bork (+39 lines)
Lines 8-13 Link Here
8
/* Avoid too many header ordering problems.  */
8
/* Avoid too many header ordering problems.  */
9
struct siginfo;
9
struct siginfo;
10
10
11
#ifdef __KERNEL__
11
#define _NSIG		64
12
#define _NSIG		64
12
#define _NSIG_BPW	64
13
#define _NSIG_BPW	64
13
#define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
14
#define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
Lines 18-23 Link Here
18
	unsigned long sig[_NSIG_WORDS];
19
	unsigned long sig[_NSIG_WORDS];
19
} sigset_t;
20
} sigset_t;
20
21
22
#else
23
24
#define NSIG            32
25
#ifndef __sigset_t_defined
26
typedef unsigned long sigset_t;
27
28
#endif
29
30
#endif /* __KERNEL__ */
31
21
#define SIGHUP		 1
32
#define SIGHUP		 1
22
#define SIGINT		 2
33
#define SIGINT		 2
23
#define SIGQUIT		 3
34
#define SIGQUIT		 3
Lines 96-101 Link Here
96
107
97
#define MINSIGSTKSZ	2048
108
#define MINSIGSTKSZ	2048
98
#define SIGSTKSZ	8192
109
#define SIGSTKSZ	8192
110
111
99
#ifdef __KERNEL__
112
#ifdef __KERNEL__
100
113
101
/*
114
/*
Lines 126-131 Link Here
126
#define SIG_IGN	((__sighandler_t)1)	/* ignore signal */
139
#define SIG_IGN	((__sighandler_t)1)	/* ignore signal */
127
#define SIG_ERR	((__sighandler_t)-1)	/* error return from signal */
140
#define SIG_ERR	((__sighandler_t)-1)	/* error return from signal */
128
141
142
143
#ifdef __KERNEL__
129
struct old_sigaction {
144
struct old_sigaction {
130
	__sighandler_t sa_handler;
145
	__sighandler_t sa_handler;
131
	old_sigset_t sa_mask;
146
	old_sigset_t sa_mask;
Lines 144-159 Link Here
144
	struct sigaction sa;
159
	struct sigaction sa;
145
};
160
};
146
161
162
#else
163
164
#ifndef _SIGNAL_H
165
struct sigaction {
166
        union {
167
          __sighandler_t _sa_handler;
168
          void (*_sa_sigaction)(int, struct siginfo *, void *);
169
        } _u;
170
	sigset_t sa_mask;
171
	unsigned long sa_flags;
172
	void (*sa_restorer)(void);
173
};
174
#endif
175
176
#define sa_handler      _u._sa_handler
177
#define sa_sigaction    _u._sa_sigaction
178
179
#endif /* __KERNEL */
180
181
#ifndef _SIGNAL_H
147
typedef struct sigaltstack {
182
typedef struct sigaltstack {
148
	void __user *ss_sp;
183
	void __user *ss_sp;
149
	int ss_flags;
184
	int ss_flags;
150
	size_t ss_size;
185
	size_t ss_size;
151
} stack_t;
186
} stack_t;
187
#endif
152
188
189
#ifdef __KERNEL__
153
struct pt_regs;
190
struct pt_regs;
154
struct timespec;
191
struct timespec;
155
extern int do_signal(sigset_t *oldset, struct pt_regs *regs);
192
extern int do_signal(sigset_t *oldset, struct pt_regs *regs);
156
extern int do_signal32(sigset_t *oldset, struct pt_regs *regs);
193
extern int do_signal32(sigset_t *oldset, struct pt_regs *regs);
157
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
194
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
158
195
196
#endif /* __KERNEL__ */
197
159
#endif /* _ASMPPC64_SIGNAL_H */
198
#endif /* _ASMPPC64_SIGNAL_H */

Return to bug 88099