signal.h File Reference

Go to the source code of this file.

Data Structures

struct  sigset_t
struct  sigaction
struct  sigaltstack
struct  sigaction2

Defines

#define NSIG   64
#define SIGHUP   1
#define SIGINT   2
#define SIGQUIT   3
#define SIGILL   4
#define SIGTRAP   5
#define SIGABRT   6
#define SIGEMT   7
#define SIGFPE   8
#define SIGKILL   9
#define SIGBUS   10
#define SIGSEGV   11
#define SIGSYS   12
#define SIGPIPE   13
#define SIGALRM   14
#define SIGTERM   15
#define SIGURG   16
#define SIGSTOP   17
#define SIGTSTP   18
#define SIGCONT   19
#define SIGCHLD   20
#define SIGTTIN   21
#define SIGTTOU   22
#define SIGIO   23
#define SIGXCPU   24
#define SIGXFSZ   25
#define SIGVTALRM   26
#define SIGPROF   27
#define SIGWINCH   28
#define SIGINFO   29
#define SIGUSR1   30
#define SIGUSR2   31
#define SIGPWR   32
#define SIGNOTIFY   33
#define SIGSMP   34
#define SIGVM86   35
#define SIGMAX   35
#define SIG_DFL   ((void (*) (int)) 0)
#define SIG_IGN   ((void (*) (int)) 1)
#define SIG_ERR   ((void (*) (int)) -1)
#define SIG_BLOCK   1
#define SIG_UNBLOCK   2
#define SIG_SETMASK   3
#define __sigmask(n)   (1 << (((unsigned int)(n) - 1) & 31))
#define __sigword(n)   (((unsigned int)(n) - 1) >> 5)
#define __sigisempty(s)
#define __sigaddset(s, n)   ((s)->__bits[__sigword(n)] |= __sigmask(n))
#define __sigdelset(s, n)   ((s)->__bits[__sigword(n)] &= ~__sigmask(n))
#define __sigismember(s, n)   (((s)->__bits[__sigword(n)] & __sigmask(n)) != 0)
#define __sigemptyset(s)
#define __sigfillset(s)
#define SA_ONSTACK   0x0001
#define SA_RESTART   0x0002
#define SA_RESETHAND   0x0004
#define SA_NODEFER   0x0010
#define SA_NOCLDSTOP   0x0008
#define SA_NOCLDWAIT   0x0020
#define MINSIGSTKSZ   8192
#define SIGSTKSZ   (MINSIGSTKSZ + 32768)
#define SS_ONSTACK   0x0001
#define SS_DISABLE   0x0004
#define ILL_ILLOPC   1
#define ILL_ILLOPN   2
#define ILL_ILLADR   3
#define ILL_ILLTRP   4
#define ILL_PRVOPC   5
#define ILL_PRVREG   6
#define ILL_COPROC   7
#define ILL_BADSTK   8
#define NSIGILL   8
#define FPE_INTDIV   1
#define FPE_INTOVF   2
#define FPE_FLTDIV   3
#define FPE_FLTOVF   4
#define FPE_FLTUND   5
#define FPE_FLTRES   6
#define FPE_FLTINV   7
#define FPE_FLTSUB   8
#define NSIGFPE   8
#define SEGV_MAPERR   1
#define SEGV_ACCERR   2
#define SEGV_ACCERR2   3
#define SEGV_WIREERR   4
#define NSIGSEGV   2
#define BUS_ADRALN   1
#define BUS_ADRERR   2
#define BUS_OBJERR   3
#define NSIGBUS   3
#define TRAP_BRKPT   1
#define TRAP_TRACE   2
#define NSIGTRAP   2

Typedefs

typedef void(* sig_t )(int)
typedef sigaltstack stack_t


Define Documentation

#define __sigaddset s,
 )     ((s)->__bits[__sigword(n)] |= __sigmask(n))
 

#define __sigdelset s,
 )     ((s)->__bits[__sigword(n)] &= ~__sigmask(n))
 

#define __sigemptyset  ) 
 

Value:

((s)->__bits[0] = 0x00000000, \
                                 (s)->__bits[1] = 0x00000000, \
                                 (s)->__bits[2] = 0x00000000, \
                                 (s)->__bits[3] = 0x00000000)

#define __sigfillset  ) 
 

Value:

((s)->__bits[0] = 0xffffffff, \
                                 (s)->__bits[1] = 0xffffffff, \
                                 (s)->__bits[2] = 0xffffffff, \
                                 (s)->__bits[3] = 0xffffffff)

#define __sigisempty  ) 
 

Value:

((s)->__bits[0] == 0u &&\
                                 (s)->__bits[1] == 0u &&\
                                 (s)->__bits[2] == 0u &&\
                                 (s)->__bits[3] == 0u)

#define __sigismember s,
 )     (((s)->__bits[__sigword(n)] & __sigmask(n)) != 0)
 

#define __sigmask  )     (1 << (((unsigned int)(n) - 1) & 31))
 

#define __sigword  )     (((unsigned int)(n) - 1) >> 5)
 

#define BUS_ADRALN   1
 

invalid address alignment

