<c873cc38-4af8-84c9-4572-f7e3bd50ed52@gmail.com>
I've looked through various packages, but can't seem to find it. I tried defining export @symbol("ioctl") fn ioctl(fd : io::file, request:i64, ...) int; but it appears that it is more complicated than that.
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com>
<c873cc38-4af8-84c9-4572-f7e3bd50ed52@gmail.com>
(view parent)
A better signature would presumably be something like @symbol("ioctl") fn ioctl(fd : io::file, request:u64, ...) (void | error); although it doesn't help, of course.
<3b3832d2-dca4-910c-594b-2600752829d6@gmail.com>
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com>
(view parent)
Ah, never mind, I see that it's in rt::ioctl.
<cee3b09a-7396-3909-794a-4c424e827e36@gmail.com>
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com>
(view parent)
In fact, ioctl is discussed here: https://harelang.org/blog/2022-05-14-generating-ioctls/