From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 15 09:49:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01AAE16A418 for ; Sat, 15 Dec 2007 09:49:18 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from fhw-relay07.plus.net (fhw-relay07.plus.net [212.159.14.215]) by mx1.freebsd.org (Postfix) with ESMTP id C237813C442 for ; Sat, 15 Dec 2007 09:49:17 +0000 (UTC) (envelope-from james@mansionfamily.plus.com) Received: from [80.229.150.39] (helo=mansionfamily.plus.com) by fhw-relay07.plus.net with esmtp (Exim) id 1J3Tdz-0001Wr-Ei for freebsd-hackers@freebsd.org; Sat, 15 Dec 2007 09:49:15 +0000 Received: from [192.168.0.87] ([192.168.0.87]:1281) by mansionfamily.plus.com with [XMail 1.22 ESMTP Server] id for from ; Sat, 15 Dec 2007 09:54:34 -0000 Message-ID: <4763A398.2040109@mansionfamily.plus.com> Date: Sat, 15 Dec 2007 09:51:20 +0000 From: James Mansion Organization: MsgWare User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: kqueue and libev X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 09:49:18 -0000 Any idea what the author of libev is on about here (from http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod): unsigned int ev_recommended_backends () Return the set of all backends compiled into this binary of libev and also recommended for this platform. This set is often smaller than the one returned by |ev_supported_backends|, as for example kqueue is broken on most BSDs and will not be autodetected unless you explicitly request it (assuming you know what you are doing). and |EVBACKEND_KQUEUE| (value 8, most BSD clones) Kqueue deserves special mention, as at the time of this writing, it was broken on all BSDs except NetBSD (usually it doesn't work with anything but sockets and pipes, except on Darwin, where of course its completely useless). For this reason its not being "autodetected" unless you explicitly specify it explicitly in the flags (i.e. using |EVBACKEND_KQUEUE|). It looks like a decent library, but these comments seem unfortunate. Does anyone know what the author is concerned about? James