posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
signal.h File Reference

<signal.h>: POSIX signal types and functions More...

#include <zephyr/toolchain.h>
#include <zephyr/sys/util.h>
#include <stddef.h>
#include <time.h>
Include dependency graph for posix_signal.h:

Go to the source code of this file.

Data Structures

struct  timespec
 Time value with nanosecond resolution. More...
 
struct  sigset_t
 Type representing a set of signals (bitmask). More...
 
struct  pthread_attr_t
 
union  sigval
 Value passed to a signal handler or retrieved via siginfo_t. More...
 
struct  sigevent
 Structure describing how to notify about an asynchronous event. More...
 
struct  siginfo_t
 Information associated with a received signal. More...
 
struct  sigaction
 Signal action structure used with sigaction(). More...
 
struct  mcontext_t
 Machine-specific context saved when a signal is delivered. More...
 
struct  stack_t
 Alternate signal stack descriptor. More...
 
struct  ucontext_t
 User-space context saved and restored by getcontext()/setcontext(). More...
 

Macros

#define SIG_HOLD   ((void *)-2)
 Signal disposition: hold the signal (XSI extension, used with sigset()).
 
#define _PTHREAD_T_DECLARED
 
#define __pthread_t_defined
 
#define _UID_T_DECLARED
 
#define __uid_t_defined
 
#define _TIMESPEC_DECLARED
 
#define __timespec_defined
 
#define SIGRTMIN   32
 
#define SIGRTMAX   (SIGRTMIN + CONFIG_POSIX_RTSIG_MAX)
 
#define _SIGSET_T_DECLARED
 
#define __sigset_t_defined
 
#define _PID_T_DECLARED
 
#define __pid_t_defined
 
#define _PTHREAD_ATTR_T_DECLARED
 
#define __pthread_attr_t_defined
 
#define _SIGVAL_DECLARED
 
#define __sigval_defined
 
#define _SIGEVENT_DECLARED
 
#define __sigevent_defined
 
#define SIGEV_NONE   1
 No notification on event completion.
 
#define SIGEV_SIGNAL   2
 Send a signal on event completion.
 
#define SIGEV_THREAD   3
 Call a function in a new thread on event completion.
 
#define _SIGINFO_T_DECLARED
 
#define __siginfo_t_defined
 
#define _SIGACTION_DECLARED
 
#define __sigaction_defined
 
#define SIG_BLOCK   1
 Block the signals in set.
 
#define SIG_UNBLOCK   2
 Unblock the signals in set.
 
#define SIG_SETMASK   0
 Set the signal mask to set.
 
#define SA_NOCLDSTOP   0x00000001
 Do not generate SIGCHLD when child processes stop (XSI).
 
#define SA_ONSTACK   0x00000002
 Invoke the handler on an alternate signal stack.
 
#define SA_RESETHAND   0x00000004
 Reset the signal disposition to SIG_DFL after delivery.
 
#define SA_RESTART   0x00000008
 Restart interrupted system calls instead of returning EINTR.
 
#define SA_SIGINFO   0x00000010
 Invoke the sa_sigaction handler instead of sa_handler.
 
#define SA_NOCLDWAIT   0x00000020
 Do not create zombie processes for terminated child processes (XSI).
 
#define SA_NODEFER   0x00000040
 Do not add the signal to the process signal mask during handler execution.
 
#define SS_ONSTACK   0x00000001
 Alternate signal stack is active (ss_flags value).
 
#define SS_DISABLE   0x00000002
 Alternate signal stack is disabled (ss_flags value).
 
#define MINSIGSTKSZ   4096
 Minimum stack size for a signal handler.
 
#define SIGSTKSZ   4096
 Default stack size for a signal handler.
 
#define _MCONTEXT_T_DECLARED
 
#define __mcontext_defined
 
#define _STACK_T_DECLARED
 
#define __stack_t_defined
 
#define _UCONTEXT_T_DECLARED
 
#define __ucontext_defined
 
#define _SIGHANDLER_T_DECLARED
 
#define __sighandler_t_defined
 
#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 ILL_ILLOPC   1
 Illegal opcode.
 
#define ILL_ILLOPN   2
 Illegal operand.
 
#define ILL_ILLADR   3
 Illegal addressing mode.
 
