BarryServer : Git

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

// Related

OrionLibC

Barry Updating libc for pipes and signals ad9b6af (2 years, 2 months ago)
diff --git a/include/signal.h b/include/signal.h
index 3999125..84535e8 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -11,6 +11,15 @@ typedef __sigset_t sigset_t;
 typedef int sig_atomic_t;
 #endif
 
+typedef void (*sighandler_t)(int);
+
+#define SIG_ERR (sighandler_t) -1
+#define SIG_IGNORE 0
+#define SIG_DFL 1
+#define SIG_BLOCK 2
+#define SIG_UNBLOCK 3
+#define SIG_SETMASK 4
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -25,12 +34,12 @@ enum Signals {
 	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);
+sighandler_t signal(int signum, sighandler_t handler);
+int sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
 
 #ifdef __cplusplus
 }