This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Native file access under eCos synthetic
- From: Dominique Henry de Villeneuve <d dot devilleneuve at ri dot silicomp dot fr>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 07 Dec 2001 12:14:12 +0100
- Subject: Re: [ECOS] Native file access under eCos synthetic
- Organization: Silicomp Research Institute
- References: <3BF4ED44.3ABEB31E@ri.silicomp.fr> <20011116114549.Q16434@biferten.ma.tech.ascom.ch>
Andrew Lunn wrote:
>
> On Fri, Nov 16, 2001 at 11:41:08AM +0100, Dominique Henry de Villeneuve wrote:
> > Hi,
> >
> > I need to perform some basic operations on native files.
> > Is there already a way to do this?
> > I use an eCos configuration with linux target and elix template.
> >
> > thanks,
> > Dominique
>
> Yes, its possible. You need to use the cyg_hal_sys_* functions in
> hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S.
>
> This gives you access to kernel system calls. Be careful not to do any
> blocking calls.
>
> Andrew
Thanks, it works fine.
Now i need to get the full pathname of a file.
I call for that cyg_hal_sys_getcwd() declared in <cyg/hal/hal_io.h>:
externC char * cyg_hal_sys_getcwd(char * buf, size_t size);
I have a problem at link-edit.
The symbol is unresolved.
It is not found in libtarget.a either.
Thanks,
Dominique