[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modular C library
From: |
Damian McGuckin |
Subject: |
Re: Modular C library |
Date: |
Fri, 30 Dec 2022 00:03:01 +1100 (AEDT) |
Hi,
On Thu, 29 Dec 2022, Alejandro Colomar wrote:
Every time I try to patch glibc, I come again to this idea: the standard
C library is doomed to be a mess, because the standard mandates it.
I'm considering writing a new C library that is designed as a hurd of
microlibraries, which can be replaced independently. One could
mix'n'match each of those microlibraries, since they would only rely on
the public interface of other functions, so implementation details would
matter very little. The headers would be organized and split, into
(relatively-deep) directory trees.
I'll write the functions with a c_ prefix, so that I'm able to reserve all
c_* identifiers for use by this library, and all headers will start with
<c/*>.
With that, this library will be able to live side-by-side with any libc; and
in fact will need it while it's incomplete and it's not the default system
library.
So far, I'll make my recent libstp be one of these micro libraries.
If you're interested in it, I'll open a public git repo for it.
Do not these exist? One of them is called MUSL designed as a drop-in
replacement for glibc.
Or have I mis-understood - Damian