#define ILL_ILLTRP   4
 Illegal trap.
 
#define ILL_PRVOPC   5
 Privileged opcode.
 
#define ILL_PRVREG   6
 Privileged register.
 
#define ILL_COPROC   7
 Coprocessor error.
 
#define ILL_BADSTK   8
 Internal stack error.
 
#define FPE_INTDIV   9
 Integer divide by zero.
 
#define FPE_INTOVF   10
 Integer overflow.
 
#define FPE_FLTDIV   11
 Floating-point divide by zero.
 
#define FPE_FLTOVF   12
 Floating-point overflow.
 
#define FPE_FLTUND   13
 Floating-point underflow.
 
#define FPE_FLTRES   15
 Floating-point inexact result.
 
#define FPE_FLTINV   16
 Invalid floating-point operation.
 
#define FPE_FLTSUB   17
 Subscript out of range.
 
#define SEGV_MAPERR   18
 Address not mapped to object.
 
#define SEGV_ACCERR   19
 Invalid permissions for mapped object.
 
#define BUS_ADRALN   20
 Invalid address alignment.
 
#define BUS_ADRERR   21
 Nonexistent physical address.
 
#define BUS_OBJERR   22
 Object-specific hardware error.
 
#define TRAP_BRKPT   23
 Process breakpoint.
 
#define TRAP_TRACE   24
 Process trace trap.
 
#define CLD_EXITED   25
 Child has exited.
 
#define CLD_KILLED   26
 Child has terminated abnormally and did not create a core file.
 
#define CLD_DUMPED   27
 Child has terminated abnormally and created a core file.
 
#define CLD_TRAPPED   28
 Traced child has trapped.
 
#define CLD_STOPPED   29
 Child has stopped.
 
#define CLD_CONTINUED   30
 Stopped child has continued.
 
#define POLL_IN   31
 Data input available.
 
#define POLL_OUT   32
 Output buffers available.
 
#define POLL_MSG   33
 Input message available.
 
#define POLL_ERR   34
 I/O error.
 
#define POLL_PRI   35
 High priority input available.
 
#define POLL_HUP   36
 Device disconnected.
 
#define SI_USER   37
 Signal sent by kill()
 
#define SI_QUEUE   38
 Signal sent by sigqueue()
 
#define SI_TIMER   39
 Signal generated by expiration of a timer set by timer_settime()
 
#define SI_ASYNCIO   40
 Signal generated by completion of an asynchronous I/O request.
 
#define SI_MESGQ   41
 Signal generated by arrival of a message on an empty message queue.
 

Typedefs

typedef unsigned int pthread_t
 
typedef int uid_t
 
typedef long pid_t
 
typedef void(* sighandler_t) (int sig)
 Function pointer type for a simple signal handler.
 

Functions

 BUILD_ASSERT (CONFIG_POSIX_RTSIG_MAX >=0)
 
int kill (pid_t pid, int sig)
 Send a signal to a process or process group.
 
int killpg (pid_t pgrp, int sig)
 Send a signal to a process group (XSI extension).
 
void psiginfo (const siginfo_t *info, const char *message)
 Print a signal description with additional siginfo_t context.
 
void psignal (int sig, const char *message)
 Print a signal description to stderr.
 
int pthread_kill (pthread_t thread, int sig)
 Send a signal to a specific thread.
 
int pthread_sigmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset)
 Examine and change blocked signals for the calling thread.
 
 TOOLCHAIN_DISABLE_WARNING (TOOLCHAIN_WARNING_SHADOW)
 
int sigaction (int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact)
 Examine and change a signal action.
 
 TOOLCHAIN_ENABLE_WARNING (TOOLCHAIN_WARNING_SHADOW)
 
int sigaddset (sigset_t *set, int sig)
 Add a signal to a signal set.
 
int sigaltstack (const stack_t *ZRESTRICT ss, stack_t *ZRESTRICT oss)
 Set or get the alternate signal stack (XSI extension).
 
int sigdelset (sigset_t *set, int sig)
 Delete a signal from a signal set.
 
int sigemptyset (sigset_t *set)
 Initialise a signal set to the empty set.
 
int sigfillset (sigset_t *set)
 Initialise a signal set to the full set (all signals).
 
int sighold (int sig)
 Add a signal to the calling process's signal mask (XSI, obsolescent).
 
