From: jwilkins AT secnet DOT com (Jonathan Wilkins) Subject: Re: Beta 18 breaks gettimeofday 26 May 1997 17:46:18 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <3.0.32.19970526122602.027fd614.cygnus.gnu-win32@silence.secnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: jwilkins AT silence DOT secnet DOT com X-Mailer: Windows Eudora Pro Version 3.0 (32) Original-To: Michaela Kurz Original-Cc: Geoffrey Noer , gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com At 10:00 AM 5/26/97 +0200, Michaela Kurz wrote: >On Tue, 20 May 1997, Jonathan Wilkins wrote: > >> I have just upgraded to beta 18 and was rebuilding an application and had >> some troubles.. after tracking things down it seems to be a problem with >> the gettimeofday() call.. sample code follows: >> if(gettimeofday(tvp, NULL) != 0){ >> printf("\n failed \n error was : %s\n", strerror(errno)); >> } else { >> printf("\n worked \n tv_sec is : %i\n tv_usec is : %i", >> tv.tv_sec, tv.tv_usec); >> } in regards to this problem.. it was simply a problem with the returned result from gettimeofday().. all other *NIX's seem to return 0 on success, and the cygwin returns non-0 on success.. perhaps this should be changed.. Jonathan -=-=-=-=-=-=-=- Jonathan Wilkins | Futuaris | If only they had used their jwilkins AT secnet DOT com | Non Irresus | terminals for niceness instead http://www.secnet.com | Ridebus | of evil ...-Maxwell Smart - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".