Hi Mike, On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger <vap...@gentoo.org> wrote: > On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: >> This provides a way for callers to create files for writing. We define >> flags which mirror the POSIX values. >> >> Another approach would be to translate the flags at runtime. Perhaps we can >> leave to whoever wants to port this to another OS? > > some of the flags differ between Linux/arches, so i think we'll have to do it > now :/ > >> +enum { >> + OS_O_RDONLY, >> + OS_O_WRONLY, >> + OS_O_RDWR, >> + OS_O_CREAT = 0100, >> +}; > > the flags are bit based, so an enum won't work i don't think
Mostly, but in /usr/include/bits/fcntl.h: #define O_RDONLY 00 #define O_WRONLY 01 #define O_RDWR 02 #define O_CREAT 0100 /* not fcntl */ Regards, Simon Regards, Simon > -mike _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot