Odin icon indicating copy to clipboard operation
Odin copied to clipboard

sys/linux: Add binding to ioctl syscall + standard fd constants.

Open marcs-feh opened this issue 1 year ago • 1 comments

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

marcs-feh avatar Jan 22 '24 19:01 marcs-feh

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.

flysand7 avatar Jan 24 '24 11:01 flysand7

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

Beefster09 avatar Jul 30 '24 00:07 Beefster09

Make request parameter a u32. Everything else looks good to go.

flysand7 avatar Jul 31 '24 20:07 flysand7

I would like to see this merged @marcs-feh if you've got some spare time.

IllusionMan1212 avatar Aug 13 '24 13:08 IllusionMan1212