Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!ames!oliveb!felix!zemon From: zemon@felix.UUCP (Art Zemon) Newsgroups: comp.os.minix Subject: Re: cal(1) -- really exit(3) Message-ID: <3169@felix.UUCP> Date: Thu, 2-Jul-87 16:22:05 EDT Article-I.D.: felix.3169 Posted: Thu Jul 2 16:22:05 1987 Date-Received: Sat, 4-Jul-87 13:28:29 EDT References: <3118@felix.UUCP> <2352@hoptoad.uucp> Sender: daemon@felix.UUCP Reply-To: zemon@felix.UUCP (Art Zemon) Organization: FileNet Corp., Costa Mesa, CA Lines: 20 In article <2352@hoptoad.uucp> gnu@hoptoad.uucp (John Gilmore) writes: > >Wouldn't it be easier to replace the supplied exit() with one >that worked, e.g. that implemented onexit(), so stdio could get >its buffers flushed without rewriting every program? The original idea behind this was to keep the tools in /usr/bin and /bin small by not including the stdio library. Exit(), if it called _cleanup(), would bring in large chunks of otherwise unused code. I think a better solution would be to rename the existing exit() to _exit() and create an exit() subroutine which calls _cleanup() and change the tools which don't use stdio to call _exit(). Whew! I said all that in one breath. :-) -- -- Art Zemon FileNet Corporation Costa Mesa, California ...!hplabs!felix!zemon