Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 1995 00:05:32 -0600 (CST)
From:      TR Nguyen <nguyen@omega.uta.edu>
To:        freebsd-questions@FreeBSD.org
Subject:   Asynch I/O: poll(2)/select(2)
Message-ID:  <199503160605.AAA00657@omega.uta.edu>

next in thread | raw e-mail | index | archive | help

Hello everyone,
I think this is more of a developmental issue than anything else.

On SystemV unices, the system call poll(2) is used for multiple file
descriptor polling, and select(2) is implemented on top of poll(2).

I'm used to the Alpha runing OSF/1 (POSIX compliant). For many reasons
I've always preferred poll(2) over select(2)

When porting my code to FreeBSD, I wrote my own version of poll
by translating poll(2)'s argument to select()'s format.
call select(2) to poll my file descriptors,
then translate select(2)'s result back to the format used by poll(2).

This works fine, but I'm wondering if someone did this before.
I would appreciate some examples (other than my own), preferably
a kernel-level implementation, rather than at the Programmer Interface
Level (API). I'm very interested in the most efficient implementation
possible.

I am aware that FreeBSD is striving to become POSIX compliant.
(1003.1? 1003.4?) 
Anyone out there with some knowlege/rumor to share?

Thank.
TR Nguyen
PS. I apologize for not posting to the developmental-related list.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503160605.AAA00657>