This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fopen


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]