This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: poll.h and polling stuff???
- To: tsmith at megaroms dot co dot uk
- Subject: Re: [ECOS] poll.h and polling stuff???
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 23 Jul 2001 14:05:04 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <20010723135832.agsplanning+tsmith@f9>
tsmith@megaroms.co.uk wrote:
>
> does eCos support this stuff? when i've done the ecos build there is no sys/poll.h or poll.h. what options do i have to set or do i have to go direct through the kernel?
>
> any help would be much appreciated
But everything you want to do with it should be achievable with select() -
at least in an embedded context where in general we're not talking about
many thousands of file descriptors.
Alternatively if you wanted to write it yourself, have a look at
io/fileio/current/src/select.cxx where select() is defined. poll() is just
a variant. If you did that, obviously it would be good for it to be
contributed back: http://sources.redhat.com/ecos/faq.html#contrib_how
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/