shithub: npe

ref: 5ac3e2deaaf306980c1c8920382ffa10e30a95b1
dir: /include/npe/signal.h/

View raw version
#ifndef _npe_signal_h_
#define _npe_signal_h_

#include <npe.h>

enum {
	SA_RESETHAND = 1<<0, /* not used */

	/* all are treated as SIGSEGV */
	SIGILL = 4,
	SIGABRT = 6,
	SIGFPE = 8,
	SIGSEGV = 11,
};

typedef void (*sa_handler)(int);

struct sigaction {
	sa_handler sa_handler;
	int sa_flags;
};

void sigaction(int, struct sigaction *, struct sigaction *);

#endif