This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
non blocking serial read returns EAGAIN
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] non blocking serial read returns EAGAIN
- From: Phung Te Ha <phungte at yahoo dot com>
- Date: Thu, 19 Jul 2001 10:15:12 -0700 (PDT)
Hi everyone,
Would like to have your idea on the following:
. cyg_io_read on a serial port, previously set to non
blocking returns EAGAIN if less than buffer's len has
been read.
. This breaks the following situation:
1. set to non blocking the serial port
2. call select on the port, wait for data.
3. on return of select, call read to take the data
out.
4. let's say there's less data than buffer's len, the
dev_fo_read returns error even before setting read len
to the uio, and read returns -1, always, even when
data has been read...
My question is:
. why would cyg_io_read return error in this case?
Thanks for your idea.
Phungte
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/