From owner-freebsd-stable Wed Mar 3 12:58:53 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mailhost.stack.nl (terra.stack.nl [131.155.140.128]) by hub.freebsd.org (Postfix) with ESMTP id 28A55156A7 for ; Wed, 3 Mar 1999 12:58:47 -0800 (PST) (envelope-from marcolz@stack.nl) Received: from toad.stack.nl (toad.stack.nl [131.155.140.135]) by mailhost.stack.nl (Postfix) with ESMTP id CF6D32FF1; Wed, 3 Mar 1999 21:58:25 +0100 (MET) Received: by toad.stack.nl (Postfix, from userid 333) id 377599672; Wed, 3 Mar 1999 21:58:27 +0100 (CET) Date: Wed, 3 Mar 1999 21:58:27 +0100 From: Marc Olzheim To: chris@calldei.com Cc: Marc Olzheim , stable@FreeBSD.ORG Subject: Re: tzset in libc Message-ID: <19990303215827.A2249@stack.nl> References: <19990303170256.A15288@stack.nl> <19990303141850.B13061@holly.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990303141850.B13061@holly.dyndns.org>; from Chris Costello on Wed, Mar 03, 1999 at 02:18:51PM -0600 X-Operating-System: FreeBSD toad.stack.nl 2.2.8-STABLE FreeBSD 2.2.8-STABLE X-URL: http://www.stack.nl/~marcolz/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wed, Mar 3, 1999, Marc Olzheim put this into my mailbox: > > > > Hi, > > > > I was wondering why it was that each time you call localtime() or strftime(), > > tzset() is called also. Isn't it so that it only has to be called once > > per process and then be regearded as already set ? > > No. If you reset your time zone while a program is > running, what then? Then you call tzset() :-) We used to run a libc like that here and I kind of got used to it. Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message