Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / signal_defs.h
index 0bd3e7051bb0a4c99cdfbd347a7e657de86850f5..7c8148a20bc5ffa29a19886560e216b16fda0254 100644 (file)
@@ -5,19 +5,34 @@
 #define SIGCHLD 2
 #define SIGCLD SIGCHLD
 
-#define SIGSTOP 3
-#define SIGCONT 4
+#define SIGINT 3
+#define SIGSTOP 4
+#define SIGCONT 5
 
-#define SIGINT 5
 #define SIGSEGV 6
 #define SIGKILL 7
 #define SIGTERM 8
+#define SIGILL 9
+#define SIGSYS 10
 
 #define SIG_BLOCK 1
 #define SIG_UNBLOCK 2
 #define SIG_SETMASK 3
 
+typedef unsigned char signum_t;
 typedef unsigned int sigset_t;
 typedef void (*sighandler_t)(int);
 
+struct sigaction
+{
+    sigset_t sa_mask;
+    void (*sa_handler)(int);
+    void (*sa_sigaction)(int, void*, void*);
+};
+
+struct siginfo
+{
+    // TODO
+};
+
 #endif /* __LUNAIX_SIGNAL_DEFS_H */