[ECOS] opendir with empty directory name?

Hong,Zhichao ZHong@transomamedical.com
Tue Mar 18 16:33:00 GMT 2008


Hi, all,
 
I am wondering what is the behavior of opendir("") in eCos fileio
implementation?  I am reading some code written by others.  And the
comment says open the current directory then code is written as
opendir(""). 
And the code seems to work as documented.  But should not this actually
be opendir(".").  I search the POSIX and various compiler
implementation.  It does not seem any of them support this kind of empty
directory.  Is this an eCos bug or a feature?

Zhichao Hong,CSDP


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



More information about the Ecos-discuss mailing list