Date: Wed, 26 May 1999 13:10:19 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Ronald Landheer cc: djgpp AT delorie DOT com Subject: Re: srand() or time() In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 26 May 1999, Ronald Landheer wrote: > The reason I reported this, is because I thought it weird > that errno should be nonzero after a call to time, which should, as far as > I know, only take a look at a certain memory block in my computer, where > the time is stored & updated every 18.2 parts of a second (the system > timer). `time' cannot be as simple as you seem to think. For starters, it needs to support the different time zones, so it needs at least to look at the environment variable TZ. DJGPP's version does much more than that, and uses a disk-based database for all the different timezone rules. Perhaps you should look at the sources of `time' to appreciate how complicated it is.