native: more syscalls

* add some missing syscall declarations
* use them
* Bonus: two coding convention violations