&gt; One of the core problems of Unix is this focus on textual streams.<p>&gt; ...every proc-style file<p>You&#x27;re conflating Linux with UNIX, wrt what &#x2F;proc emits[0], or if it&#x27;s even the interface to do what you think you want[1].<p>[0] <a href="https:&#x2F;&#x2F;illumos.org&#x2F;man&#x2F;4&#x2F;proc" rel="nofollow">https:&#x2F;&#x2F;illumos.org&#x2F;man&#x2F;4&#x2F;proc</a><p>[1] &#x2F;proc&#x2F;mounts vs getmntinfo(3)[2]<p>[2] <a href="https:&#x2F;&#x2F;www.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=getmntinfo" rel="nofollow">https:&#x2F;&#x2F;www.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=getmntinfo</a>