* [ECOS] fopen
@ 2002-11-18 13:38 Bob Koninckx
0 siblings, 0 replies; only message in thread
From: Bob Koninckx @ 2002-11-18 13:38 UTC (permalink / raw)
To: ecos-discuss
Hi,
process_mode in fopen.cxx treats open modifiers r+ and w+ identically
and decides on CYG_STREAM_READWRITE attributes. A little bit further,
cyg_stdio_open does not set the O_CREAT flag (it does this only for
CYG_STREAM_WRITE attribute)
As a consequence,
fopen("r+", ...) fails if the requested file does not exists, as it
should
fopen("w+", ...) also fails but should have created the file
Have I missed something ?
Thanks,
Bob
--
----------------------------------------------------------------------
ir. Bob Koninckx
Katholieke Universiteit Leuven
Division Production Engineering, tel. +32 16 322535
Machine Design and Automation fax. +32 16 322987
Celestijnenlaan 300B bob.koninckx@mech.kuleuven.ac.be
B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma
----------------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-18 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 13:38 [ECOS] fopen Bob Koninckx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).