This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Beta 18 breaks gettimeofday
- To: Geoffrey Noer <noer at cygnus dot com>
- Subject: Beta 18 breaks gettimeofday
- From: Jonathan Wilkins <jwilkins at secnet dot com>
- Date: Tue, 20 May 1997 17:48:15 -0600
- Cc: gnu-win32 at cygnus dot com
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:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <errno.h>
int main()
{
struct timeval *tvp;
struct timeval tv;
tvp = &tv;
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);
}
return(0);
}
this code works on freebsd, and other gettimeofday calls used to work on B17.1
any ideas?
thanks
Jonathan
-=-=-=-=-=-=-=-
Jonathan Wilkins | Futuaris | If only they had used their
jwilkins@secnet.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@cygnus.com" with one line of text: "help".