toaruos/base/usr/include/signal.h

21 lines
439 B
C
Raw Normal View History

2018-02-25 08:13:54 +03:00
#pragma once
2018-10-12 05:15:40 +03:00
#include <_cheader.h>
2018-02-25 08:13:54 +03:00
#include <sys/signal.h>
#include <sys/signal_defs.h>
2018-10-12 05:15:40 +03:00
_Begin_C_Header
2018-02-25 08:13:54 +03:00
typedef _sig_func_ptr sighandler_t;
#define SIG_DFL ((_sig_func_ptr)0)/* Default action */
#define SIG_IGN ((_sig_func_ptr)1)/* Ignore action */
#define SIG_ERR ((_sig_func_ptr)-1)/* Error return */
2018-06-25 07:15:09 +03:00
typedef int sig_atomic_t;
2018-02-25 08:13:54 +03:00
extern sighandler_t signal(int signum, sighandler_t handler);
2018-06-25 09:45:32 +03:00
extern int raise(int sig);
2018-10-12 05:15:40 +03:00
_End_C_Header