From owner-freebsd-arch@freebsd.org Sun Oct 2 14:13:21 2016 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83268ADCE2F for ; Sun, 2 Oct 2016 14:13:21 +0000 (UTC) (envelope-from lew@perftech.com) Received: from smtp-gw.pt.net (smtp-gw.pt.net [206.210.194.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-gw.pt.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5153CB3F for ; Sun, 2 Oct 2016 14:13:21 +0000 (UTC) (envelope-from lew@perftech.com) X-ASG-Debug-ID: 1475417474-09411a12c01172650001-RYubVt Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by smtp-gw.pt.net with ESMTP id OztJWycFibDEeUrq (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 02 Oct 2016 09:11:14 -0500 (CDT) X-Barracuda-Envelope-From: lew@perftech.com X-Barracuda-Effective-Source-IP: mail.pt.net[206.210.194.11] X-Barracuda-Apparent-Source-IP: 206.210.194.11 Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 2BF3D8425F3; Sun, 2 Oct 2016 09:11:14 -0500 (CDT) Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id s2eOkG-jyUhM; Sun, 2 Oct 2016 09:11:13 -0500 (CDT) Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id E00A68425FF; Sun, 2 Oct 2016 09:11:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at pt.net Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id DL85Fs0hPaVX; Sun, 2 Oct 2016 09:11:13 -0500 (CDT) Received: from lewhome-dhcp-179.pt.net (lewhome-dhcp-179.pt.net [206.210.207.179]) (Authenticated sender: lew@pt.net) by mail.pt.net (Postfix) with ESMTPSA id 8FE5B8425F3; Sun, 2 Oct 2016 09:11:13 -0500 (CDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: mq on kqueue broken after upgrade to FreeBSD 11 From: Lewis Donzis X-ASG-Orig-Subj: Re: mq on kqueue broken after upgrade to FreeBSD 11 In-Reply-To: <20161002132242.GA2628@stack.nl> Date: Sun, 2 Oct 2016 09:11:12 -0500 Cc: Konstantin Belousov , deischen@freebsd.org, freebsd-arch@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7A72D37B-6C57-41FE-893F-592235A19D9D@perftech.com> References: <8A6CD0D3-C4D5-40DF-B2AD-4C454CC88AD1@perftech.com> <20160930094544.GP38409@kib.kiev.ua> <19A6EEAA-C68E-4DAD-B98F-4D904734BD8B@perftech.com> <20160930152006.GS38409@kib.kiev.ua> <20160930184418.1047afc2@kan> <20161001092515.GW38409@kib.kiev.ua> <20161001201655.GA91457@stack.nl> <20161001210722.GC38409@kib.kiev.ua> <20161001231524.GB91457@stack.nl> <20161002114613.GE38409@kib.kiev.ua> <20161002132242.GA2628@stack.nl> To: Jilles Tjoelker X-Mailer: Apple Mail (2.3124) X-Barracuda-Connect: mail.pt.net[206.210.194.11] X-Barracuda-Start-Time: 1475417474 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://smtp-gw.pt.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1111 X-Virus-Scanned: by bsmtpd at pt.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.33405 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2016 14:13:21 -0000 > On Oct 2, 2016, at 8:22 AM, Jilles Tjoelker wrote: >=20 > On Sun, Oct 02, 2016 at 02:46:13PM +0300, Konstantin Belousov wrote: >> On Sun, Oct 02, 2016 at 01:15:24AM +0200, Jilles Tjoelker wrote: >>> On Sun, Oct 02, 2016 at 12:07:22AM +0300, Konstantin Belousov wrote: >>>> On Sat, Oct 01, 2016 at 10:16:55PM +0200, Jilles Tjoelker wrote: >>>>> The idea is good, but perhaps call the function mq_getfd_np() to = clarify >>>>> it returns a file descriptor. Also, the __ versions should not be >>>>> exported since they are not used outside the library (they can be >>>>> exported if and when needed). >=20 >>> Please rename timer_oshandle_np() to timer_getfd_np() as well. >> The timer handle is not an fd, so I kept the old name. Using >> _getfd there is IMO more confusing than the neutral _handle for >> mq. >=20 > Oh right, the timers are not file descriptors. Technically, neither are mqueues. The only thing "the int" can be used = for is select(), poll(), and kevent(). You can=E2=80=99t (or at least = shouldn=E2=80=99t) pass it to any of the other system calls that accept = fds. lew=