This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problem in using cyg_hal_sys_read
- To: dorai at sasken dot com
- Subject: Re: [ECOS] problem in using cyg_hal_sys_read
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 09 Feb 2001 17:42:10 +0000
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <3A828DD3.DBD35179@sasken.com>
Dorairaj V wrote:
>
> Hi ,
> I'm using the ecos api cyg_hal_sys_read() to read from a named pipe in
> a linux based synthetic target (ecos 1.3.1 on i386 linux RHL 6.2 ) . I
> find that cyg_hal_sys_read fails and returns error number -4 .
> Can some one let me know what does the error code mean ? Also where can
> I get a comprehensive list of ecos error codes and their meanings .
This isn't an eCos error code, it's a linux kernel error code, and
correlates with what is in /usr/include/asm/errno.h. So -4 would be EINTR,
which means you probably ctrl-C'd the app.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine