delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2022/05/05/10:15:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Frank Sapone (fhsapone AT windstream DOT net) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: 64-bit time_t type in DJ 2.05?
Date: Thu, 5 May 2022 10:09:49 -0400
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <t50lrd$joh$1@dont-email.me>
MIME-Version: 1.0
Injection-Date: Thu, 5 May 2022 14:09:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="30138172a7b46b2d90c628c7daa9df2f";
logging-data="20241"; mail-complaints-to="abuse AT eternal-september DOT org"; posting-account="U2FsdGVkX1/mrIXzIyU/zx/k2BwMOmd/dE+6Lsy5TJU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Cancel-Lock: sha1:8qpP6Ui1bS87sySXWgj9vz3yTfQ=
Bytes: 1539
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

I was running my code through PVS studio while cross-compiling DJGPP 
2.05 with GCC 5.1.0 and it had this to say: "Please note that the size 
of the 'time_t' type is not 64 bits. After year 2038, the program will 
work incorrectly."

Here is my code:

"	struct stat info;
	if (stat(path, &info) != 0)
		return;

	time_t t = info.st_mtime;
"

Does DJGPP support some sort of 64-bit time_t type?  The code snippet in 
question is for getting the date and time modified of a file.

Thanks,
Frank

- Raw text -


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