PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
Signal Handling

Wrappers around "notes" for ANSI C signal handling. More...

Collaboration diagram for Signal Handling:

Detailed Description

Wrappers around "notes" for ANSI C signal handling.

For the same of compatibility with ANSI C, we provide these wrappers around "notes" for signal handling. However, it is preferred to use the native "notes" for IPC instead if possible.

Macros

#define SIGABRT   1
 
#define SIGFPE   2
 
#define SIGILL   3
 
#define SIGINT   4
 
#define SIGSEGV   5
 
#define SIGTERM   6
 
#define SIGMAX   32
 
#define SIG_DFL   ((void (*)(int))0)
 
#define SIG_ERR   ((void (*)(int)) - 1)
 
#define SIG_IGN   ((void (*)(int))1)
 

Typedefs

typedef void(* sighandler_t) (int)
 

Functions

typedef _Atomic (int) sig_atomic_t
 
_PUBLIC sighandler_t signal (int sig, sighandler_t func)
 
_PUBLIC int raise (int sig)
 

Macro Definition Documentation

◆ SIGABRT

#define SIGABRT   1

Definition at line 24 of file signal.h.

◆ SIGFPE

#define SIGFPE   2

Definition at line 25 of file signal.h.

◆ SIGILL

#define SIGILL   3

Definition at line 26 of file signal.h.

◆ SIGINT

#define SIGINT   4

Definition at line 27 of file signal.h.

◆ SIGSEGV

#define SIGSEGV   5

Definition at line 28 of file signal.h.

◆ SIGTERM

#define SIGTERM   6

Definition at line 29 of file signal.h.

◆ SIGMAX

#define SIGMAX   32

Definition at line 30 of file signal.h.

◆ SIG_DFL

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

Definition at line 32 of file signal.h.

◆ SIG_ERR

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

Definition at line 33 of file signal.h.

◆ SIG_IGN

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

Definition at line 34 of file signal.h.

Typedef Documentation

◆ sighandler_t

typedef void(* sighandler_t) (int)

Definition at line 38 of file signal.h.

Function Documentation

◆ _Atomic()

typedef _Atomic ( int  )

◆ signal()

_PUBLIC sighandler_t signal ( int  sig,
sighandler_t  func 
)

Definition at line 5 of file signal.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ raise()

_PUBLIC int raise ( int  sig)

Definition at line 5 of file raise.c.

Here is the call graph for this function:
Here is the caller graph for this function: