Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
signal.h File Reference

Go to the source code of this file.

Data Structures

struct  sigset_t
 
union  sigval
 
struct  sigevent
 
struct  siginfo_t
 
struct  sigaction
 

Macros

#define SIGHUP   1
 Hangup.
 
#define SIGINT   2
 Interrupt.
 
#define SIGQUIT   3
 Quit.
 
#define SIGILL   4
 Illegal instruction.
 
#define SIGTRAP   5
 Trace/breakpoint trap.
 
#define SIGABRT   6
 Aborted.
 
#define SIGBUS   7
 Bus error.
 
#define SIGFPE   8
 Arithmetic exception.
 
#define SIGKILL   9
 Killed.
 
#define SIGUSR1   10
 User-defined signal 1.
 
#define SIGSEGV   11
 Invalid memory reference.
 
#define SIGUSR2   12
 User-defined signal 2.
 
#define SIGPIPE   13
 Broken pipe.
 
#define SIGALRM   14
 Alarm clock.
 
#define SIGTERM   15
 Terminated.
 
#define SIGCHLD   17
 Child status changed.
 
#define SIGCONT   18
 Continued.
 
#define SIGSTOP   19
 Stop executing.
 
#define SIGTSTP   20
 Stopped.
 
#define SIGTTIN   21
 Stopped (read)
 
#define SIGTTOU   22
 Stopped (write)
 
#define SIGURG   23
 Urgent I/O condition.
 
#define SIGXCPU   24
 CPU time limit exceeded.
 
#define SIGXFSZ   25
 File size limit exceeded.
 
#define SIGVTALRM   26
 Virtual timer expired.
 
#define SIGPROF   27
 Profiling timer expired.
 
#define SIGPOLL   29
 Pollable event occurred.
 
#define SIGSYS   31
 Bad system call.
 
#define SIGRTMIN   32
 
#define SIGRTMAX   (SIGRTMIN + RTSIG_MAX)
 
#define SIGEV_NONE   1
 
#define SIGEV_SIGNAL   2
 
#define SIGEV_THREAD   3
 
#define SIG_BLOCK   0
 
#define SIG_SETMASK   1
 
#define SIG_UNBLOCK   2
 
#define SIG_DFL   ((void *)0)
 
#define SIG_IGN   ((void *)1)
 
#define SIG_ERR   ((void *)-1)
 
#define SI_USER   1
 
#define SI_QUEUE   2
 
#define SI_TIMER   3
 
#define SI_ASYNCIO   4
 
#define SI_MESGQ   5
 

Typedefs

typedef int sig_atomic_t
 
typedef void(* sighandler_t) (int signo)
 

Functions

unsigned int alarm (unsigned int seconds)
 
int kill (pid_t pid, int sig)
 
int pause (void)
 
int raise (int signo)
 
int sigaction (int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact)
 
int sigpending (sigset_t *set)
 
int sigsuspend (const sigset_t *sigmask)
 
int sigwait (const sigset_t *ZRESTRICT set, int *ZRESTRICT signo)
 
char * strsignal (int signum)
 
int sigemptyset (sigset_t *set)
 
int sigfillset (sigset_t *set)
 
int sigaddset (sigset_t *set, int signo)
 
int sigdelset (sigset_t *set, int signo)
 
int sigismember (const sigset_t *set, int signo)
 
sighandler_t signal (int signo, sighandler_t handler)
 
int sigprocmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset)
 
int pthread_sigmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset)
 

Macro Definition Documentation

◆ SI_ASYNCIO

#define SI_ASYNCIO   4

◆ SI_MESGQ

#define SI_MESGQ   5

◆ SI_QUEUE

#define SI_QUEUE   2

◆ SI_TIMER

#define SI_TIMER   3

◆ SI_USER

#define SI_USER   1

◆ SIG_BLOCK

#define SIG_BLOCK   0

◆ SIG_DFL

#define SIG_DFL   ((void *)0)

◆ SIG_ERR

#define SIG_ERR   ((void *)-1)

◆ SIG_IGN

#define SIG_IGN   ((void *)1)

◆ SIG_SETMASK

#define SIG_SETMASK   1

◆ SIG_UNBLOCK

#define SIG_UNBLOCK   2

◆ SIGABRT

