BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 03048a95d88cc7a78171393371f5c22a0250a014 / 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