From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10211282355.AA05835@clio.rice.edu> Subject: Re: _Exit function [PATCH] To: djgpp-workers AT delorie DOT com Date: Thu, 28 Nov 2002 17:55:48 -0600 (CST) In-Reply-To: <3DE6778F.108A69D1@phekda.freeserve.co.uk> from "Richard Dawe" at Nov 28, 2002 08:07:43 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > added to include/libc/stubs.h: > > #define _Exit _exit > > It would be a new use (abuse?) of libc/stubs.h > > Yuck. 8) > > We could just write the stub in assembler. There are a couple of functions > like that already - stricmp assembler stub calls strcasecmp (or maybe > vice-versa). Of course (ab)using include/libc/stubs.h would get this written > automatically. An alternative would be to copy/modify the current stub code and create a new libc/aliases.h - and have it do the same thing. There are a bunch of modules we could make go away ... > I think I prefer the explicitly-written stub. Hmmm, maybe I should rewrite > _Exit to use an assembler stub like stricmp/strcasecmp. Why not have all of these automatically written? Adding one line to a file seems easier than adding a module and a line to a makefile. Enough said, I'm going to go back to looking at documentation and DXEs... What we have works fine, I'm just always looking for improvements.