<div dir="ltr"><div><div><div>Hey,<br><br></div>as far as I know epoll is only available on freeBSD via the linux compatibility kernel + libraries layer, which is not installed by default. There is kqueue which is an arguably better event handling mechanism. There's an existing patch for such a rewrite here: <a href="http://lists.freedesktop.org/archives/wayland-devel/2013-February/007442.html">http://lists.freedesktop.org/archives/wayland-devel/2013-February/007442.html</a> from Philip Withnall. I'm not sure where this patch is supposed to be applied to as the files in it are not corresponding to libinput sources, but what he did could be done here with current libinput. Best method would probably be to write a basic abstraction on top of the polling mechanism and have individual mechanisms implementing it in stand-alone .c files.<br><br></div>My biggest hurdle right now is the mtdev dependency since that library is linux specific.<br><br></div>Thanks,<br><br>Ales<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-23 16:05 GMT-07:00 Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Nov 21, 2014 at 09:10:24PM -0700, Ales Katona wrote:<br>
> I wanted to try and compile libinput under freeBSD seeing how epoll has<br>
> been patched into kqueue on the platform, but I'm getting stopped by<br>
> configure saying it can't find EPOLL_CLOEXEC. Is this just a configure<br>
> block or is the code still linux specific?<br>
<br>
</span>how is epoll implemented in freebsd? I checked out the source, poked<br>
around a bit and even managed to find the commit (r255672) but that got<br>
reverted soon after (r255675). Best I can tell so far from the<br>
syscalls.master file is that the syscalls are just occupying space, they<br>
don't seem to do much (all the calls are simply epoll_foo(void) now).<br>
<br>
There are some references to EPOLL_CLOEXEC in the tree but svn is far to<br>
painful for me to figure out how everything fits together here, sorry.<br>
<br>
Cheers,<br>
Peter<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Feel the power of Opensource.<br>Feel the power of Free Pascal.</div>
</div>