Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / include / nolibc / signal.h
blob137552216e46960dc8baa1e25759daa1f152c3c9
1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2 /*
3 * signal function definitions for NOLIBC
4 * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
5 */
7 #ifndef _NOLIBC_SIGNAL_H
8 #define _NOLIBC_SIGNAL_H
10 #include "std.h"
11 #include "arch.h"
12 #include "types.h"
13 #include "sys.h"
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)
19 return sys_kill(sys_getpid(), signal);
22 /* make sure to include all global symbols */
23 #include "nolibc.h"
25 #endif /* _NOLIBC_SIGNAL_H */