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]

Synthetic HAL


Hello!  
  
in ecos/packages/hal/synth/arch/current/include/hal_io.h 
the definition for open/fcntl flags are wrong; (I think) 
 
line: 349 
============== 
* open/fcntl flags */ 
 
#define CYG_HAL_SYS_O_RDONLY        0 
#define CYG_HAL_SYS_O_WRONLY        1 
#define CYG_HAL_SYS_O_RDWR          2 
#define CYG_HAL_SYS_O_CREAT       100 
#define CYG_HAL_SYS_O_EXCL        200 
#define CYG_HAL_SYS_O_NOCTTY      400 
#define CYG_HAL_SYS_O_TRUNC      1000 
#define CYG_HAL_SYS_O_APPEND     2000 
#define CYG_HAL_SYS_O_NONBLOCK   4000 
#define CYG_HAL_SYS_O_NDELAY     CYG_HAL_SYS_O_NONBLOCK 
#define CYG_HAL_SYS_O_SYNC      10000 
#define CYG_HAL_SYS_O_FSYNC     CYG_HAL_SYS_O_SYNC 
#define CYG_HAL_SYS_O_ASYNC     20000 
==================== 
 
the values should by oct not dez! 
* open/fcntl flags */ 
 
#define CYG_HAL_SYS_O_RDONLY        00 
#define CYG_HAL_SYS_O_WRONLY        01 
#define CYG_HAL_SYS_O_RDWR          02 
#define CYG_HAL_SYS_O_CREAT       0100 
#define CYG_HAL_SYS_O_EXCL        0200 
#define CYG_HAL_SYS_O_NOCTTY      0400 
#define CYG_HAL_SYS_O_TRUNC      01000 
#define CYG_HAL_SYS_O_APPEND     02000 
#define CYG_HAL_SYS_O_NONBLOCK   04000 
#define CYG_HAL_SYS_O_NDELAY     CYG_HAL_SYS_O_NONBLOCK 
#define CYG_HAL_SYS_O_SYNC      010000 
#define CYG_HAL_SYS_O_FSYNC     CYG_HAL_SYS_O_SYNC 
#define CYG_HAL_SYS_O_ASYNC     020000 
 
 
the same for  
#define CYG_HAL_SYS_S_IRUSR 
#define CYG_HAL_SYS_S_IWUSR 
#define CYG_HAL_SYS_S_IXUSR 
 
 
bye 
daniel 
 

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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