int sigignore (int sig)
 Set a signal's disposition to SIG_IGN (XSI, obsolescent).
 
int siginterrupt (int sig, int flag)
 Control whether a signal restarts or interrupts system calls (XSI, obsolescent).
 
int sigismember (const sigset_t *set, int sig)
 Test whether a signal is a member of a signal set.
 
int sigpause (int sig)
 Suspend execution until a signal is delivered (XSI, obsolescent).
 
int sigpending (sigset_t *set)
 Retrieve the set of pending signals.
 
int sigprocmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset)
 Examine and change the calling process's signal mask.
 
int sigqueue (pid_t pid, int sig, union sigval value)
 Queue a signal and data to a process.
 
int sigrelse (int sig)
 Remove a signal from the process signal mask (XSI, obsolescent).
 
sighandler_t sigset (int sig, sighandler_t disp)
 Set the disposition of a signal, optionally blocking it first (XSI, obsolescent).
 
int sigsuspend (const sigset_t *set)
 Wait for a signal, atomically replacing the process signal mask.
 
int sigtimedwait (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info, const struct timespec *ZRESTRICT timeout)
 Wait for a queued signal with a timeout.
 
int sigwait (const sigset_t *ZRESTRICT set, int *ZRESTRICT sig)
 Wait for a signal from a set.
 
int sigwaitinfo (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info)
 Wait for a queued signal (no timeout).
 

Detailed Description

<signal.h>: POSIX signal types and functions

Provides signal numbers, signal sets, signal actions, real-time signal extensions, and the full set of POSIX signal-management functions.

See also
POSIX.1-2017 <signal.h>

Definition in file signal.h.

Macro Definition Documentation

◆ __mcontext_defined

#define __mcontext_defined

Definition at line 235 of file signal.h.

◆ __pid_t_defined

#define __pid_t_defined

Definition at line 98 of file signal.h.

◆ __pthread_attr_t_defined

#define __pthread_attr_t_defined

Definition at line 109 of file signal.h.

◆ __pthread_t_defined

#define __pthread_t_defined

Definition at line 46 of file signal.h.

◆ __sigaction_defined

#define __sigaction_defined

Definition at line 190 of file signal.h.

◆ __sigevent_defined

#define __sigevent_defined

Definition at line 139 of file signal.h.

◆ __sighandler_t_defined

#define __sighandler_t_defined

Definition at line 270 of file signal.h.

◆ __siginfo_t_defined

#define __siginfo_t_defined

Definition at line 174 of file signal.h.

◆ __sigset_t_defined

#define __sigset_t_defined

Definition at line 92 of file signal.h.

◆ __sigval_defined

#define __sigval_defined

Definition at line 124 of file signal.h.

◆ __stack_t_defined

#define __stack_t_defined

Definition at line 247 of file signal.h.

◆ __timespec_defined

#define __timespec_defined

Definition at line 72 of file signal.h.

◆ __ucontext_defined

#define __ucontext_defined

Definition at line 259 of file signal.h.

◆ __uid_t_defined

#define __uid_t_defined

Definition at line 57 of file signal.h.

◆ _MCONTEXT_T_DECLARED

#define _MCONTEXT_T_DECLARED

Definition at line 234 of file signal.h.

◆ _PID_T_DECLARED

#define _PID_T_DECLARED

Definition at line 97 of file signal.h.

◆ _PTHREAD_ATTR_T_DECLARED

#define _PTHREAD_ATTR_T_DECLARED

Definition at line 108 of file signal.h.

◆ _PTHREAD_T_DECLARED

#define _PTHREAD_T_DECLARED

Definition at line 45 of file signal.h.

◆ _SIGACTION_DECLARED

#define _SIGACTION_DECLARED

Definition at line 189 of file signal.h.

◆ _SIGEVENT_DECLARED

#define _SIGEVENT_DECLARED

Definition at line 138 of file signal.h.

◆ _SIGHANDLER_T_DECLARED

#define _SIGHANDLER_T_DECLARED

Definition at line 269 of file signal.h.

◆ _SIGINFO_T_DECLARED

#define _SIGINFO_T_DECLARED

Definition at line 173 of file signal.h.

◆ _SIGSET_T_DECLARED

#define _SIGSET_T_DECLARED

Definition at line 91 of file signal.h.

