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]" 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: 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 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= Content-Language: en-US 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