Hi Mike, On Wed, Feb 15, 2012 at 10:09 PM, Mike Frysinger <vap...@gentoo.org> wrote: > On Wednesday 15 February 2012 18:51:17 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? > > as i mentioned, this isn't a linux-vs-non-linux issue. even linux ports > themselves disagree on the open() flags.
Gosh. > >> +#define OS_O_RDONLY 0 >> +#define OS_O_WRONLY 1 >> +#define OS_O_RDWR 2 > > these are "fine" for linux as every port i see uses these values > >> +#define OS_O_CREAT 0100 > > as soon as you get beyond the extreme basics, you start seeing bitfield drift. > not all linux arches define O_CREAT to 0100. so i'd like to see logic similar > to what i did for lseek(). i.e. make you bite the bullet :P. Chomp. I will send a new patch. Sandbox does at least have few time/code size constraints. > -mike Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot