linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* aio_return(3): misleading RETURN VALUE
@ 2015-03-18  8:03 Alexander Holler
       [not found] ` <5509315A.1040103-SXC+2es9fhnfWeYVQQPykw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Holler @ 2015-03-18  8:03 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

I've just typed in the following commit message:

--
The man page was misleading and I must have had a bad moment 
mechanically coding what the man page says without thinking about it.
So I seem to have assumed that aio_return() might return EINVAL which 
can't be the case. In fact the error is returned in errno which isn't 
mentioned by the Linux man page for aio_return.
--

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."

I've verified it by looking at the source for aio_return of glibc.

Regards,

Alexander Holler
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-22 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18  8:03 aio_return(3): misleading RETURN VALUE Alexander Holler
     [not found] ` <5509315A.1040103-SXC+2es9fhnfWeYVQQPykw@public.gmane.org>
2015-03-18 12:14   ` Stéphane Aulery
     [not found]     ` <20150318121446.GA5160-GANU6spQydw@public.gmane.org>
2015-03-18 19:21       ` Alexander Holler
     [not found]         ` <5509D038.7020907-SXC+2es9fhnfWeYVQQPykw@public.gmane.org>
2015-03-18 19:57           ` Stéphane Aulery
2015-03-18 19:51   ` [PATCH] aio_return.3: Specifies the return values for errors Stéphane Aulery
     [not found]     ` <1426708273-9475-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
2015-03-22 15:19       ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).