Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
signal.h File Reference
#include <linux/types.h>
#include <asm-generic/signal-defs.h>

Go to the source code of this file.

Data Structures

struct  sigset_t
 
struct  sigaction
 
struct  k_sigaction
 
struct  sigaltstack
 

Macros

#define _NSIG   128
 
#define _NSIG_BPW   (sizeof(unsigned long) * 8)
 
#define _NSIG_WORDS   (_NSIG / _NSIG_BPW)
 
#define SIGHUP   1 /* Hangup (POSIX). */
 
#define SIGINT   2 /* Interrupt (ANSI). */
 
#define SIGQUIT   3 /* Quit (POSIX). */
 
#define SIGILL   4 /* Illegal instruction (ANSI). */
 
#define SIGTRAP   5 /* Trace trap (POSIX). */
 
#define SIGIOT   6 /* IOT trap (4.2 BSD). */
 
#define SIGABRT   SIGIOT /* Abort (ANSI). */
 
#define SIGEMT   7
 
#define SIGFPE   8 /* Floating-point exception (ANSI). */
 
#define SIGKILL   9 /* Kill, unblockable (POSIX). */
 
#define SIGBUS   10 /* BUS error (4.2 BSD). */
 
#define SIGSEGV   11 /* Segmentation violation (ANSI). */
 
#define SIGSYS   12
 
#define SIGPIPE   13 /* Broken pipe (POSIX). */
 
#define SIGALRM   14 /* Alarm clock (POSIX). */
 
#define SIGTERM   15 /* Termination (ANSI). */
 
#define SIGUSR1   16 /* User-defined signal 1 (POSIX). */
 
#define SIGUSR2   17 /* User-defined signal 2 (POSIX). */
 
#define SIGCHLD   18 /* Child status has changed (POSIX). */
 
#define SIGCLD   SIGCHLD /* Same as SIGCHLD (System V). */
 
#define SIGPWR   19 /* Power failure restart (System V). */
 
#define SIGWINCH   20 /* Window size change (4.3 BSD, Sun). */
 
#define SIGURG   21 /* Urgent condition on socket (4.2 BSD). */
 
#define SIGIO   22 /* I/O now possible (4.2 BSD). */
 
#define SIGPOLL   SIGIO /* Pollable event occurred (System V). */
 
#define SIGSTOP   23 /* Stop, unblockable (POSIX). */
 
#define SIGTSTP   24 /* Keyboard stop (POSIX). */
 
#define SIGCONT   25 /* Continue (POSIX). */
 
#define SIGTTIN   26 /* Background read from tty (POSIX). */
 
#define SIGTTOU   27 /* Background write to tty (POSIX). */
 
#define SIGVTALRM   28 /* Virtual alarm clock (4.2 BSD). */
 
#define SIGPROF   29 /* Profiling alarm clock (4.2 BSD). */
 
#define SIGXCPU   30 /* CPU limit exceeded (4.2 BSD). */
 
#define SIGXFSZ   31 /* File size limit exceeded (4.2 BSD). */
 
#define SIGRTMIN   32
 
#define SIGRTMAX   _NSIG
 
#define SA_ONSTACK   0x08000000
 
#define SA_RESETHAND   0x80000000
 
#define SA_RESTART   0x10000000
 
#define SA_SIGINFO   0x00000008
 
#define SA_NODEFER   0x40000000
 
#define SA_NOCLDWAIT   0x00010000
 
#define SA_NOCLDSTOP   0x00000001
 
#define SA_NOMASK   SA_NODEFER
 
#define SA_ONESHOT   SA_RESETHAND
 
#define SA_RESTORER   0x04000000 /* Only for o32 */
 
#define SS_ONSTACK   1
 
#define SS_DISABLE   2
 
#define MINSIGSTKSZ   2048
 
#define SIGSTKSZ   8192
 
#define SIG_BLOCK   1 /* for blocking signals */
 
#define SIG_UNBLOCK   2 /* for unblocking signals */
 
#define SIG_SETMASK   3 /* for setting the signal mask */
 

Typedefs

typedef unsigned long old_sigset_t
 
typedef struct sigaltstack stack_t
 

Macro Definition Documentation

#define _NSIG   128

Definition at line 14 of file signal.h.

#define _NSIG_BPW   (sizeof(unsigned long) * 8)

Definition at line 15 of file signal.h.

#define _NSIG_WORDS   (_NSIG / _NSIG_BPW)

Definition at line 16 of file signal.h.

#define MINSIGSTKSZ   2048

Definition at line 95 of file signal.h.

#define SA_NOCLDSTOP   0x00000001

Definition at line 82 of file signal.h.

#define SA_NOCLDWAIT   0x00010000

Definition at line 81 of file signal.h.

#define SA_NODEFER   0x40000000

Definition at line 80 of file signal.h.

#define SA_NOMASK   SA_NODEFER

Definition at line 84 of file signal.h.

#define SA_ONESHOT   SA_RESETHAND

Definition at line 85 of file signal.h.

