Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because this is the most general signature possible (in general syscalls can have up to 6 arguments because the kernel supports x86-32 which has only 8 general purpose registers of which one stores the syscall number, one the stack pointer which cannot be reused due to signals in case of no sigaltstack, and the remaining 6 are available).

Depending on option, the args can be pointers to structure.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: