From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7112 invoked by alias); 10 Feb 2005 07:19:43 -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 6921 invoked from network); 10 Feb 2005 07:19:29 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sourceware.org with SMTP; 10 Feb 2005 07:19:29 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 6BE8F357B; Wed, 9 Feb 2005 23:19:28 -0800 (PST) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.11/8.12.9) with ESMTP id j1A7JRac009082; Wed, 9 Feb 2005 23:19:27 -0800 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.11/8.12.11/Submit) id j1A7JQRn009078; Wed, 9 Feb 2005 23:19:26 -0800 Date: Thu, 10 Feb 2005 07:19:00 -0000 Message-Id: <200502100719.j1A7JQRn009078@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Richard Henderson Cc: libc-hacker@sources.redhat.com Subject: Re: FR-V PLT audit In-Reply-To: Richard Henderson's message of Wednesday, 9 February 2005 23:06:48 -0800 <20050210070648.GA4296@twiddle.net> Emacs: the definitive fritterware. X-SW-Source: 2005-02/txt/msg00038.txt.bz2 > On Wed, Feb 09, 2005 at 10:43:48PM -0800, Roland McGrath wrote: > > Indeed, what is the motivation for using an anonymous union rather than > > each sysdeps/CPU/ldsodefs.h defining a macro for the appropriate thing? > > Or any macros at all? What's so special about the argument and result > registers that require structure names to differ by target? We don't > do that for sigcontext, or jmp_buf. I think the intent there was just that the structure member names match the names of the entry point symbols in the audit library. The reason the API for those functions uses a different name for each CPU is that the signature and what you need to know to implement it also differ for each CPU. It is not something that is ever used generically like sigcontext and jmp_buf are.