fopen() w+ Fix

Kelvin Lawson klawson@ad-holdings.co.uk
Mon Mar 29 10:03:00 GMT 2004


Hi All,

I've attached a proposed fix for fopen() with mode 'w+'. Basically 
specifying 'w+' was previously exactly the same as specifying 'r+', but 
'w+' should allow file creation, while 'r+' should not.

I've split CYG_STREAM_READWRITE into CYG_STREAM_READWRITE_CREATE and 
CYG_STREAM_READWRITE_NOCREATE to allow for these different modes.

See here for details:
http://ecos.sourceware.org/ml/ecos-discuss/2004-03/msg00316.html

Thanks,
Kelvin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fopen_create_patch.txt
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20040329/8d15ddb1/attachment.txt>


More information about the Ecos-patches mailing list