#define BUS_ADRERR   2
 

non-existant physical address

#define BUS_OBJERR   3
 

object specific hardware error

#define FPE_FLTDIV   3
 

floating point divide by zero

#define FPE_FLTINV   7
 

floating point invalid operation

#define FPE_FLTOVF   4
 

floating point overflow

#define FPE_FLTRES   6
 

floating point inexact result

#define FPE_FLTSUB   8
 

subscript out of range

#define FPE_FLTUND   5
 

floating point underflow

#define FPE_INTDIV   1
 

integer divide by zero

#define FPE_INTOVF   2
 

integer overflow

#define ILL_BADSTK   8
 

internal stack error

#define ILL_COPROC   7
 

coprocessor error

#define ILL_ILLADR   3
 

illegal addressing mode

#define ILL_ILLOPC   1
 

illegal opcode

#define ILL_ILLOPN   2
 

illegal operand

#define ILL_ILLTRP   4
 

illegal trap

#define ILL_PRVOPC   5
 

privileged opcode

#define ILL_PRVREG   6
 

privileged register

#define MINSIGSTKSZ   8192
 

minimum allowable stack

#define NSIG   64
 

just to say we use sigset_t

#define NSIGBUS   3
 

#define NSIGFPE   8
 

#define NSIGILL   8
 

#define NSIGSEGV   2
 

#define NSIGTRAP   2
 

#define SA_NOCLDSTOP   0x0008
 

do not generate SIGCHLD on child stop

#define SA_NOCLDWAIT   0x0020
 

do not generate zombies on unwaited child

#define SA_NODEFER   0x0010
 

don't mask the signal we're delivering

#define SA_ONSTACK   0x0001
 

take signal on signal stack

#define SA_RESETHAND   0x0004
 

reset to SIG_DFL when taking signal

#define SA_RESTART   0x0002
 

restart system on signal return

#define SEGV_ACCERR   2
 

invalid permissions for mapped object

#define SEGV_ACCERR2   3
 

invalid permissions for mapped object

#define SEGV_MAPERR   1
 

address not mapped to object

#define SEGV_WIREERR   4
 

wire failed

#define SIG_BLOCK   1
 

block specified signal set

#define SIG_DFL   ((void (*) (int)) 0)
 

#define SIG_ERR   ((void (*) (int)) -1)
 

#define SIG_IGN   ((void (*) (int)) 1)
 

#define SIG_SETMASK   3
 

set specified signal set

#define SIG_UNBLOCK   2
 

unblock specified signal set

#define SIGABRT   6
 

abort()

#define SIGALRM   14
 

alarm clock

#define SIGBUS   10
 

bus error

#define SIGCHLD   20
 

to parent on child stop or exit

#define SIGCONT   19
 

continue a stopped process

#define SIGEMT   7
 

EMT instruction

#define SIGFPE   8
 

floating point exception

#define SIGHUP   1
 

hangup

#define SIGILL   4
 

illegal instruction

#define SIGINFO   29
 

information request

#define SIGINT   2
 

interrupt

#define SIGIO   23
 

input/output possible signal

#define SIGKILL   9
 

kill (cannot be caught or ignored)

#define SIGMAX   35
 

Define this as number of the highest signal (lseos extension)

#define SIGNOTIFY   33
 

notify/collect

#define SIGPIPE   13
 

write on a pipe with no one to read it

#define SIGPROF   27
 

profiling time alarm

#define SIGPWR   32
 

pwer fail/restart (not reset when caught)

#define SIGQUIT   3
 

quit

#define SIGSEGV   11
 

segmentation violation

#define SIGSMP   34
 

notify applications that system operates in smp (lseos extension)

#define SIGSTKSZ   (MINSIGSTKSZ + 32768)
 

recommended stack size

#define SIGSTOP   17
 

sendable stop signal not from tty

#define SIGSYS   12
 

bad argument to system call

#define SIGTERM   15
 

software termination signal from kill

#define SIGTRAP   5
 

trace trap (not reset when caught)

#define SIGTSTP   18
 

stop signal from tty

#define SIGTTIN   21
 

to readers pgrp upon background tty read

#define SIGTTOU   22
 

like TTIN for output if (tp->t_local&LTOSTOP)

#define SIGURG   16
 

urgent condition on IO channel

#define SIGUSR1   30
 

user defined signal 1

#define SIGUSR2   31
 

user defined signal 2

#define SIGVM86   35
 

#define SIGVTALRM   26
 

virtual time alarm

#define SIGWINCH   28
 

window size changes

#define SIGXCPU   24
 

exceeded CPU time limit

#define SIGXFSZ   25
 

exceeded file size limit

#define SS_DISABLE   0x0004
 

disable taking signals on alternate stack

#define SS_ONSTACK   0x0001
 

take signals on alternate stack

#define TRAP_BRKPT   1
 

process breakpoint

#define TRAP_TRACE   2
 

process trace trap


Typedef Documentation

typedef void(* sig_t)(int)
 

type of signal function

typedef struct sigaltstack stack_t
 


Generated on Wed May 24 23:05:58 2006 for LSE/OS by  doxygen 1.4.6