[yocto] O_RDONLY ... missed bits/fcntl.h not as expected

Arno Steffens star at gmx.li
Mon Mar 12 00:32:16 PDT 2018


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






More information about the yocto mailing list