PatchworkOS
Loading...
Searching...
No Matches
signal.h File Reference
#include "_internal/config.h"

Go to the source code of this file.

Macros

#define SIGABRT   6
 
#define SIGFPE   8
 
#define SIGILL   4
 
#define SIGINT   2
 
#define SIGSEGV   11
 
#define SIGTERM   15
 
#define SIG_DFL   (void (*)(int))0
 
#define SIG_ERR   (void (*)(int)) - 1
 
#define SIG_IGN   (void (*)(int))1
 

Typedefs

typedef __SIG_ATOMIC_TYPE__ sig_atomic_t
 

Functions

_PUBLIC int raise (int sig)
 

Variables

_PUBLIC void(*)(int) signal (int sig, void(*func)(int))
 

Macro Definition Documentation

◆ SIG_DFL

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

Definition at line 21 of file signal.h.

◆ SIG_ERR

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

Definition at line 22 of file signal.h.

◆ SIG_IGN

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

Definition at line 23 of file signal.h.

◆ SIGABRT

#define SIGABRT   6

Definition at line 9 of file signal.h.

◆ SIGFPE

#define SIGFPE   8

Definition at line 11 of file signal.h.

◆ SIGILL

#define SIGILL   4

Definition at line 13 of file signal.h.

◆ SIGINT

#define SIGINT   2

Definition at line 15 of file signal.h.

◆ SIGSEGV

#define SIGSEGV   11

Definition at line 17 of file signal.h.

◆ SIGTERM

#define SIGTERM   15

Definition at line 19 of file signal.h.

Typedef Documentation

◆ sig_atomic_t

typedef __SIG_ATOMIC_TYPE__ sig_atomic_t

Definition at line 25 of file signal.h.

Function Documentation

◆ raise()

_PUBLIC int raise ( int  sig)

Variable Documentation

◆ signal

_PUBLIC void(*)(int) signal(int sig, void(*func)(int)) ( int  sig,
void(*)(int)  func 
)

Definition at line 27 of file signal.h.