This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
opendir with empty directory name?
- From: "Hong,Zhichao" <ZHong at transomamedical dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 18 Mar 2008 10:13:59 -0500
- Subject: [ECOS] opendir with empty directory name?
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