From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1190 invoked by alias); 8 Apr 2010 22:36:52 -0000 Received: (qmail 1168 invoked by uid 22791); 8 Apr 2010 22:36:51 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Apr 2010 22:36:47 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o38MafR0009274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Apr 2010 18:36:41 -0400 Received: from myware71.akkadia.org (vpn-236-205.phx2.redhat.com [10.3.236.205]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o38Maafa006091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Apr 2010 18:36:36 -0400 Message-ID: <4BBE5A73.9080600@redhat.com> Date: Thu, 08 Apr 2010 22:36:00 -0000 From: Ulrich Drepper User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4 MIME-Version: 1.0 To: libc-hacker@sourceware.org Subject: Re: [PATCH] Don't call uname or getrlimit in libpthread init function References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00006.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/08/2010 02:42 AM, Andreas Schwab wrote: > The libpthread init function calls uname and getrlimit, which means they > are called just by being linked against it, even if the program does not > use any of the libpthread functions, thus may use the function names for > its own purpose. No, uname belongs to the namespace to the implementation. You cannot just overload it. Why on earth should this be allowed? Somebody overloading the function has to know what s/he does. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAku+WnMACgkQ2ijCOnn/RHTJDQCgt1FFA25UxSXZ/m8SSmo3zmFi VF4AnjdisA/9QcZcVTNoP87V4n3eUZVk =1+2h -----END PGP SIGNATURE-----