From owner-freebsd-current Mon Apr 7 12:02:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA02823 for current-outgoing; Mon, 7 Apr 1997 12:02:04 -0700 (PDT) Received: from haywire.DIALix.COM (news@haywire.dialix.com [192.203.228.65]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA02815 for ; Mon, 7 Apr 1997 12:01:57 -0700 (PDT) Received: (from news@localhost) by haywire.DIALix.COM (8.8.4/8.8.2) id DAA17313 for freebsd-current@freebsd.org; Tue, 8 Apr 1997 03:01:51 +0800 (WST) X-Authentication-Warning: haywire.DIALix.COM: news set sender to usenet-request@haywire.dialix.com using -f Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-current@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-current@freebsd.org Date: 7 Apr 1997 19:01:50 GMT From: peter@spinner.DIALix.COM (Peter Wemm) Message-ID: <860439710.357888@haywire.DIALix.COM> Organization: DIALix Internet Services References: <199704030142.BAA04433@netfl15a.devetir.qld.gov.au> Subject: Re: POLL & the Single FreeBSD'r Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <19970403095026.AM16414@uriah.heep.sax.de>, j@uriah.heep.sax.de (J Wunsch) writes: > As Stephen Hocking wrote: > >> I note that NetBSD has had the poll system call for some time. Are >> there any plans to integrate one of the few nice SYSV'isms into >> FreeBSD (it would make porting some code a snap). > > At least, it hasn't been diminished to be a bad idea. I implemented an openbsd-style implementation of poll() some time ago but it was mixed up in the middle of the upages stuff so it lot left. Since then, NetBSD have done a much better implementation, I'm very tempted to back out what I've done and start from scratch while looking at the NetBSD method. Basically, OpenBSD implemented poll() as an alternative interface to the select hooks in the kernel which means that poll() is limited to what select() can test for. NetBSD did it a lot better, by replacing the select hooks by poll hooks, and updating both front-ends to use the new poll backend. The main difference is that under NetBSD, you can poll for (say) ugent data on a socket as opposed to merely "readable". > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-)