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]

POSIX FileIO


Hello! 
 
I can't open/create a file under synth-target linux; because there is a
assert in 
cyg_fd_alloc. 
 
I'm using: (cvs download from 2004/04/02) 
Target: linux 
Template: posix 
 
I've tried to create a file: 
... open("test.dat",O_CREAT | O_WRONLY );... 
 
the output: 
================= 
ASSERT FAIL: <2>fd.cxx[209]<nofunc>() fd out of range 
ASSERT FAIL: <2>[209]<nofunc>() fd out of range 
================= 
 
in /ecos/packages/io/fileio/current/src/file.cxx 
function: open 
line 6458:   
... 
fd=cyg_fd_alloc(0); 
... 
 
is the "0" right? 
because in /ecos/packages/io/fileio/current/src/fd.cxx: 
function: cyg_fd_alloc 
line 6424: 
... 
CYG_ASSERT(((0 < low) && (low<CYGNUM_FILEIO_NDF)),"fd out of range"); 
... 
 
or is this assert wrong? and should be 0<=low ?? 
 
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]