On Fri, Jan 14, 2005 at 01:14:36AM +0100, Andreas Schwab wrote: > +#ifndef O_ACCMODE > +#define O_ACCMODE 3 > +#endif Nor does this make sense. You'd have to use (O_RDWR|O_RDONLY|O_WRONLY). r~