◆ _SIGVAL_DECLARED

#define _SIGVAL_DECLARED

Definition at line 123 of file signal.h.

◆ _STACK_T_DECLARED

#define _STACK_T_DECLARED

Definition at line 246 of file signal.h.

◆ _TIMESPEC_DECLARED

#define _TIMESPEC_DECLARED

Definition at line 71 of file signal.h.

◆ _UCONTEXT_T_DECLARED

#define _UCONTEXT_T_DECLARED

Definition at line 258 of file signal.h.

◆ _UID_T_DECLARED

#define _UID_T_DECLARED

Definition at line 56 of file signal.h.

◆ BUS_ADRALN

#define BUS_ADRALN   20

Invalid address alignment.

Definition at line 624 of file signal.h.

◆ BUS_ADRERR

#define BUS_ADRERR   21

Nonexistent physical address.

Definition at line 625 of file signal.h.

◆ BUS_OBJERR

#define BUS_OBJERR   22

Object-specific hardware error.

Definition at line 626 of file signal.h.

◆ CLD_CONTINUED

#define CLD_CONTINUED   30

Stopped child has continued.

Definition at line 640 of file signal.h.

◆ CLD_DUMPED

#define CLD_DUMPED   27

Child has terminated abnormally and created a core file.

Definition at line 637 of file signal.h.

◆ CLD_EXITED

#define CLD_EXITED   25

Child has exited.

Definition at line 635 of file signal.h.

◆ CLD_KILLED

#define CLD_KILLED   26

Child has terminated abnormally and did not create a core file.

Definition at line 636 of file signal.h.

◆ CLD_STOPPED

#define CLD_STOPPED   29

Child has stopped.

Definition at line 639 of file signal.h.

◆ CLD_TRAPPED

#define CLD_TRAPPED   28

Traced child has trapped.

Definition at line 638 of file signal.h.

◆ FPE_FLTDIV

#define FPE_FLTDIV   11

Floating-point divide by zero.

Definition at line 612 of file signal.h.

◆ FPE_FLTINV

#define FPE_FLTINV   16

Invalid floating-point operation.

Definition at line 616 of file signal.h.

◆ FPE_FLTOVF

#define FPE_FLTOVF   12

Floating-point overflow.

Definition at line 613 of file signal.h.

◆ FPE_FLTRES

#define FPE_FLTRES   15

Floating-point inexact result.

Definition at line 615 of file signal.h.

◆ FPE_FLTSUB

#define FPE_FLTSUB   17

Subscript out of range.

Definition at line 617 of file signal.h.

◆ FPE_FLTUND

#define FPE_FLTUND   13

Floating-point underflow.

Definition at line 614 of file signal.h.

◆ FPE_INTDIV

#define FPE_INTDIV   9

Integer divide by zero.

Definition at line 610 of file signal.h.

◆ FPE_INTOVF

#define FPE_INTOVF   10

Integer overflow.

Definition at line 611 of file signal.h.

◆ ILL_BADSTK

#define ILL_BADSTK   8

Internal stack error.

Definition at line 607 of file signal.h.

◆ ILL_COPROC

#define ILL_COPROC   7

Coprocessor error.

Definition at line 606 of file signal.h.

◆ ILL_ILLADR

#define ILL_ILLADR   3

Illegal addressing mode.

Definition at line 602 of file signal.h.

◆ ILL_ILLOPC

#define ILL_ILLOPC   1

Illegal opcode.

Definition at line 600 of file signal.h.

◆ ILL_ILLOPN

#define ILL_ILLOPN   2

Illegal operand.

Definition at line 601 of file signal.h.

◆ ILL_ILLTRP

#define ILL_ILLTRP   4

Illegal trap.

Definition at line 603 of file signal.h.

◆ ILL_PRVOPC

#define ILL_PRVOPC   5

Privileged opcode.

Definition at line 604 of file signal.h.

◆ ILL_PRVREG

#define ILL_PRVREG   6

Privileged register.

Definition at line 605 of file signal.h.

◆ MINSIGSTKSZ

#define MINSIGSTKSZ   4096

Minimum stack size for a signal handler.

Definition at line 223 of file signal.h.

◆ POLL_ERR

#define POLL_ERR   34

I/O error.

Definition at line 647 of file signal.h.

