Luna/libc/include/signal.h

33 lines
648 B
C
Raw Normal View History

2023-03-24 21:15:28 +00:00
/* signal.h: Signal management. */
#ifndef _SIGNAL_H
#define _SIGNAL_H
2023-07-10 17:46:57 +00:00
#include <bits/signal.h>
#include <sys/types.h>
2023-03-24 21:15:28 +00:00
typedef int sig_atomic_t;
2023-07-10 17:46:57 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wshadow"
/* Examine/change the current thread's signal disposition for a specific signal. */
int sigaction(int signo, const struct sigaction* act, struct sigaction* oldact);
#pragma GCC pop_options
/* Send a signal to a specific process. */
int kill(pid_t pid, int signo);
/* Send a signal to the current thread. */
int raise(int signo);
#ifdef __cplusplus
}
#endif
2023-03-24 21:15:28 +00:00
#endif