Not sure where to ask this question because I mostly never program on Linux, so: where do the errno's go when you issue ops on an io_uring? To the naive user (me), it looks like they simple vanish, since cqe.res is documented as being simply "-1 on error". This can't be right?
-
-
And so if you then look at the documented return values of preadv2(2) and pwritev2(2), it says:pic.twitter.com/1RD6uTJGmq
-
I guess this is just a mistake in the man pages?
- Show replies
New conversation -
-
-
Maybe it's just me, but the quoted pic says that the error values are the same, not that the delivery is the same. The first line you highlight explicitly says that it's in cqe->res. errno makes no sense for async completions.
-
Yeah, I know it makes no sense, but that's not what the manual says. It says that the values "match those documented in the preadv2(2) and pwritev2(2) man pages". I'm not sure how else you take that. It should say "match the errno" or "match the result of the syscall", etc.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.