]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
authorJacques Vidrine <nectar@FreeBSD.org>
Tue, 29 Apr 2003 21:13:50 +0000 (21:13 +0000)
committerJacques Vidrine <nectar@FreeBSD.org>
Tue, 29 Apr 2003 21:13:50 +0000 (21:13 +0000)
commit5723e501abb675701352eb3e9fd58bb3cc2c649d
treee9749f1ff2693755bce73e10528fc8cc6a6563ea
parenta8b5a9cd120e319cacf1c68e4a257e6955e0d5d6
`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.

Inspired by: qpopper's interfering and buggy version of strlcpy
20 files changed:
lib/libc/gen/check_utility_compat.c
lib/libc/gen/confstr.c
lib/libc/gen/fmtmsg.c
lib/libc/gen/getgrent.c
lib/libc/gen/getpwent.c
lib/libc/include/namespace.h
lib/libc/include/un-namespace.h
lib/libc/locale/setlocale.c
lib/libc/net/getaddrinfo.c
lib/libc/net/gethostbydns.c
lib/libc/net/getnameinfo.c
lib/libc/net/hesiod.c
lib/libc/net/if_nametoindex.c
lib/libc/nls/msgcat.c
lib/libc/rpc/rpc_soc.c
lib/libc/stdlib/realpath.c
lib/libc/string/strerror.c
lib/libc/string/strlcat.c
lib/libc/string/strlcpy.c
lib/libc/yp/yplib.c