From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3728 invoked by alias); 3 Oct 2002 22:34:32 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 3711 invoked from network); 3 Oct 2002 22:34:29 -0000 Received: from unknown (HELO deimos.hpl.hp.com) (192.6.19.190) by sources.redhat.com with SMTP; 3 Oct 2002 22:34:29 -0000 Received: from hplms2.hpl.hp.com (hplms2.hpl.hp.com [15.0.152.33]) by deimos.hpl.hp.com (8.9.3 (PHNE_24419)/HPL-PA Relay) with ESMTP id PAA22355; Thu, 3 Oct 2002 15:34:27 -0700 (PDT) Received: from napali.hpl.hp.com (napali.hpl.hp.com [15.4.89.123]) by hplms2.hpl.hp.com (8.10.2/8.10.2 HPL-PA Hub) with ESMTP id g93MYQB19758; Thu, 3 Oct 2002 15:34:27 -0700 (PDT) Received: from napali.hpl.hp.com (napali [127.0.0.1]) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) with ESMTP id g93MYQHW001271; Thu, 3 Oct 2002 15:34:26 -0700 Received: (from davidm@localhost) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) id g93MYQ5I001267; Thu, 3 Oct 2002 15:34:26 -0700 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15772.50674.642701.846853@napali.hpl.hp.com> Date: Thu, 03 Oct 2002 22:48:00 -0000 To: Ulrich Drepper Cc: davidm@hpl.hp.com, Roland McGrath , libc-hacker@sources.redhat.com Subject: Re: [patch] add alloc_pages/free_pages support In-Reply-To: <3D9CC520.8010403@redhat.com> References: <15772.47660.333934.293189@napali.hpl.hp.com> <200210032146.g93LkB119076@magilla.sf.frob.com> <15772.48947.101500.167377@napali.hpl.hp.com> <3D9CC520.8010403@redhat.com> Reply-To: davidm@hpl.hp.com X-SW-Source: 2002-10/txt/msg00026.txt.bz2 >>>>> On Thu, 03 Oct 2002 15:30:56 -0700, Ulrich Drepper said: Uli> The header still isn't right. You cannot have the hidden macros in Uli> there. OK, so what's the right way to declare a function that has both weak and strong variants? Just duplicate the proto, like so: extern size_t __gethugepagesize (void) __attribute__ ((__const__)); extern size_t gethugepagesize (void) __attribute__ ((__const__)); Uli> And the function prototypes are missing __THROW. For all three of them? --david