From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?U3TDqXBoYW5l?= Aulery Subject: Re: aio_return(3): misleading RETURN VALUE Date: Wed, 18 Mar 2015 13:14:47 +0100 Message-ID: <20150318121446.GA5160@free.fr> References: <5509315A.1040103@ahsoftware.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <5509315A.1040103-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexander Holler Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org Hello Alexander, Le mercredi 18 mars 2015 =C3=A0 09:03:38, Alexander Holler a =C3=A9crit= : >=20 > I suggest to use the same wording as in write(2) in the paragraph RET= URN > VALUE: >=20 > "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. I think that's what you meant. What will happen if the asynchronous I/O operation has not yet completed please ? Regards, --=20 St=C3=A9phane Aulery -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html