This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: readwrite function in libc


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]