summaryrefslogtreecommitdiff
path: root/LibC
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-02 14:06:48 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-02 14:06:48 +0100
commit10b666f69a610c0bdc5bd60efd1d7d2bf499707d (patch)
tree3c552bce003cd7b9a95f161fa12b7d73f902c088 /LibC
parent621217ffeb9bddec866ad8895bd01973977f2848 (diff)
downloadserenity-10b666f69a610c0bdc5bd60efd1d7d2bf499707d.zip
Basic ^C interrupt implementation.
For testing, I made cat put itself into a new process group. This should eventually be done by sh between fork() and exec().
Diffstat (limited to 'LibC')
-rw-r--r--LibC/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibC/unistd.h b/LibC/unistd.h
index cbc630628a..cf2df7e97d 100644
--- a/LibC/unistd.h
+++ b/LibC/unistd.h
@@ -39,6 +39,11 @@ off_t lseek(int fd, off_t, int whence);
#define WIFEXITED(status) (WTERMSIG(status) == 0)
#define WIFSIGNALED(status) (((char) (((status) & 0x7f) + 1) >> 1) > 0)
+#define SIGINT 2
+#define SIGKILL 9
+#define SIGSEGV 11
+#define SIGTERM 15
+
#define HOST_NAME_MAX 64
#define S_IFMT 0170000