#define SIGABRT   6

Aborted.

◆ SIGALRM

#define SIGALRM   14

Alarm clock.

◆ SIGBUS

#define SIGBUS   7

Bus error.

◆ SIGCHLD

#define SIGCHLD   17

Child status changed.

◆ SIGCONT

#define SIGCONT   18

Continued.

◆ SIGEV_NONE

#define SIGEV_NONE   1

◆ SIGEV_SIGNAL

#define SIGEV_SIGNAL   2

◆ SIGEV_THREAD

#define SIGEV_THREAD   3

◆ SIGFPE

#define SIGFPE   8

Arithmetic exception.

◆ SIGHUP

#define SIGHUP   1

Hangup.

◆ SIGILL

#define SIGILL   4

Illegal instruction.

◆ SIGINT

#define SIGINT   2

Interrupt.

◆ SIGKILL

#define SIGKILL   9

Killed.

◆ SIGPIPE

#define SIGPIPE   13

Broken pipe.

◆ SIGPOLL

#define SIGPOLL   29

Pollable event occurred.

◆ SIGPROF

#define SIGPROF   27

Profiling timer expired.

◆ SIGQUIT

#define SIGQUIT   3

Quit.

◆ SIGRTMAX

#define SIGRTMAX   (SIGRTMIN + RTSIG_MAX)

◆ SIGRTMIN

#define SIGRTMIN   32

◆ SIGSEGV

#define SIGSEGV   11

Invalid memory reference.

◆ SIGSTOP

#define SIGSTOP   19

Stop executing.

◆ SIGSYS

#define SIGSYS   31

Bad system call.

◆ SIGTERM

#define SIGTERM   15

Terminated.

◆ SIGTRAP

#define SIGTRAP   5

Trace/breakpoint trap.

◆ SIGTSTP

#define SIGTSTP   20

Stopped.

◆ SIGTTIN

#define SIGTTIN   21

Stopped (read)

◆ SIGTTOU

#define SIGTTOU   22

Stopped (write)

◆ SIGURG

#define SIGURG   23

Urgent I/O condition.

◆ SIGUSR1

#define SIGUSR1   10

User-defined signal 1.

◆ SIGUSR2

#define SIGUSR2   12

User-defined signal 2.

◆ SIGVTALRM

#define SIGVTALRM   26

Virtual timer expired.

◆ SIGXCPU

#define SIGXCPU   24

CPU time limit exceeded.

◆ SIGXFSZ

#define SIGXFSZ   25

File size limit exceeded.

Typedef Documentation

◆ sig_atomic_t

typedef int sig_atomic_t

◆ sighandler_t

typedef void(* sighandler_t) (int signo)

Function Documentation

◆ alarm()

unsigned int alarm ( unsigned int  seconds)

◆ kill()

int kill ( pid_t  pid,
int  sig 
)

◆ pause()

int pause ( void  )

◆ pthread_sigmask()

int pthread_sigmask ( int  how,
const sigset_t *ZRESTRICT  set,
sigset_t *ZRESTRICT  oset 
)

◆ raise()

int raise ( int  signo)

◆ sigaction()

int sigaction ( int  sig,
const struct sigaction *ZRESTRICT  act,
struct sigaction *ZRESTRICT  oact 
)

◆ sigaddset()

int sigaddset ( sigset_t set,
int  signo 
)

◆ sigdelset()

int sigdelset ( sigset_t set,
int  signo 
)

◆ sigemptyset()

int sigemptyset ( sigset_t set)

◆ sigfillset()

int sigfillset ( sigset_t set)

◆ sigismember()

int sigismember ( const sigset_t set,
int  signo 
)

◆ signal()

sighandler_t signal ( int  signo,
sighandler_t  handler 
)

◆ sigpending()

int sigpending ( sigset_t set)

◆ sigprocmask()

int sigprocmask ( int  how,
const sigset_t *ZRESTRICT  set,
sigset_t *ZRESTRICT  oset 
)

◆ sigsuspend()

int sigsuspend ( const sigset_t sigmask)

◆ sigwait()

int sigwait ( const sigset_t *ZRESTRICT  set,
int *ZRESTRICT  signo 
)

◆ strsignal()

char * strsignal ( int  signum)