From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11461 invoked by alias); 16 Sep 2002 16:52:59 -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 11444 invoked from network); 16 Sep 2002 16:52:59 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 16 Sep 2002 16:52:59 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g8GGqv819947 for ; Mon, 16 Sep 2002 12:52:57 -0400 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5) with ESMTP id g8GGquWQ019143 for ; Mon, 16 Sep 2002 13:52:56 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id g8GGqudv019137; Mon, 16 Sep 2002 13:52:56 -0300 To: GNU libc hacker Subject: Re: Fix _exit for Linux References: From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Mon, 16 Sep 2002 09:52:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-09/txt/msg00039.txt.bz2 On Sep 16, 2002, Andreas Jaeger wrote: > Alexandre Oliva writes: >> On Sep 16, 2002, Andreas Jaeger wrote: >> >>> +libc_hidden_def (_exit) >> >> Hmm. I don't think this is right. libc_hidden_proto (_exit) is >> commented out in include/unistd.h, so, if my understanding is correct, > In that case it couldn't have worked before, have a look at > sysdeps/unix/_exit.S, I just copied the declarations from there and > that was the default used before AFAIK. I found that confusing too. But the difference is that in the assembly implementation, the prototype declaration doesn't matter, as it is the assembly code that determines the symbol name in the function definition, whereas in C it is the prototype declaration that has the symbol renamed. > Please send a patch, As soon as I get confirmation on whether we're to actually hide _exit() or not. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer