Skip to contentSkip to conversation

include error in example code

DISCUSSION Michael Kerrisk (man-pages) 1 participant 1 message Dec 2, 2015 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 11 lines · alikewmk

Hello,

The example code under
http://man7.org/linux/man-pages/man7/aio.7.html lacks a include file fcntl.h, since the code is using O_RDONLY in open() 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.h file 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