include error in example code
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): F1C54C2B29AD45429DFA1538CDE11207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 11 lines · alikewmk
Hello,
The example code under
http://man7.org/linux/man-pages/man7/aio.7.html lacks a include filefcntl.h, since the code is usingO_RDONLYinopen()function, according to the GNU document here
(http://www.gnu.org/software/libc/manual/html_node/Opening-and-Closing-Files.html),
it needs to be included.I tested the code after including the
fcntl.hfile and it worked.> Thanks. :)
Thanks, Meikun. I added that header file to the example code.
Cheers,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html