projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reworking internal file handling.
[fw/pdclib]
/
platform
/
example
/
functions
/
_PDCLIB
/
open.c
diff --git
a/platform/example/functions/_PDCLIB/open.c
b/platform/example/functions/_PDCLIB/open.c
index 79497266350fb49992c533adb00bd546fe2b8e5e..f0379ba64d986823fa6dc6acf37ccd3daf67570a 100644
(file)
--- a/
platform/example/functions/_PDCLIB/open.c
+++ b/
platform/example/functions/_PDCLIB/open.c
@@
-30,7
+30,7
@@
int _PDCLIB_open( char const * const filename, unsigned int mode )
here.
*/
int osmode;
- switch ( mode &
~_PDCLIB_FBIN
)
+ switch ( mode &
( _PDCLIB_FREAD | _PDCLIB_FWRITE | _PDCLIB_FAPPEND | _PDCLIB_FRW )
)
{
case _PDCLIB_FREAD: /* "r" */
osmode = O_RDONLY;