>The linux kernel does not depend on the c library. In fact it is the
>other way around: the facilities offered by the C library depend on the
>Linux kernel. The only dependence I know of the linux kernel (2.4.X)
>is the dependence of the adaptec 29XX driver on libdb-1.X, but even
>that dependence can be removed by using the old-29xx driver instead of
>the new one. In simple language, you can build a linux kernel even when
>the c library is not around, provided that you use only statically linked
>development tools.
doc,
alam ko po na walang sinasabi sa Documentaion/Changes na kailangan ang isang specific
version ng libc. and being a programming student, i have browsed the files of the
kernel source before to learn some coding techniques and style, and if i remember it
right, there r include statements like:
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
and fucntion calls like fprintf, write, close, fputc, etc. these r obviously calls to
the functions in the c library (libc).
pero dahil sa nabuksan ang topic na ito, i did my assignment. heto po ang resulta
(partial) ng "grep -ri stdio.h /usr/src/linux":
linux/fs/udf/crc.c:#include <stdio.h>
linux/fs/udf/directory.c:#include <stdio.h>
linux/fs/udf/misc.c:#include <stdio.h>
linux/fs/udf/udftime.c:#include <stdio.h>
linux/net/khttpd/make_times_h.c:#include <stdio.h>
linux/drivers/net/hamradio/soundmodem/gentbl.c:#include <stdio.h>
linux/drivers/net/zlib.c:# include <stdio.h>
linux/drivers/char/conmakehash.c:#include <stdio.h>
linux/drivers/char/ip2/ip2mkdev.c:#include <stdio.h>
linux/drivers/char/ip2/ip2stat.c:#include <stdio.h>
linux/drivers/char/ip2/ip2trace.c:#include <stdio.h>
linux/drivers/scsi/cpqioctl.c:#include <stdio.h>
linux/drivers/sound/bin2hex.c:#include <stdio.h>
linux/drivers/sound/hex2hex.c:#include <stdio.h>
linux/drivers/pci/gen-devlist.c:#include <stdio.h>
linux/drivers/isdn/hisax/rawhdlc.c:#include <stdio.h>
linux/drivers/zorro/gen-devlist.c:#include <stdio.h>
linux/drivers/atm/fore200e_mkfirm.c:#include <stdio.h>
linux/arch/i386/boot/tools/build.c:#include <stdio.h>
maybe it is more appropriate to say that the kernel does not depend on any specific
version of libc, but does not depend on libc, hindi ko po maintindihan. meron po bang
kasamang c library yung kernel pacakage? educate me pls.
__________________________________
www.edsamail.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]