BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / d0db5bd73909d1f94cac363ea1dfd12674bbd3a4 / include / signal.h

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
#ifndef _SIGNAL_H
#define _SIGNAL_H

#include <sys/types.h>

typedef unsigned long int __sigset_t;
#ifndef sigset_t
typedef __sigset_t sigset_t;
#endif
#ifndef sig_atomic_t
typedef int sig_atomic_t;
#endif

#ifdef __cplusplus
extern "C" {
#endif

enum Signals {
	SIGHUP = 1,
	SIGINT,
	SIGQUIT,
	SIGILL,
	SIGABRT,
	SIGFPE,
	SIGKILL,
	SIGSEGV,
	SIGPIPE,
	
};

void (*signal(int sig, void (*func)(int)))(int);
int tgkill(pid_t tgid, pid_t tid, int sig);
int kill(pid_t pid, int sig);

#ifdef __cplusplus
}
#endif

#endif