From: Mike Frysinger Date: Sat, 14 Jan 2012 23:19:21 -0500 Subject: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call In-Reply-To: <1326242752-9981-7-git-send-email-sjg@chromium.org> References: <1326242752-9981-1-git-send-email-sjg@chromium.org> <1326242752-9981-7-git-send-email-sjg@chromium.org> Message-ID: <201201142319.22162.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: