[En-Nut-Discussion] Fmode

Ben Hoyt benhoyt at gmail.com
Wed Sep 6 06:11:00 CEST 2006


Hi guys,

I've just been look at _fmode() in crt/fmode.c, and I can't figure out why,
between file versions 1.1.1.1 and 1.2, the behaviour of "+" was changed from
just adding read/write access, to adding the CREAT and TRUNC flags. I'm
pretty sure it should just add RDWR. This is a bug, right?

1.1.1.1: mflags |= _O_RDWR;
1.2: mflags |= _O_RDWR | _O_CREAT | _O_TRUNC;

Here's the CVS versions for that file on the web:
http://ethernut.cvs.sourceforge.net/ethernut/nut/crt/fmode.c?view=log

Cheers,
Ben.

-- 
Ben Hoyt
Mobile: +64 21 331 841
Email: benhoyt at gmail.com



More information about the En-Nut-Discussion mailing list