www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/25/12:18:17

To: Henrik Storner <storner AT olicom DOT dk>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: 1.12.maint1, second beta
Date: Thu, 25 Aug 94 17:29:14 +0300
From: eliz AT is DOT elta DOT co DOT il

>> And while on this point, does anyone know where can I found the definition
>> of how stat() should use TZ?
>
> It isn't mentioned in my copy of K&R. ANSI must have something to say on 
> this, but I don't have the standard.
>
> All UNIX implementations that I know of return the GMT time, though.
>
> My idea on a working stat() would be to get the timestamps directly from
> DOS - using the directory scan functions - then converting from localtime
> to GMT.

No, stat() and fstat() are non-ANSI, so it must be POSIX document.  So is
it OK to just return the GMT time corresponding to the file's timestamp?
If the behavior should be more complex, can anybody tell me what it is, or
point me to a document which describes that?

	Eli Zaretskii

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019