zlacker

[parent] [thread] 1 comments
1. Goblin+(OP)[view] [source] 2026-02-03 19:03:52
Can't you just have one syscall(2) to rule them all? https://man7.org/linux/man-pages/man2/syscall.2.html
replies(1): >>oguz-i+oo1
2. oguz-i+oo1[view] [source] 2026-02-04 03:09:03
>>Goblin+(OP)
You can. There is a thread-unsafe implementation here <https://gist.github.com/oguz-ismail/72e34550af13e3841ed58e29...>. But the listing needs to be per system call number, so this one only supports system calls 1 (_exit) and 4 (write). It should be fairly easy to automatically generate the complete list but I didn't try it.
[go to top]