>Trying to understand the source tree of C library I came with this questions:
>- /usr/src/lib/libc is the C library, but what is /usr/src/lib/libbc ?

libc is indeed the C (and thread) library.

libbc is the "backward compatibility" library which is present only
on SPARC; it's a C library in Solaris native format but implementing
the SunOS 4.x runtime.

>- I found several sources for malloc.c like /libc/port/gen/malloc.c, 
>lib/libmalloc/common/malloc.c
. Do you know the difference between malloc found in libc and malloc found in 
libmalloc? Which is preferrable?

You can't use the one from libbc; it's different because different allocators
have different corner cases which cause portability headaches.

>- Is it possible to build only the library's part of the source tree, i.e 
>/usr/src/lib/libc?

Yes, but only by properly setting up your environment.

Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to