Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 1995 00:05:32 -0600 (CST)
From:      TR Nguyen <>
Subject:   Asynch I/O: poll(2)/select(2)
Message-ID:  <>

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

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

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

Want to link to this message? Use this URL: <>