[ECOS] cyg_mtab_lookup()

Nick Garnett nickg@calivar.demon.co.uk
Tue Jun 25 14:02:00 GMT 2002


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



More information about the Ecos-discuss mailing list