This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
query about "select()" system call
- From: Imran Khan <imran at alumnux dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 06 Dec 2006 11:22:08 +0530
- Subject: [ECOS] query about "select()" system call
Hi all,
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)
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"
which I dont think provides the same functionality as "select()" of
Linux.
So can you people please suggest me whether I am correct or not and if I
am correct ,is there any api corresponding to select() of linux.
Looking for your valuable suggestion,
Thanks in advance,
Imran Khan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss