public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Should aiocb(3type) say something about the order of fields?
@ 2026-02-14 11:51 Jonathan Wakely
  2026-02-14 12:30 ` Alejandro Colomar
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2026-02-14 11:51 UTC (permalink / raw)
  To: linux-man

https://man7.org/linux/man-pages/man3/aiocb.3type.html doesn't tell
you that the order shown there is not the real order used on linux. It
does tell you to look at aio(7), which says:

    struct aiocb {
       /* The order of these fields is implementation-dependent */
       ...
       /* Various implementation-internal fields not shown */
    };

I think it would be helpful to repeat that in aiocb(3type) so you
don't need to go to a second page to get that info. If aiocb(3type)
shows actual C code with a struct definition it's reasonable to assume
that it is accurate, which isn't the case here. The comments in the
aio(7) page make that clearer.

The Glibc manual
<https://sourceware.org/glibc/manual/latest/html_node/Asynchronous-I_002fO.html>
just names the fields (not showing an actual struct definition) and
doesn't imply anything about the order.


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

end of thread, other threads:[~2026-02-14 12:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-14 11:51 Should aiocb(3type) say something about the order of fields? Jonathan Wakely
2026-02-14 12:30 ` Alejandro Colomar
2026-02-14 12:33   ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox