Hello Alexander, Le mercredi 18 mars 2015 à 08:21:28, Alexander Holler a écrit : > Am 18.03.2015 um 13:14 schrieb Stéphane Aulery: > >Le mercredi 18 mars 2015 à 09:03:38, Alexander Holler a écrit : > >> > >>I suggest to use the same wording as in write(2) in the paragraph RETURN > >>VALUE: > >> > >>"On error, -1 is returned, and errno is set appropriately." > > > >Like that ? > > > > If the asynchronous I/O operation has completed, this function > > returns the value that would have been returned in case of a > > synchronous read(2), write(2), fsync(2) or fdatasync(2), call. On > > error, -1 is returned, and errno is set appropriately. > > > > If the asynchronous I/O operation has not yet completed, the return > > value and effect of aio_return() are undefined. > > Exactly. Thanks a lot if you change that. Patch is pending for review by Michael. > >I think that's what you meant. What will happen if the asynchronous I/O > >operation has not yet completed please ? > > It is still undefined, but I haven't looked that up in the source of glibc. > > The reason is that aio_return() should only be called if the operation > before has completed, which must be checked with calling aio_error() before > calling aio_return(). > > That's how I've understood all that and how it currently seems to work in > the SW in question I've fixed a problem. Thank you for yours clarifications. Regards, -- Stéphane Aulery -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html