This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Linux Synthetic Target -- How to exit eCos back to linux-shell
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 Aug 2002 14:11:23 +0200
- Subject: Re: [ECOS] Linux Synthetic Target -- How to exit eCos back to linux-shell
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
- References: <E8F83D6D2A6AD3118E0300902786A205023714F2@NTEX>
David Marqvar DAM wrote:
> We are using eCos under Linux to simulate and test our software.
> We would like to do some automated tests, and therefore need to be able to
> exit (shutdown) ecos and return to the linux-shell.
>
> Does anyone know how to do this?
You have to call the Linux version of exit(), not the eCos one. As with
all the Linux system calls, it has a cyg_hal_sys_ prefix followed by the
normal system call name, i.e. you have to call cyg_hal_sys_exit().
Martin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss