Haris wrote:
Hi,
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 ?
libbc is the SunOS 4.x binary compatibility shared library. It should
never be touch modulo build fixes since it represents history by defintion.
In general that just isn't a library most people need to worry about.
- 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?
There are lots of malloc implementations around. Why ? because when it
comes to memory management there just isn't a one size fits all from the
implementation view.
libmalloc is separate to libc.
- Is it possible to build only the library's part of the source tree, i.e
/usr/src/lib/libc?
Sure is and I've done this a lot when working on libc changes. The much
tricker part with libc of course is testing it out by putting it in
place without trashing your system :-) Of course for testing this is a
good use of $LD_LIBRARY_PATH.
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code