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?
-
Show this thread
-
Replying to @cmuratori
You likely know this already, but most POSIX functions just return -1 on error. To know what the actual error was, you include <errno.h> and then check the variable 'errno' after you get -1 back.
1 reply 0 retweets 0 likes
Replying to @jbendtsen1
Yes, but that doesn't work with async functions. It turns out the man pages are just misleading - the res value _does_ put the error value directly in there, which is what I would have expected, so it's fine.
4:44 PM - 26 Jul 2021
0 replies
0 retweets
1 like
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.