/* SPDX-License-Identifier: LGPL-2.1 OR MIT */1/*2* signal function definitions for NOLIBC3* Copyright (C) 2017-2022 Willy Tarreau <[email protected]>4*/56/* make sure to include all global symbols */7#include "nolibc.h"89#ifndef _NOLIBC_SIGNAL_H10#define _NOLIBC_SIGNAL_H1112#include "std.h"13#include "arch.h"14#include "types.h"15#include "sys.h"1617/* This one is not marked static as it's needed by libgcc for divide by zero */18int raise(int signal);19__attribute__((weak,unused,section(".text.nolibc_raise")))20int raise(int signal)21{22return sys_kill(sys_getpid(), signal);23}2425#endif /* _NOLIBC_SIGNAL_H */262728