From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SiZ0T-00072J-DO for garchives@archives.gentoo.org; Sat, 23 Jun 2012 22:40:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97CAFE090A; Sat, 23 Jun 2012 22:40:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 65352E090A for ; Sat, 23 Jun 2012 22:40:33 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2F6E1B4024 for ; Sat, 23 Jun 2012 22:40:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7CC73E5436 for ; Sat, 23 Jun 2012 22:40:31 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1340491126.84b955a043a8962aaef8feab29ac66d21874af81.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsandbox/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsandbox/libsandbox.c X-VCS-Directories: libsandbox/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 84b955a043a8962aaef8feab29ac66d21874af81 X-VCS-Branch: master Date: Sat, 23 Jun 2012 22:40:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8bd7a119-ef1c-49b5-9c62-188e0325adc9 X-Archives-Hash: 273263eac2b85b8ecde093751a42d0ae commit: 84b955a043a8962aaef8feab29ac66d21874af81 Author: Mike Frysinger gentoo org> AuthorDate: Fri Jun 22 21:42:37 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Jun 23 22:38:46 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sandbox.git;a= =3Dcommit;h=3D84b955a0 libsandbox: kill off SB_MEM_DEBUG The mcheck/mtrace logic assumes we're using glibc's memory allocator, but that hasn't been true for sometime (we use our own based on mmap and such), so this code no longer serves a purpose. Punt it. Signed-off-by: Mike Frysinger gentoo.org> --- libsandbox/libsandbox.c | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c index eac134e..60d4614 100644 --- a/libsandbox/libsandbox.c +++ b/libsandbox/libsandbox.c @@ -10,18 +10,11 @@ * as some of the InstallWatch code was used. */ =20 -/* Uncomment below to enable memory debugging. */ -/* #define SB_MEM_DEBUG 1 */ - #define open xxx_open #define open64 xxx_open64 =20 #include "headers.h" =20 -#ifdef SB_MEM_DEBUG -# include -#endif - #undef open #undef open64 =20 @@ -74,16 +67,6 @@ static void init_env_entries(char ***, int *, const ch= ar *, const char *, int); =20 const char sbio_fallback_path[] =3D "/dev/tty"; =20 -#ifdef SB_MEM_DEBUG -__attribute__((constructor)) -void libsb_init(void) -{ - save_errno(); - mtrace(); - restore_errno(); -} -#endif - /* resolve_dirfd_path - get the path relative to a dirfd * * return value: