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]

Re: cyg_mtab_lookup()


Roland Caßebohm <roland.cassebohm@visionsystems.de> writes:

> Ooops, I haven't seen this. My problem seems to be that the current directory 
> is not initialized. It is a NULL pointer.
> I think in the constructor 
> 
> Cyg_Fileio_Init_Class::Cyg_Fileio_Init_Class()
> {
>     cyg_fd_init();
> 
>     cyg_mtab_init();
> 
>     chdir("/");
> }
> 
> the current directory should be initialized. I haven't a real filesystem, so 
> chdir() can't find the "/" entry and left cdir_mtab_entry at NULL.
> 

Which is fine. With no file systems there can be no current
directory. You cannot use relative filenames, because there is nothing
for them to be relative to.

What exactly are you trying to do that trips over the NULL current
directory?


-- 
Nick Garnett - eCos Kernel Architect


--
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]