◆ POLL_HUP

#define POLL_HUP   36

Device disconnected.

Definition at line 649 of file signal.h.

◆ POLL_IN

#define POLL_IN   31

Data input available.

Definition at line 644 of file signal.h.

◆ POLL_MSG

#define POLL_MSG   33

Input message available.

Definition at line 646 of file signal.h.

◆ POLL_OUT

#define POLL_OUT   32

Output buffers available.

Definition at line 645 of file signal.h.

◆ POLL_PRI

#define POLL_PRI   35

High priority input available.

Definition at line 648 of file signal.h.

◆ SA_NOCLDSTOP

#define SA_NOCLDSTOP   0x00000001

Do not generate SIGCHLD when child processes stop (XSI).

Definition at line 202 of file signal.h.

◆ SA_NOCLDWAIT

#define SA_NOCLDWAIT   0x00000020

Do not create zombie processes for terminated child processes (XSI).

Definition at line 214 of file signal.h.

◆ SA_NODEFER

#define SA_NODEFER   0x00000040

Do not add the signal to the process signal mask during handler execution.

Definition at line 217 of file signal.h.

◆ SA_ONSTACK

#define SA_ONSTACK   0x00000002

Invoke the handler on an alternate signal stack.

Definition at line 204 of file signal.h.

◆ SA_RESETHAND

#define SA_RESETHAND   0x00000004

Reset the signal disposition to SIG_DFL after delivery.

Definition at line 207 of file signal.h.

◆ SA_RESTART

#define SA_RESTART   0x00000008

Restart interrupted system calls instead of returning EINTR.

Definition at line 209 of file signal.h.

◆ SA_SIGINFO

#define SA_SIGINFO   0x00000010

Invoke the sa_sigaction handler instead of sa_handler.

Definition at line 211 of file signal.h.

◆ SEGV_ACCERR

#define SEGV_ACCERR   19

Invalid permissions for mapped object.

Definition at line 621 of file signal.h.

◆ SEGV_MAPERR

#define SEGV_MAPERR   18

Address not mapped to object.

Definition at line 620 of file signal.h.

◆ SI_ASYNCIO

#define SI_ASYNCIO   40

Signal generated by completion of an asynchronous I/O request.

Definition at line 656 of file signal.h.

◆ SI_MESGQ

#define SI_MESGQ   41

Signal generated by arrival of a message on an empty message queue.

Definition at line 657 of file signal.h.

◆ SI_QUEUE

#define SI_QUEUE   38

Signal sent by sigqueue()

Definition at line 654 of file signal.h.

◆ SI_TIMER

#define SI_TIMER   39

Signal generated by expiration of a timer set by timer_settime()

Definition at line 655 of file signal.h.

◆ SI_USER

#define SI_USER   37

Signal sent by kill()

Definition at line 653 of file signal.h.

◆ SIG_BLOCK

#define SIG_BLOCK   1

Block the signals in set.

Definition at line 194 of file signal.h.

◆ SIG_HOLD

#define SIG_HOLD   ((void *)-2)

Signal disposition: hold the signal (XSI extension, used with sigset()).

Definition at line 36 of file signal.h.

◆ SIG_SETMASK

#define SIG_SETMASK   0

Set the signal mask to set.

Definition at line 198 of file signal.h.

◆ SIG_UNBLOCK

#define SIG_UNBLOCK   2

Unblock the signals in set.

Definition at line 196 of file signal.h.

◆ SIGABRT

#define SIGABRT   6

Aborted.

Definition at line 563 of file signal.h.

◆ SIGALRM

#define SIGALRM   14

Alarm clock.

Definition at line 576 of file signal.h.

◆ SIGBUS

#define SIGBUS   7

Bus error.

Definition at line 565 of file signal.h.

◆ SIGCHLD

#define SIGCHLD   17

Child status changed.

Definition at line 581 of file signal.h.

◆ SIGCONT

#define SIGCONT   18

Continued.

Definition at line 582 of file signal.h.

◆ SIGEV_NONE

#define SIGEV_NONE   1

No notification on event completion.

Definition at line 143 of file signal.h.

◆ SIGEV_SIGNAL

#define SIGEV_SIGNAL   2

Send a signal on event completion.

Definition at line 145 of file signal.h.

◆ SIGEV_THREAD

