Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Mike Frysinger
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?

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
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

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 23:36:40 Simon Glass wrote: On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: +enum { + OS_O_RDONLY, + OS_O_WRONLY, + OS_O_RDWR, + OS_O_CREAT = 0100, +}; the flags are

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:44 PM, Mike Frysinger vap...@gentoo.org wrote: On Saturday 14 January 2012 23:36:40 Simon Glass wrote: On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: +enum { +     OS_O_RDONLY, +