From: Eric Rudd Newsgroups: comp.os.msdos.djgpp Subject: "make" timeskew problem under Windows Date: Fri, 24 Apr 1998 13:05:59 -0500 Organization: CyberOptics Lines: 81 Message-ID: <3540D487.CBD1559@cyberoptics.com> Reply-To: rudd AT cyberoptics DOT com NNTP-Posting-Host: rudd.cyberoptics.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5C967F6F8E49301CC29E9665" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk This is a multi-part message in MIME format. --------------5C967F6F8E49301CC29E9665 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii and I are attempting to track down some anomalies where the DJGPP port of make v.3.76.1 reports a time skew under Windows. The proximate cause of the problem is that "make" encounters a file whose date is ahead of the system date, which is in turn caused by some unknown clock anomaly under Windows. Since the phenomenon appears to be dependent on the version of Windows and the file system, we need to gather more data in order to make a reliable patch to make.exe. Attached to this message is a short program "makeskew.c", which opens a temporary file and dumps the file and system times to stdout. If you have experienced timeskew problems with "make", or if this problem interests you, please compile the attached "makeskew.c" program under DJGPP v2.01, and run it with output redirected to a file, e.g. makeskew >makeskew.dat The program runs continuously; press any key to quit. The four columns of output are, respectively, the system time, the file modification time, the file modification time minus the system time, and the high-resolution time from uclock(). Of particular interest is any instance where the file time gets ahead of the system time. In order for your results to be useful you should also report the following: 1. The version of Windows that is running. You can find this by clicking on Control Panel, System, General Properties under Win95. The version will be something like 4.00.950 B. Note that this number may be *different* from the one you get by typing in VER at the command prompt; see http://www.compren.com/faq.html#Winver95 for more details. 2. The type of file system your computer uses (e.g. FAT16, FAT32, NTFS, etc.) "makeskew" prints out this information, but is unable to distinguish FAT16 from FAT32. -Eric Rudd rudd AT cyberoptics DOT com --------------5C967F6F8E49301CC29E9665 Content-Type: application/x-unknown-content-type-C_auto_file; name="makeskew.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="makeskew.c" LyoNCiAgIEF1dGhvcjogRXJpYy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ICE9IG9sZF9tdGltZSkpIHsNCiAg ICAgICAgIHByaW50ZigiJTEwbGQgJTEwbGQgJTEwbGQgJTEwLjZmXG4iLCBjdXJyZW50X3Rp bWUsIGN1cnJlbnRfbXRpbWUsDQogICAgICAgICAgICAgICAgY3VycmVudF9tdGltZSAtIGN1 cnJlbnRfdGltZSwNCiAgICAgICAgICAgICAgICAoZG91YmxlKSB1Y2xvY2soKSAvIFVDTE9D S1NfUEVSX1NFQw0KICAgICAgICAgICAgICAgKTsNCiAgICAgIH0NCiAgICAgIG9sZF90aW1l ID0gY3VycmVudF90aW1lOw0KICAgICAgb2xkX210aW1lID0gY3VycmVudF9tdGltZTsNCiAg ICAgIGZjbG9zZShmaWxlKTsNCiAgIH0NCiAgIHJlbW92ZShmbmFtZSk7DQogICBwcmludGYo ImZpbGUgPSAlc1xuIiwgZm5hbWUpOw0KICAgX2dldF92b2x1bWVfaW5mbyhOVUxMLCBOVUxM LCBOVUxMLCBmc3lzdHlwZSk7DQogICBwcmludGYoImZpbGUgc3lzdGVtIHR5cGUgPSAlc1xu IiwgZnN5c3R5cGUpOw0KICAgcmV0dXJuIDA7DQp9DQo= --------------5C967F6F8E49301CC29E9665--