Odin
Odin copied to clipboard
sys/linux: Add binding to ioctl syscall + standard fd constants.
Add binding to ioctl syscall, due to the vast nature of this syscall adding more device specific request values as constants is possible in the future, I opted to not add them.
Also added the stdin, stdout and stderr, to constants.odin for convenience sake when using this syscall
You can push more commits to this PR just normally. Just make sure to push to the same branch from which you made this PR.
ayyyy
This will make a number of useful functions in a future core:terminal possible. isatty relies on ioctl calls and other things that detect terminal capabilities on *nix
Make request parameter a u32. Everything else looks good to go.
I would like to see this merged @marcs-feh if you've got some spare time.