~sircmpwn/hare-users

3

Is ioctl part of stdlib?

Details
Message ID
<c873cc38-4af8-84c9-4572-f7e3bd50ed52@gmail.com>
DKIM signature
pass
Download raw message
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.
Details
Message ID
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com>
In-Reply-To
<c873cc38-4af8-84c9-4572-f7e3bd50ed52@gmail.com> (view parent)
DKIM signature
pass
Download raw message
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.
Details
Message ID
<3b3832d2-dca4-910c-594b-2600752829d6@gmail.com>
In-Reply-To
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Ah, never mind, I see that it's in rt::ioctl.
Details
Message ID
<cee3b09a-7396-3909-794a-4c424e827e36@gmail.com>
In-Reply-To
<b1dff230-4d90-50b8-f1f1-fdd6bc4f76d6@gmail.com> (view parent)
DKIM signature
pass
Download raw message
In fact, ioctl is discussed here:

https://harelang.org/blog/2022-05-14-generating-ioctls/
Reply to thread Export thread (mbox)