Ask Your Question
0

bsd libc on Linux

asked 2018-07-28 00:16:18 -0500

anand_ gravatar image

Is there a port of bsd native standard c library on Linux? or is it possible to port it...compile and install?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2018-07-28 02:29:25 -0500

fcomida gravatar image

In Unix and Unix like Operating Systems the standard c library is considered part of the operating system itself, in fact it's mostly a wrapper around the kernel system calls. That means almost every program is linked against the c library and that a different implementation targeting a different kernel won't work. The standard implementation adopted by many Linux distribution is GNU libc (glibc) which is considered slow and bloated by many. There are other implementations targeting the Linux Kernel such as dietlibc, uClibc, musl mainly used in embedded systems. The bottom line is that you can't replace the standard C library just replacing the existing implementation using the package manager or compiling a new one from the source code, you MUST compile every program with it. Anyway there are general purpose distributions (Void Linux is one of them) which offer a different libc implementation (musl in this case) as an alternative to glibc.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-07-28 00:16:18 -0500

Seen: 181 times

Last updated: Jul 28 '18