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
12extern "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
26typedef long sig_atomic_t;
27
28#if !defined(_SIGHANDLER_T_DECLARED) && !defined(__sighandler_t_defined)
29typedef void (*sighandler_t)(int sig);
30#define _SIGHANDLER_T_DECLARED
31#define __sighandler_t_defined
32#endif
33
35int raise(int sig);
36
37#ifdef __cplusplus
38}
39#endif
40
42
43#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_ */
void(* sighandler_t)(int sig)
Definition posix_signal.h:225
int raise(int sig)
sighandler_t signal(int sig, sighandler_t handler)
long sig_atomic_t
Definition signal.h:26