2 * Copyright (C) 2004-2006 Atmel Corporation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 #ifndef _UAPI__ASM_AVR32_SIGNAL_H
9 #define _UAPI__ASM_AVR32_SIGNAL_H
11 #include <linux/types.h>
13 /* Avoid too many header ordering problems. */
17 /* Here we must cater to libcs that poke about in kernel headers. */
20 typedef unsigned long sigset_t
;
22 #endif /* __KERNEL__ */
62 /* These should not be considered constants from userland. */
64 #define SIGRTMAX (_NSIG-1)
69 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
70 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
71 * SA_SIGINFO deliver the signal with SIGINFO structs
72 * SA_ONSTACK indicates that a registered stack_t will be used.
73 * SA_RESTART flag to get restarting signals (which were the default long ago)
74 * SA_NODEFER prevents the current signal from being masked in the handler.
75 * SA_RESETHAND clears the handler when the signal is delivered.
77 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
78 * Unix names RESETHAND and NODEFER respectively.
80 #define SA_NOCLDSTOP 0x00000001
81 #define SA_NOCLDWAIT 0x00000002
82 #define SA_SIGINFO 0x00000004
83 #define SA_RESTORER 0x04000000
84 #define SA_ONSTACK 0x08000000
85 #define SA_RESTART 0x10000000
86 #define SA_NODEFER 0x40000000
87 #define SA_RESETHAND 0x80000000
89 #define SA_NOMASK SA_NODEFER
90 #define SA_ONESHOT SA_RESETHAND
92 #define MINSIGSTKSZ 2048
95 #include <asm-generic/signal-defs.h>
98 /* Here we must cater to libcs that poke about in kernel headers. */
102 __sighandler_t _sa_handler
;
103 void (*_sa_sigaction
)(int, struct siginfo
*, void *);
106 unsigned long sa_flags
;
107 void (*sa_restorer
)(void);
110 #define sa_handler _u._sa_handler
111 #define sa_sigaction _u._sa_sigaction
113 #endif /* __KERNEL__ */
115 typedef struct sigaltstack
{
122 #endif /* _UAPI__ASM_AVR32_SIGNAL_H */