[yocto] O_RDONLY ... missed bits/fcntl.h not as expected
Burton, Ross
ross.burton at intel.com
Mon Mar 12 03:00:13 PDT 2018
Can you explain what the actual problem is?
For me the include you'd use in programs <fcntl.h> includes <bits/fcntl.h>
which includes <bits/fcntl-linux.h> which defines O_RDONLY.
Ross
On 12 March 2018 at 07:32, Arno Steffens <star at gmx.li> wrote:
> I looked for
> #define O_RDONLY 00
> #define O_WRONLY 01
> #define O_RDWR 02
> and found it in : bits/fcntl-linux.h. According to this file it should not
> be included, but bits/fcntl.h.
> And it requires something like that:
>
> A minimal <bits/fcntl.h> contains just:
> struct flock {...}
> #ifdef __USE_LARGEFILE64
> struct flock64 {...}
> #endif
> #include <bits/fcntl-linux.h>
>
>
>
> But this doesn't finally include the fcntl-linux.h as expected. Am I doing
> something wrong?
> Regards
> Arno
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180312/ce91f9f5/attachment.html>
More information about the yocto
mailing list