Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
3  
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
add comment

2 Answers

up vote 3 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
add comment

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
add comment

Your Answer

 
discard

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.