Date: Fri, 17 Mar 1995 19:58:50 -0800 (PST) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: davidg@Root.COM Cc: bde@zeta.org.au, CVS-commiters@freefall.cdrom.com, cvs-sys@freefall.cdrom.com Subject: Re: cvs commit: src/sys/libkern locc.c random.c scanc.c skpc.c libkern.h Message-ID: <199503180358.TAA20189@gndrsh.aac.dev.com> In-Reply-To: <199503180236.SAA00333@corbin.Root.COM> from "David Greenman" at Mar 17, 95 06:35:59 pm
next in thread | previous in thread | raw e-mail | index | archive | help
>
> >>> > <libkern/libkern.h> has moved to <sys/libkern.h> (repository copy).
> >>>
> >>> Why?
> >>>
> >>because we have no /usr/include/libkern.h
> >
> >But we have <libkern/libkern.h>.
> >
> >Why do we have a libkern/inet_ntoa.c that is not the same as
> >libc/net/inet_ntoa.c? libkern is supposed to contain copies of library
> >source files.
>
> NOT! IMNSHO, copying files out of libc for the kernel is extremely evil.
That was what Berkeley intended when they did this, if you have doubts go
read /usr/src/lib/libc/Makefile, targets libkern:, libkern.gen, and
libkern.${MACHINE}... the one of real interest here is:
libkern.gen: ${KQSRCS} ${KSRCS}
cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern
And KQSRCS and KSRCS are:
KQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
KSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
strlen.c strncpy.c
inet_ntoa.c was recently added by Garrett, who probably did not know to
go update these unused rules in libc/Makefile. It also appears
that Garrett wrote they one in libkern from scratch and is claiming
copy right on it, and from looking at the two he has a right to that
copyright.
--
Rod Grimes rgrimes@gndrsh.aac.dev.com
Accurate Automation Company Custom computers for FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503180358.TAA20189>
