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: restructure the user space stuff.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
signal.h
diff --git
a/lunaix-os/includes/lunaix/signal.h
b/lunaix-os/includes/lunaix/signal.h
index 5405aabf9c6a6878e2280cd4e2473fb147bd3289..dbe9ce5c9c212af1d28fe167558615b65049743b 100644
(file)
--- a/
lunaix-os/includes/lunaix/signal.h
+++ b/
lunaix-os/includes/lunaix/signal.h
@@
-1,21
+1,21
@@
#ifndef __LUNAIX_SIGNAL_H
#define __LUNAIX_SIGNAL_H
#ifndef __LUNAIX_SIGNAL_H
#define __LUNAIX_SIGNAL_H
-#include <
lunaix/syscall
.h>
+#include <
usr/lunaix/signal_defs
.h>
#define _SIG_NUM 16
#define _SIG_PENDING(bitmap, sig) ((bitmap) & (1 << (sig)))
#define _SIG_NUM 16
#define _SIG_PENDING(bitmap, sig) ((bitmap) & (1 << (sig)))
-#define _SIGSEGV
1
-#define _SIGALRM
2
-#define _SIGCHLD
3
-#define _SIGCLD
_SIGCH
LD
-#define _SIGINT
4
-#define _SIGKILL
5
-#define _SIGSTOP
6
-#define _SIGCONT
7
-#define _SIGTERM
8
+#define _SIGSEGV
SIGSEGV
+#define _SIGALRM
SIGALRM
+#define _SIGCHLD
SIGCHLD
+#define _SIGCLD
SIGC
LD
+#define _SIGINT
SIGINT
+#define _SIGKILL
SIGKILL
+#define _SIGSTOP
SIGSTOP
+#define _SIGCONT
SIGCONT
+#define _SIGTERM
SIGTERM
#define __SIGNAL(num) (1 << (num))
#define __SIGSET(bitmap, num) (bitmap = bitmap | __SIGNAL(num))
#define __SIGNAL(num) (1 << (num))
#define __SIGSET(bitmap, num) (bitmap = bitmap | __SIGNAL(num))
@@
-24,22
+24,11
@@
#define _SIGNAL_UNMASKABLE (__SIGNAL(_SIGKILL) | __SIGNAL(_SIGSTOP))
#define _SIGNAL_UNMASKABLE (__SIGNAL(_SIGKILL) | __SIGNAL(_SIGSTOP))
-#define _SIG_BLOCK
1
-#define _SIG_UNBLOCK
2
-#define _SIG_SETMASK
3
+#define _SIG_BLOCK
SIG_BLOCK
+#define _SIG_UNBLOCK
SIG_UNBLOCK
+#define _SIG_SETMASK
SIG_SETMASK
-typedef unsigned int sigset_t;
-typedef void (*sighandler_t)(int);
-
-__LXSYSCALL2(int, signal, int, signum, sighandler_t, handler);
-
-__LXSYSCALL3(int,
- sigprocmask,
- int,
- how,
- const sigset_t,
- *set,
- sigset_t,
- *oldset);
+int
+signal_send(pid_t pid, int signum);
#endif /* __LUNAIX_SIGNAL_H */
#endif /* __LUNAIX_SIGNAL_H */