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: Accessing File from host system's OS filesystem


On Wed, Aug 11, 2004 at 10:28:31PM +0000, Samie Hassan Ghauri wrote:
> Hi
> I am running eCos on my PC on which Windows XP is installed. I want to 
> parse a BMP file in an application I wrote in ANSI C, which I now want to 
> port to eCos. I have read how fileio system in the reference guide, but 
> still not sure how to read the BMP file that is saved in host system's OS 
> filesystem.
>
> Can anyone share some fragment of code if somebody ever opened a file from 
> native hard disk so that will serve as an example for me to follow?

There is no support for NTFS in eCos. Only FAT is supported. So this
is not possible. Maybe you can make a romfs and put the BMP file into
that and make it part of the image. Take a look at the romfs test case
for an example how to do this.

        Andrew

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