Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc.

I wonder if its possible to use libc instead, and what kind of problems would I come up against if I went this route?

share|improve this question
That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's? – geekosaur Apr 11 '12 at 20:12
yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited! – yakamok Apr 11 '12 at 20:21
up vote 6 down vote accepted

Context: assuming from above comments that a BSDish libc is meant.

I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).

Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.

share|improve this answer
thank you very much this clarified a few things for me – yakamok Apr 11 '12 at 20:40

There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.

share|improve this answer
fantastic recommendation, i am looking into this now – yakamok Apr 11 '12 at 20:41
eglibc is virtually equivalent to glibc, for the purposes of this question. – jmtd Apr 12 '12 at 13:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.