summaryrefslogtreecommitdiff
path: root/Userland/syscall.cpp
AgeCommit message (Collapse)Author
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-12-24Userland: Add syscall -l option and man pageMauri de Souza Nunes
2019-11-17Kernel+LibC: Remove the isatty() syscallAndreas Kling
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.
2019-11-04Userland: Add syscall programMauri de Souza Nunes
The Plan9 OS has this program that can test a system call with the given arguments. For the most basic system calls it can be very helpful and aid with testing or just to play with a given syscall without writing a dedicated program. Some examples: syscall write 1 hello 5 syscall -o read 0 buf 5 syscall mkdir /tmp/my-dir syscall exit 2 ...