Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!mips!spool.mu.edu!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.unix.internals Subject: Re: Shared Lib Question (ISC) Message-ID: <1991May10.192648.3147@Think.COM> Date: 10 May 91 19:26:48 GMT References: <19252@rpp386.cactus.org> <19255@rpp386.cactus.org> Sender: news@Think.COM Reply-To: barmar@think.com Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 14 In article <19255@rpp386.cactus.org> jfh@rpp386.cactus.org (John F Haugh II) writes: > Name a single library function >which cannot be implemented well without global variables. Malloc() needs a global variable that points to the arena. Stdio uses the global variables stdin, stdout, and stderr. Errno is a global variable, and some library routines set it. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar