diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-17 20:01:03 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-17 20:03:42 +0100 |
commit | 3da6d89d1f40d82fa0b6bdc3aec99a8919661797 (patch) | |
tree | 53c1c4bd330ce95950714556c88fdb5e2a7818f2 /Userland/syscall.cpp | |
parent | 3d558f47b04e80ffacc8bc7a91dadf5bcf0dd131 (diff) | |
download | serenity-3da6d89d1f40d82fa0b6bdc3aec99a8919661797.zip |
Kernel+LibC: Remove the isatty() syscall
This can be implemented entirely in userspace by calling tcgetattr().
To avoid screwing up the syscall indexes, this patch also adds a
mechanism for removing a syscall without shifting the index of other
syscalls.
Note that ports will still have to be rebuilt after this change,
as their LibC code will try to make the isatty() syscall on startup.
Diffstat (limited to 'Userland/syscall.cpp')
-rw-r--r-- | Userland/syscall.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/syscall.cpp b/Userland/syscall.cpp index 59f111ab96..d6ef41af40 100644 --- a/Userland/syscall.cpp +++ b/Userland/syscall.cpp @@ -10,6 +10,9 @@ #if !defined __ENUMERATE_SYSCALL # define __ENUMERATE_SYSCALL(x) SC_##x, #endif +#if !defined __ENUMERATE_REMOVED_SYSCALL +# define __ENUMERATE_REMOVED_SYSCALL(x) +#endif #define SC_NARG 4 |