From owner-cvs-all@FreeBSD.ORG Tue Apr 29 14:13:51 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A81137B401; Tue, 29 Apr 2003 14:13:51 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B4B43F75; Tue, 29 Apr 2003 14:13:50 -0700 (PDT) (envelope-from nectar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3TLDo0U072969; Tue, 29 Apr 2003 14:13:50 -0700 (PDT) (envelope-from nectar@repoman.freebsd.org) Received: (from nectar@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3TLDoGF072965; Tue, 29 Apr 2003 14:13:50 -0700 (PDT) Message-Id: <200304292113.h3TLDoGF072965@repoman.freebsd.org> From: Jacques Vidrine Date: Tue, 29 Apr 2003 14:13:50 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: 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 ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 21:13:51 -0000 nectar 2003/04/29 14:13:50 PDT FreeBSD src repository Modified files: lib/libc/gen check_utility_compat.c confstr.c fmtmsg.c getgrent.c getpwent.c lib/libc/include namespace.h un-namespace.h lib/libc/locale setlocale.c lib/libc/net getaddrinfo.c gethostbydns.c getnameinfo.c hesiod.c if_nametoindex.c lib/libc/nls msgcat.c lib/libc/rpc rpc_soc.c lib/libc/stdlib realpath.c lib/libc/string strerror.c strlcat.c strlcpy.c lib/libc/yp yplib.c 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. Inspired by: qpopper's interfering and buggy version of strlcpy Revision Changes Path 1.2 +3 -6 src/lib/libc/gen/check_utility_compat.c 1.8 +3 -2 src/lib/libc/gen/confstr.c 1.4 +12 -10 src/lib/libc/gen/fmtmsg.c 1.30 +2 -2 src/lib/libc/gen/getgrent.c 1.80 +5 -5 src/lib/libc/gen/getpwent.c 1.15 +2 -0 src/lib/libc/include/namespace.h 1.12 +2 -0 src/lib/libc/include/un-namespace.h 1.42 +3 -1 src/lib/libc/locale/setlocale.c 1.39 +2 -2 src/lib/libc/net/getaddrinfo.c 1.42 +4 -2 src/lib/libc/net/gethostbydns.c 1.13 +7 -5 src/lib/libc/net/getnameinfo.c 1.8 +3 -1 src/lib/libc/net/hesiod.c 1.4 +1 -1 src/lib/libc/net/if_nametoindex.c 1.46 +1 -1 src/lib/libc/nls/msgcat.c 1.12 +1 -1 src/lib/libc/rpc/rpc_soc.c 1.18 +6 -6 src/lib/libc/stdlib/realpath.c 1.12 +5 -3 src/lib/libc/string/strerror.c 1.8 +4 -1 src/lib/libc/string/strlcat.c 1.6 +4 -1 src/lib/libc/string/strlcpy.c 1.44 +1 -1 src/lib/libc/yp/yplib.c