From: micha@genias.de (Michaela Kurz)
Subject: Re: Beta 18 breaks gettimeofday
26 May 1997 07:31:22 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <Pine.SUN.3.91.970526095124.19244A-100000.cygnus.gnu-win32@BALIN.genias.de>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Original-To: Jonathan Wilkins <jwilkins@secnet.com>
Original-cc: Geoffrey Noer <noer@cygnus.com>, gnu-win32@cygnus.com
In-Reply-To: <3.0.32.19970520174814.02732ca8@silence.secnet.com>
Original-Sender: owner-gnu-win32@cygnus.com

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:
> 
> #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?

sorry no, but another problem with this function: 
Where is the prototype?

---------------------------------------------------

M. Kurz
  Genias Software GmbH       /  Tel: 09401/9200-0
  micha@genias.de            /  Fax:      /9200-92
 


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
