git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: full rewrite of signal feature
[lunaix-os.git]
/
lunaix-os
/
includes
/
usr
/
lunaix
/
signal_defs.h
diff --git
a/lunaix-os/includes/usr/lunaix/signal_defs.h
b/lunaix-os/includes/usr/lunaix/signal_defs.h
index ac102ab3c8160611d57c30ae63c0e18a7afd98ff..d56a44307052cb4a0b124bb4a61be256468e40d8 100644
(file)
--- a/
lunaix-os/includes/usr/lunaix/signal_defs.h
+++ b/
lunaix-os/includes/usr/lunaix/signal_defs.h
@@
-1,14
+1,16
@@
#ifndef __LUNAIX_SYS_SIGNAL_DEFS_H
#define __LUNAIX_SYS_SIGNAL_DEFS_H
#ifndef __LUNAIX_SYS_SIGNAL_DEFS_H
#define __LUNAIX_SYS_SIGNAL_DEFS_H
-#define SIGSEGV 1
-#define SIGALRM 2
-#define SIGCHLD 3
+#define SIGALRM 1
+#define SIGCHLD 2
#define SIGCLD SIGCHLD
#define SIGCLD SIGCHLD
-#define SIGINT 4
-#define SIGKILL 5
-#define SIGSTOP 6
-#define SIGCONT 7
+
+#define SIGSTOP 3
+#define SIGCONT 4
+
+#define SIGINT 5
+#define SIGSEGV 6
+#define SIGKILL 7
#define SIGTERM 8
#define SIG_BLOCK 1
#define SIGTERM 8
#define SIG_BLOCK 1
@@
-18,4
+20,16
@@
typedef unsigned int sigset_t;
typedef void (*sighandler_t)(int);
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 */
#endif /* __LUNAIX_SIGNAL_DEFS_H */