This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: query about "select()" system call
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 6 Dec 2006 10:30:32 +0000 (UTC)
- Subject: [ECOS] Re: query about "select()" system call
- References: <1165384328.12206.10.camel@dibakar.alumnus.co.in>
On 2006-12-06, Imran Khan <imran@alumnux.com> wrote:
> As we know that in linux "select()" system call
> i.e int select(int n, fd_set *readfds, fd_set *writefds, fd_set
> *exceptfds, struct timeval *timeout)
That's not the system call, that's the libc call.
> waits for some file descriptors to change their status but if I want to
> use this function in an application running on eCos I get select() to be
> defined as shown below:
> cyg_bool (*select)(cyg_io_handle_t handle,
> cyg_uint32 which,
> CYG_ADDRWORD info);
> in the file "io/common/v2_0/include/devtab.h"
No, you don't. That's not the user-application API, that's the
kernel/driver API. The eCos application program API for
select() is the same as it is for Linux/Unix.
> which I dont think provides the same functionality as
> "select()" of Linux.
The eCos select() API is the same as Linux/Unix.
--
Grant Edwards grante Yow! Dizzy, are we
at "REAL PEOPLE" or "AMAZING
visi.com ANIMALS"?
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss