From: Andrew Lunn <andrew@lunn.ch>
To: Samie Hassan Ghauri <samiehg@hotmail.com>
CC: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Accessing File from host system's OS filesystem
Date: Thu, 12 Aug 2004 09:40:58 +0200
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