<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/30/2023 10:19 PM, Eric Blake
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:casp53kvzzctqsckt6w7f66rcladfe6754rhdnvmigiuo6cwd3@svroiwgcja74">
      <pre class="moz-quote-pre" wrap="">On Wed, Aug 30, 2023 at 12:16:07PM -0500, Eric Blake wrote:
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">error[E0425]: cannot find value `EPOLL_CTL_ADD` in crate `libc`
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
<a class="moz-txt-link-freetext" href="https://www.reddit.com/r/rust/comments/65kflg/does_rust_have_native_epoll_support/">https://www.reddit.com/r/rust/comments/65kflg/does_rust_have_native_epoll_support/</a>
mentions how epoll is Linux-specific, and has comments about tokio
trying to build on top of mio in order to be platform-independent (mio
uses epoll on Linux where it is available, but does not require epoll
on other platforms).
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
So I spent a couple hours experimenting with whether I could use
mio::poll instead of epoll, and at least got things compiling on
FreeBSD with the tests still passing on Linux (I'm not quite set up to
actually prove that the tests work on FreeBSD).  Review appreciated:

<a class="moz-txt-link-freetext" href="https://listman.redhat.com/archives/libguestfs/2023-August/032464.html">https://listman.redhat.com/archives/libguestfs/2023-August/032464.html</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <p>Interesting. I tried with the <a moz-do-not-send="true"
        href="https://docs.rs/polling/latest/polling/">polling</a> crate
      in order to get a cross platform version of epoll. But the
      disconnect call failes for some reason then.</p>
    <p><br>
    </p>
    <p>I'll try to take a look at mio later today.</p>
    <p><br>
    </p>
    <p>--</p>
    <p>Best regards,<br>
      Tage</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:casp53kvzzctqsckt6w7f66rcladfe6754rhdnvmigiuo6cwd3@svroiwgcja74">
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
  </body>
</html>