shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

245
active users

#manpagemonday

0 posts0 participants0 posts today
Peter Hosey<p>Today on <a href="https://mastodon.social/tags/ManpageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManpageMonday</span></a>: Did you know that macOS has parallel versions of the standard C qsort functions? They're drop-in compatible but may attempt to use multiple threads to do the sort.</p><p><a href="https://manp.gs/mac/3/psort" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">manp.gs/mac/3/psort</span><span class="invisible"></span></a></p><p>(Though if you're using something higher-level like Cocoa, you should probably use its own sort APIs rather than try to outsmart them.)</p><p><a href="https://mastodon.social/tags/ManpageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManpageMonday</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a></p>
Peter Hosey<p>macOS (and OpenBSD and FreeBSD) has a “timing-safe” byte-comparison function: <a href="https://manp.gs/mac/3/timingsafe_bcmp" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">manp.gs/mac/3/timingsafe_bcmp</span><span class="invisible"></span></a></p><p>It's common for byte-comparison functions like memcmp to early-terminate when a difference is found. This function always examines the whole of the two byte sequences in order to not enable certain timing attacks.</p><p><a href="https://mastodon.social/tags/ManpageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManpageMonday</span></a> <a href="https://mastodon.social/tags/cryptography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cryptography</span></a></p>
Peter Hosey<p>Today's <a href="https://mastodon.social/tags/ManpageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManpageMonday</span></a>: Did you know macOS has a printf construction kit? <a href="https://manp.gs/mac/3/new_printf_domain" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">manp.gs/mac/3/new_printf_domain</span><span class="invisible"></span></a></p><p>Apparently glibc lets you actually modify the standard printf (😱). macOS's version gives you a separate configurable printf.</p><p><a href="https://mastodon.social/tags/ManpageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManpageMonday</span></a></p>
Peter Hosey<p>Let's bring back <a href="https://mastodon.social/tags/ManPageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManPageMonday</span></a>.</p><p>My pick for today is the manpage for checkint.h: <a href="https://manp.gs/mac/3/check_int32_add" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">manp.gs/mac/3/check_int32_add</span><span class="invisible"></span></a></p><p>These functions enable C programmers to do integer addition, subtraction, multiplication, and division and detect when those operations overflow.</p><p><a href="https://mastodon.social/tags/ManPageMonday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManPageMonday</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a></p>