MOS Source Code
Loading...
Searching...
No Matches
signal_types.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-3.0-or-later
2
3
#pragma once
4
5
#include <abi-bits/signal.h>
6
#include <
mos/mos_global.h
>
7
8
#define SIGNAL_MAX_N NSIG
9
typedef
int
signal_t
;
10
typedef
struct
11
{
12
__sighandler
handler
;
13
unsigned
long
sa_flags
;
14
void
(*sa_restorer)(
void
);
15
}
sigaction_t
;
16
17
MOS_STATIC_ASSERT
(
sizeof
(
sigaction_t
) == 24,
"update sigaction_t struct size"
);
18
19
MOS_STATIC_ASSERT
(
offsetof
(
struct
sigaction, __sa_handler) ==
offsetof
(
sigaction_t
, handler),
"update sigaction_t struct layout"
);
20
MOS_STATIC_ASSERT
(
offsetof
(
struct
sigaction, sa_flags) ==
offsetof
(
sigaction_t
, sa_flags),
"update sigaction_t struct layout"
);
21
MOS_STATIC_ASSERT
(
offsetof
(
struct
sigaction, sa_restorer) ==
offsetof
(
sigaction_t
, sa_restorer),
"update sigaction_t struct layout"
);
void
MOSAPI void(1, 2) fatal_abort(const char *fmt
mos_global.h
MOS_STATIC_ASSERT
#define MOS_STATIC_ASSERT
Definition
mos_global.h:14
offsetof
#define offsetof(st, m)
Definition
pb_syshdr.h:43
signal_t
int signal_t
Definition
signal_types.h:9
sigaction_t
Definition
signal_types.h:11
sigaction_t::sa_flags
unsigned long sa_flags
Definition
signal_types.h:13
sigaction_t::handler
__sighandler handler
Definition
signal_types.h:12
kernel
include
public
mos
tasks
signal_types.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0