https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412011-10-19T21:08:55Zlighty labsLighttpd2 - Bug #2356: Check for cpu_set_t in configure scriptshttps://redmine.lighttpd.net/issues/2356?journal_id=76302011-10-19T21:08:55Zdeif
<ul></ul><p>icy wrote:</p>
<blockquote>
<p>uClibc doesn't provide cpu_set_t it seems at least someone on IRC was using it and the compiler complained about it.</p>
<p>We should check for it's existance during configure time.</p>
</blockquote>
<p>Yes, it was me. I forgot to report it.<br />Compilation continued when I edited 'plugin_core.c' around line 1950 changing '#if defined(LIGHTY_OS_LINUX)' by '#if 0'.<br />I read somewhere that the versions of uClibc which don't support cpu_set_t are 0.9.28.x and lower.</p>
<p>Lighttpd2 is working fine AFAIK. Static pages, php, fastcgi all work.<br />I had some problems with mod_dirlist though (seemingly random), but I gave up and replaced it with a PHP script.</p> Lighttpd2 - Bug #2356: Check for cpu_set_t in configure scriptshttps://redmine.lighttpd.net/issues/2356?journal_id=125762021-08-09T08:59:05Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Wontfix</i></li></ul><p>It seems uClibc is quite dead, and I couldn't find any documentation which linux specific APIs they support and in what release (they only list <a class="external" href="https://uclibc.org/specs.html">https://uclibc.org/specs.html</a> as standards they aim to support).</p> Lighttpd2 - Bug #2356: Check for cpu_set_t in configure scriptshttps://redmine.lighttpd.net/issues/2356?journal_id=125772021-08-09T11:49:35Zgstrauss
<ul></ul><p>uClibc is still alive at <a class="external" href="https://uclibc-ng.org/">https://uclibc-ng.org/</a> and uClibc-ng supports <code>sched_getaffinity()</code> and <code>sched_setaffinity()</code> (and has <code>cpu_set_t</code>) (at least in the latest release (1.0.38) that I looked at)</p>
<p>Another popular embedded libc is musl. musl libc supports <code>sched_getaffinity()</code> and <code>sched_setaffinity()</code> (and has <code>cpu_set_t</code>)</p>