cvs commit: src/lib/libc/gen check_utility_compat.c confstr.c
fmtmsg.c getgrent.c getpwent.c src/lib/libc/include namespace.h
un-namespace.h src/lib/libc/locale setlocale.c src/lib/libc/net
getaddrinfo.c gethostbydns.c getnameinfo.c hesiod.c ...
Jacques A. Vidrine
nectar at FreeBSD.org
Tue Apr 29 18:57:51 PDT 2003
On Tue, Apr 29, 2003 at 05:20:14PM -0700, David O'Brien wrote:
> On Tue, Apr 29, 2003 at 11:49:09PM +0200, Dag-Erling Smorgrav wrote:
> > Jacques Vidrine <nectar at FreeBSD.org> writes:
> > > Log:
> > > `Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
> > > technique) so that we don't wind up calling into an application's
> > > version if the application defines them.
> > We should probably do this for every libc function that is used within
> > libc...
> No we shouldn't. If I understand you correctly, it prevents me from
> linking in my own malloc()/free() and having the entire system use it.
It just means that you'd have to name your implementations e.g.
_malloc and _free, also. But still, I suppose you have a point ...
there /may/ be some functions that /should not/ be `hidden'.
Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal
nectar at celabo.org . jvidrine at verio.net . nectar at freebsd.org . nectar at kth.se
More information about the cvs-all