This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: query about "select()" system call


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


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