This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: readwrite function in libc
- To: james chen <james_ch1 at sina dot com>
- Subject: Re: [ECOS] readwrite function in libc
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 19 Jun 2001 13:49:42 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <000201c0f87e$8de2e980$c408aa0a@inc.inventec>
james chen wrote:
>
> Hi,
>
> in the function of readwrite ( io\fileio\current\src\io.cxx)
> {
> ...
> LOCK_FILE( fp );
> ret = op( fp, &uio );
> UNLOCK_FILE( fp );
> cnt -= uio.uio_resid;
> cyg_fp_free( fp );
> CYG_CANCELLATION_POINT;
> FILEIO_RETURN_VALUE(cnt);
> }
> if ret is not equal ENOERR, this may not compatible with read() standard. Is
> there a bug in it:-)
I don't believe so given the definition of FILEIO_RETURN_VALUE, so it's up
to you to tell us where you think there is a bug and why.
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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/