]> Git Repo - linux.git/blob - tools/include/nolibc/signal.h
Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / tools / include / nolibc / signal.h
1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2 /*
3  * signal function definitions for NOLIBC
4  * Copyright (C) 2017-2022 Willy Tarreau <[email protected]>
5  */
6
7 #ifndef _NOLIBC_SIGNAL_H
8 #define _NOLIBC_SIGNAL_H
9
10 #include "std.h"
11 #include "arch.h"
12 #include "types.h"
13 #include "sys.h"
14
15 /* This one is not marked static as it's needed by libgcc for divide by zero */
16 __attribute__((weak,unused,section(".text.nolibc_raise")))
17 int raise(int signal)
18 {
19         return sys_kill(sys_getpid(), signal);
20 }
21
22 #endif /* _NOLIBC_SIGNAL_H */
This page took 0.03552 seconds and 4 git commands to generate.