Whole-known-network
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> oh you're right! that's on me then >.></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> I am probably a bad person for saying this, but this is cool as shit and I would absolutely use this. 😶🌫️</p>
<p>> There are additional benefits to this approach:<br />> <br />> * The old libstdc++ documentation calls this **the cool way**.</p><p>(stares)</p>
<p>> libio is the glibc component which implements the foundations of FILE * streams support (printf and scanf are part of the stdio-common subdirectory.)<br />><br />> Although libio is written in C, its streams are extensible with C++ classes.</p><p>glibc is doing *what*</p>
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> </p><p>this is where glibc makes the decision: <a href="https://github.com/bminor/glibc/blob/9c0903fb7388f645d23b26160ed3669a116189fe/libio/filedoalloc.c#L74-L107" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/bminor/glibc/blob/9</span><span class="invisible">c0903fb7388f645d23b26160ed3669a116189fe/libio/filedoalloc.c#L74-L107</span></a></p><p>this is where musl doesn't make a decision: <a href="https://github.com/bminor/musl/blob/master/src/stdio/stdout.c#L8" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/bminor/musl/blob/ma</span><span class="invisible">ster/src/stdio/stdout.c#L8</span></a></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> <span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> interesting thanks, i’ll look at that!</p>
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> i looked it up out of curiosity and musl always has the buffer size for stdout set to 8192, so while i haven't specifically tested it, i think `unbuffer` won't work with musl-built binaries</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@film_girl" class="u-url mention">@<span>film_girl</span></a></span> that’s the exact same breakfast meal I get when traveling. I like your choices.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@film_girl" class="u-url mention">@<span>film_girl</span></a></span> love those days</p>