glibc in total is about 460.000 lines of C. If we&#x27;re planning on reimplementing it as a whole that&#x27;s going to be quite an undertaking. Musl is an alternative libc that&#x27;s only about 60.000 lines of C. I don&#x27;t know exactly why libc is that much larger, as musl also aims to be a complete and POSIX compatible libc.<p>Its getaddrinfo is considerably smaller at 90 lines, and there&#x27;s no goto&#x27;s, it looks comfortably readable at a glance. Maybe a nice blog post would be to compare both implementations to find out if there&#x27;s a concrete difference in functionality and code quality.<p>edit: I should&#x27;ve looked at the 2nd Google result, it&#x27;s a complete comparison of a bunch of libc&#x27;s:<p><a href="http:&#x2F;&#x2F;www.etalabs.net&#x2F;compare_libcs.html" rel="nofollow">http:&#x2F;&#x2F;www.etalabs.net&#x2F;compare_libcs.html</a>