#define SIGEV_THREAD   3

Call a function in a new thread on event completion.

Definition at line 147 of file signal.h.

◆ SIGFPE

#define SIGFPE   8

Arithmetic exception.

Definition at line 567 of file signal.h.

◆ SIGHUP

#define SIGHUP   1

Hangup.

Definition at line 553 of file signal.h.

◆ SIGILL

#define SIGILL   4

Illegal instruction.

Definition at line 559 of file signal.h.

◆ SIGINT

#define SIGINT   2

Interrupt.

Definition at line 555 of file signal.h.

◆ SIGKILL

#define SIGKILL   9

Killed.

Definition at line 569 of file signal.h.

◆ SIGPIPE

#define SIGPIPE   13

Broken pipe.

Definition at line 575 of file signal.h.

◆ SIGPOLL

#define SIGPOLL   29

Pollable event occurred.

Definition at line 593 of file signal.h.

◆ SIGPROF

#define SIGPROF   27

Profiling timer expired.

Definition at line 591 of file signal.h.

◆ SIGQUIT

#define SIGQUIT   3

Quit.

Definition at line 557 of file signal.h.

◆ SIGRTMAX

#define SIGRTMAX   (SIGRTMIN + CONFIG_POSIX_RTSIG_MAX)

Definition at line 81 of file signal.h.

◆ SIGRTMIN

#define SIGRTMIN   32

Definition at line 78 of file signal.h.

◆ SIGSEGV

#define SIGSEGV   11

Invalid memory reference.

Definition at line 572 of file signal.h.

◆ SIGSTKSZ

#define SIGSTKSZ   4096

Default stack size for a signal handler.

Definition at line 225 of file signal.h.

◆ SIGSTOP

#define SIGSTOP   19

Stop executing.

Definition at line 583 of file signal.h.

◆ SIGSYS

#define SIGSYS   31

Bad system call.

Definition at line 595 of file signal.h.

◆ SIGTERM

#define SIGTERM   15

Terminated.

Definition at line 578 of file signal.h.

◆ SIGTRAP

#define SIGTRAP   5

Trace/breakpoint trap.

Definition at line 561 of file signal.h.

◆ SIGTSTP

#define SIGTSTP   20

Stopped.

Definition at line 584 of file signal.h.

◆ SIGTTIN

#define SIGTTIN   21

Stopped (read)

Definition at line 585 of file signal.h.

◆ SIGTTOU

#define SIGTTOU   22

Stopped (write)

Definition at line 586 of file signal.h.

◆ SIGURG

#define SIGURG   23

Urgent I/O condition.

Definition at line 587 of file signal.h.

◆ SIGUSR1

#define SIGUSR1   10

User-defined signal 1.

Definition at line 570 of file signal.h.

◆ SIGUSR2

#define SIGUSR2   12

User-defined signal 2.

Definition at line 574 of file signal.h.

◆ SIGVTALRM

#define SIGVTALRM   26

Virtual timer expired.

Definition at line 590 of file signal.h.

◆ SIGXCPU

#define SIGXCPU   24

CPU time limit exceeded.

Definition at line 588 of file signal.h.

◆ SIGXFSZ

#define SIGXFSZ   25

File size limit exceeded.

Definition at line 589 of file signal.h.

◆ SS_DISABLE

#define SS_DISABLE   0x00000002

Alternate signal stack is disabled (ss_flags value).

Definition at line 221 of file signal.h.

◆ SS_ONSTACK

#define SS_ONSTACK   0x00000001

Alternate signal stack is active (ss_flags value).

Definition at line 219 of file signal.h.

◆ TRAP_BRKPT

#define TRAP_BRKPT   23

Process breakpoint.

Definition at line 630 of file signal.h.

◆ TRAP_TRACE

#define TRAP_TRACE   24

Process trace trap.

Definition at line 631 of file signal.h.

Typedef Documentation

◆ pid_t

typedef long pid_t

Definition at line 96 of file signal.h.

◆ pthread_t

typedef unsigned int pthread_t

Definition at line 44 of file signal.h.

◆ sighandler_t

typedef void(* sighandler_t) (int sig)

Function pointer type for a simple signal handler.

Definition at line 268 of file signal.h.

◆ uid_t

typedef int uid_t

Definition at line 55 of file signal.h.