Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Kleeneness is next to Godelness.


devel / comp.os.msdos.djgpp / 64-bit time_t type in DJ 2.05?

SubjectAuthor
o 64-bit time_t type in DJ 2.05?Frank Sapone

1
64-bit time_t type in DJ 2.05?

<t50lrd$joh$1@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=172&group=comp.os.msdos.djgpp#172

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: fhsapone@windstream.net (Frank Sapone)
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
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
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@eternal-september.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=
Content-Language: en-US
 by: Frank Sapone - Thu, 5 May 2022 14:09 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor