Zephyr API Documentation
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
signal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Synopsys
3
* Copyright (c) 2025 Tenstorrent AI ULC
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_
9
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#define SIGABRT 6
16
#define SIGFPE 8
17
#define SIGILL 4
18
#define SIGINT 2
19
#define SIGSEGV 11
20
#define SIGTERM 15
21
22
#define SIG_DFL ((sighandler_t)0)
23
#define SIG_IGN ((sighandler_t)1)
24
#define SIG_ERR ((sighandler_t)(-1))
25
26
typedef
long
sig_atomic_t
;
27
28
#if !defined(_SIGHANDLER_T_DECLARED) && !defined(__sighandler_t_defined)
29
typedef
void (*
sighandler_t
)(
int
sig);
30
#define _SIGHANDLER_T_DECLARED
31
#define __sighandler_t_defined
32
#endif
33
34
sighandler_t
signal
(
int
sig,
sighandler_t
handler);
35
int
raise
(
int
sig);
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#include <
zephyr/posix/posix_signal.h
>
42
43
#endif
/* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_ */
posix_signal.h
sighandler_t
void(* sighandler_t)(int sig)
Definition
posix_signal.h:225
raise
int raise(int sig)
signal
sighandler_t signal(int sig, sighandler_t handler)
sig_atomic_t
long sig_atomic_t
Definition
signal.h:26
lib
libc
minimal
include
signal.h
Generated on
for Zephyr API Documentation by
1.14.0