From owner-freebsd-x11@freebsd.org Thu Dec 21 19:16:25 2017 Return-Path: Delivered-To: freebsd-x11@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 81D3DE84403 for ; Thu, 21 Dec 2017 19:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6981C744A9 for ; Thu, 21 Dec 2017 19:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 66156E84402; Thu, 21 Dec 2017 19:16:25 +0000 (UTC) Delivered-To: x11@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 65C21E84401 for ; Thu, 21 Dec 2017 19:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38E34744A7 for ; Thu, 21 Dec 2017 19:16:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBLJGO5S031479 for ; Thu, 21 Dec 2017 19:16:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 223530] devel/libepoll-shim: Update version Date: Thu, 21 Dec 2017 19:16:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jan.kokemueller@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 19:16:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223530 Jan Kokem=C3=BCller changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.kokemueller@gmail.com --- Comment #10 from Jan Kokem=C3=BCller --- I'm the original author of the epoll-shim library. Please, if you have improvements to the library, or are seeing a bug, post an issue or PR on Gi= thub -- I've seen the freebsd-desktop branch and merged it almost a year ago. The original reason for this lib was really just supporting libinput. I've tried to port libinput to kqueue/kevent directly, but then I thought a small epoll wrapper would be better -- the code changes to upstream could be kept= to a minimum. Also, more Wayland related projects use epoll, so in theory they should 'ju= st work' with this library. I haven't really tried to get Wayland to work yet = on my side, but it is definitely also a goal of this library. For example, I've added support for polling a DRM device. In FreeBSD, those devices don't sup= port kqueue yet, just poll, and therefore require a special hack in epoll-shim. In general, the library should be quite useful if you need epoll as long as= you don't do anything too fancy. That said, there are still some limitations: - forget fork/exec behavior as in Linux... - no edge triggering or other 'fancy' flags (EPOLLET, EPOLLONESHOT, EPOLLEXCLUSIVE...) - no eventfd support yet (but who uses this, anyway?) - there is just support for _one_ poll/DRM device per process (yes, I know it's currently a giant hack but it seemed to work). - I define 'read' and 'close' macros that point to functions of the library because signalfd and timerfd need some special handling. This is ugly, but I haven't found a more elegant way yet. This means that you cannot really call vanilla 'read'/'close' on timer- and signalfds in some other translation un= it and expect everything to keep working properly. Luckily, libinput does not = do this. - Each timerfd spawns a thread doing some custom timer/signal stuff because EVFILT_TIMER does not really support the itimer interface very well. --=20 You are receiving this mail because: You are the assignee for the bug.=