FreeNOS
signal.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __LIB_LIBPOSIX_SIGNAL_H
19#define __LIB_LIBPOSIX_SIGNAL_H
20
21#include <sys/types.h>
22
39#define SIGINT 2
40
42#define SIGILL 4
43
45#define SIGABRT 6
46
48#define SIGFPE 8
49
51#define SIGSEGV 11
52
54#define SIGTERM 15
55
68#define SIGHUP 1
69
71#define SIGQUIT 3
72
74#define SIGTRAP 5
75
77#define SIGKILL 9
78
80#define SIGBUS 10
81
83#define SIGSYS 12
84
86#define SIGPIPE 13
87
89#define SIGALRM 14
90
92#define SIGURG 16
93
95#define SIGSTOP 17
96
98#define SIGTSTP 18
99
101#define SIGCONT 19
102
104#define SIGCHLD 20
105
107#define SIGTTIN 21
108
110#define SIGTTOU 22
111
113#define SIGPOLL 23
114
116#define SIGXCPU 24
117
119#define SIGXFSZ 25
120
122#define SIGVTALRM 26
123
125#define SIGPROF 27
126
128#define SIGUSR1 30
129
131#define SIGUSR2 31
132
177extern C int kill(pid_t pid, int sig);
178
188#endif /* __LIB_LIBPOSIX_SIGNAL_H */
ProcessID pid_t
Used for process IDs and process group IDs.
Definition types.h:32
C int kill(pid_t pid, int sig)
Send a signal to a process or a group of processes.
Definition kill.cpp:23
#define C
Used to define external C functions.
Definition Macros.h:134