#define SA_ONSTACK   0x08000000

Definition at line 76 of file signal.h.

#define SA_RESETHAND   0x80000000

Definition at line 77 of file signal.h.

#define SA_RESTART   0x10000000

Definition at line 78 of file signal.h.

#define SA_RESTORER   0x04000000 /* Only for o32 */

Definition at line 87 of file signal.h.

#define SA_SIGINFO   0x00000008

Definition at line 79 of file signal.h.

#define SIG_BLOCK   1 /* for blocking signals */

Definition at line 99 of file signal.h.

#define SIG_SETMASK   3 /* for setting the signal mask */

Definition at line 101 of file signal.h.

#define SIG_UNBLOCK   2 /* for unblocking signals */

Definition at line 100 of file signal.h.

#define SIGABRT   SIGIOT /* Abort (ANSI). */

Definition at line 30 of file signal.h.

#define SIGALRM   14 /* Alarm clock (POSIX). */

Definition at line 38 of file signal.h.

#define SIGBUS   10 /* BUS error (4.2 BSD). */

Definition at line 34 of file signal.h.

#define SIGCHLD   18 /* Child status has changed (POSIX). */

Definition at line 42 of file signal.h.

#define SIGCLD   SIGCHLD /* Same as SIGCHLD (System V). */

Definition at line 43 of file signal.h.

#define SIGCONT   25 /* Continue (POSIX). */

Definition at line 51 of file signal.h.

#define SIGEMT   7

Definition at line 31 of file signal.h.

#define SIGFPE   8 /* Floating-point exception (ANSI). */

Definition at line 32 of file signal.h.

#define SIGHUP   1 /* Hangup (POSIX). */

Definition at line 24 of file signal.h.

#define SIGILL   4 /* Illegal instruction (ANSI). */

Definition at line 27 of file signal.h.

#define SIGINT   2 /* Interrupt (ANSI). */

Definition at line 25 of file signal.h.

#define SIGIO   22 /* I/O now possible (4.2 BSD). */

Definition at line 47 of file signal.h.

#define SIGIOT   6 /* IOT trap (4.2 BSD). */

Definition at line 29 of file signal.h.

#define SIGKILL   9 /* Kill, unblockable (POSIX). */

Definition at line 33 of file signal.h.

#define SIGPIPE   13 /* Broken pipe (POSIX). */

Definition at line 37 of file signal.h.

#define SIGPOLL   SIGIO /* Pollable event occurred (System V). */

Definition at line 48 of file signal.h.

#define SIGPROF   29 /* Profiling alarm clock (4.2 BSD). */

Definition at line 55 of file signal.h.

#define SIGPWR   19 /* Power failure restart (System V). */

Definition at line 44 of file signal.h.

#define SIGQUIT   3 /* Quit (POSIX). */

Definition at line 26 of file signal.h.

#define SIGRTMAX   _NSIG

Definition at line 61 of file signal.h.

#define SIGRTMIN   32

Definition at line 60 of file signal.h.

#define SIGSEGV   11 /* Segmentation violation (ANSI). */

Definition at line 35 of file signal.h.

#define SIGSTKSZ   8192

Definition at line 96 of file signal.h.

#define SIGSTOP   23 /* Stop, unblockable (POSIX). */

Definition at line 49 of file signal.h.

#define SIGSYS   12

Definition at line 36 of file signal.h.

#define SIGTERM   15 /* Termination (ANSI). */

Definition at line 39 of file signal.h.

#define SIGTRAP   5 /* Trace trap (POSIX). */

Definition at line 28 of file signal.h.

#define SIGTSTP   24 /* Keyboard stop (POSIX). */

Definition at line 50 of file signal.h.

#define SIGTTIN   26 /* Background read from tty (POSIX). */

Definition at line 52 of file signal.h.

#define SIGTTOU   27 /* Background write to tty (POSIX). */

Definition at line 53 of file signal.h.

#define SIGURG   21 /* Urgent condition on socket (4.2 BSD). */

Definition at line 46 of file signal.h.

#define SIGUSR1   16 /* User-defined signal 1 (POSIX). */

Definition at line 40 of file signal.h.

#define SIGUSR2   17 /* User-defined signal 2 (POSIX). */

Definition at line 41 of file signal.h.

#define SIGVTALRM   28 /* Virtual alarm clock (4.2 BSD). */

Definition at line 54 of file signal.h.

#define SIGWINCH   20 /* Window size change (4.3 BSD, Sun). */

Definition at line 45 of file signal.h.

#define SIGXCPU   30 /* CPU limit exceeded (4.2 BSD). */

Definition at line 56 of file signal.h.

#define SIGXFSZ   31 /* File size limit exceeded (4.2 BSD). */

Definition at line 57 of file signal.h.

#define SS_DISABLE   2

Definition at line 93 of file signal.h.

#define SS_ONSTACK   1

Definition at line 92 of file signal.h.

Typedef Documentation

typedef unsigned long old_sigset_t

Definition at line 22 of file signal.h.