delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <380E4352.38D8D81B@hydraweb.com> |
Date: | Wed, 20 Oct 1999 18:33:54 -0400 |
From: | Alexander Dupuy <dupuy AT hydraweb DOT com> |
X-Mailer: | Mozilla 4.5 [en] (X11; U; SunOS 5.7 sun4u) |
X-Accept-Language: | en, es, fr, de |
MIME-Version: | 1.0 |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | B20.1 gettimeofday returns incorrect tv_secs |
--------------CEB745472B9DF38BF520A969 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The tv_secs returned by gettimeofday for a simple CYGWIN application don't match the (correct) seconds since 1970 returned by time(). This breaks applications (like mine) that sometimes use time() and sometimes gettimeofday(). @alex -- mailto:dupuy AT hydraweb DOT com --------------CEB745472B9DF38BF520A969 Content-Type: text/plain; charset=us-ascii; name="mydate.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mydate.c" #include <stdio.h> #include <sys/time.h> int main() { struct timeval tv; struct timezone tz; gettimeofday (&tv, &tz); printf ("%d =?= %d\n", tv.tv_sec, time(NULL)); return 0; } --------------CEB745472B9DF38BF520A969 Content-Type: text/plain; charset=us-ascii; name="mydate.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mydate.out" 4155765 =?= 940458654 --------------CEB745472B9DF38BF520A969 Content-Type: text/plain; charset=us-ascii; name="cygcheck.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygcheck.out" Cygnus Win95/NT Configuration Diagnostics Current System Time: Wed Oct 20 17:29:43 1999 WinNT Ver 4.0 build 1381 Service Pack 5 Path: /cygnus/CYGWIN~1/H-I586~1/bin /WINNT/system32 /WINNT /Program Files/Mts //F/NTRESKIT //F/NTRESKIT/Perl /Emacs20.3.1/bin /usr/ishield/Program /cygnus/cygwin-b20/H-i586-cygwin32/bin /Program Files/Microsoft Visual Studio/Common/Tools/WinNT /Program Files/Microsoft Visual Studio/Common/MSDev98/Bin /Program Files/Microsoft Visual Studio/Common/Tools /usr/msdev/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT MAKE_MODE = `UNIX' PWD = `/WINNT/Profiles/Dupuy/Desktop' !C: = `C:\WINNT\PROFILES\DUPUY\DESKTOP' COMPUTERNAME = `DRONE' COMSPEC = `C:\WINNT\system32\cmd.exe' HOMEDRIVE = `C:' HOMEPATH = `\Dupuy' HOSTNAME = `drone' HOSTTYPE = `i586' INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include' LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib' LOGONSERVER = `\\DRONE' MACHTYPE = `i586-pc-cygwin32' MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98' NTRESKIT = `F:\NTRESKIT' NUMBER_OF_PROCESSORS = `2' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' OSTYPE = `cygwin32' PATHEXT = `.COM;.EXE;.BAT;.CMD' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 2, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0501' PROMPT = `$P$G' SHELL = `/bin/sh' SHLVL = `1' SOS = `/usr/sosnt' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `C:\TEMP' TERM = `cygwin' TMP = `C:\TEMP' USERDOMAIN = `DRONE' USERNAME = `dupuy' USERPROFILE = `C:\WINNT\Profiles\Dupuy' WINDIR = `C:\WINNT' _ = `/cygnus/CYGWIN~1/H-I586~1/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `C:\local\sosnt' unix = `/usr/sosnt' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 (default) = `C:\Program Files\InstallShield\PackageForTheWeb 2' unix = `/usr/pftw' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 (default) = `C:\Program Files\Microsoft Visual Studio\VC98' unix = `/usr/msdev' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 (default) = `C:\Program Files\InstallShield\InstallShield 5.5 Professional Edition' unix = `/usr/ishield' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 (default) = `n:\dupuy' unix = `/usr' fbinary = 0x00000001 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05 (default) = `C:\TEMP' unix = `/tmp' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06 (default) = `C:' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20\B20.1 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = 0x00000000 fsilent = 0x00000000 native = `C:\TEMP' unix = `/tmp' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 (default) = 0x00000000 fsilent = 0x00000000 native = `C:\Program Files\Microsoft Visual Studio\VC98' unix = `/usr/msdev' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 (default) = 0x00000000 fsilent = 0x00000000 native = `C:\Program Files\InstallShield\InstallShield 5.5 Professional Edition' unix = `/usr/ishield' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 (default) = 0x00000000 fsilent = 0x00000001 native = `C:\Program Files\InstallShield\PackageForThe Web 2' unix = `/usr/pftw' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1 (default) = `c:\cygnus\cygwin-b20' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus Cygwin B20 (default) = `C:\WINNT\IsUninst.exe -fc:\cygnus\cygwin-b20\Uninst.isu' DisplayName = `Cygwin B20' a:\ fd N/A N/A c:\ hd FAT 2031Mb 94% CP UN d:\ hd FAT 2031Mb 20% CP UN e:\ cd N/A N/A f:\ hd FAT 2023Mb 33% CP UN h:\ net Samba 1921Mb 78% CP UN User Homes i:\ net NTFS 22254Mb 47% CP CS UN PA FC Iegor_Raid5 n:\ net Samba 1921Mb 78% CP UN User Homes C: / native text!=binary C:\TEMP /tmp native text!=binary n:\dupuy /usr native text=binary C:\Program Files\InstallShield\InstallShield 5.5 Professional Edition /usr/ishield native text!=binary C:\Program Files\Microsoft Visual Studio\VC98 /usr/msdev native text!=binary C:\Program Files\InstallShield\PackageForTheWeb 2 /usr/pftw native text!=binary C:\local\sosnt /usr/sosnt native text!=binary Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe Found: F:\NTRESKIT\cat.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides F:\NTRESKIT\cat.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe Not Found: cpp (good!) Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\gcc.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\gcc.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\gdb.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\gdb.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\ld.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\ld.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe Found: F:\NTRESKIT\ls.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides F:\NTRESKIT\ls.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\make.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\make.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe Found: C:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe Found: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe hides C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe Found: \bin\sh.exe Warning: C:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe hides \bin\sh.exe 371k 1998/12/01 C:\cygnus\CYGWIN~1\H-I586~1\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=1998/12/1 3:25 5k 1998/12/01 C:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 1998/12/01 C:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=1998/12/1 3:25 600k 1998/12/01 C:\cygnus\CYGWIN~1\H-I586~1\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=1998/12/1 3:28 446k 1998/12/04 C:\cygnus\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1998/12/3 23:39 371k 1998/12/01 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=1998/12/1 3:25 5k 1998/12/01 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 1998/12/01 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=1998/12/1 3:25 600k 1998/12/01 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=1998/12/1 3:28 446k 1998/12/04 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1998/12/3 23:39 Use -h to see help about each section --------------CEB745472B9DF38BF520A969 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------CEB745472B9DF38BF520A969--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |