[PATCH v2 01/10] Change most internal uses of __gettimeofday to __clock_gettime.

Samuel Thibault samuel.thibault@ens-lyon.org
Thu Aug 29 20:42:00 GMT 2019


Adhemerval Zanella, le jeu. 29 août 2019 17:30:26 -0300, a ecrit:
> >  usleep (useconds_t useconds)
> >  {
> >    mach_port_t recv;
> > -  struct timeval before, after;
> >  
> >    recv = __mach_reply_port ();
> >  
> > -  if (__gettimeofday (&before, NULL) < 0)
> > -    return -1;
> >    (void) __mach_msg (NULL, MACH_RCV_MSG|MACH_RCV_TIMEOUT|MACH_RCV_INTERRUPT,
> >  		     0, 0, recv, (useconds + 999) / 1000, MACH_PORT_NULL);
> >    __mach_port_destroy (mach_task_self (), recv);
> > -  if (__gettimeofday (&after, NULL) < 0)
> > -    return -1;
> >  
> >    return 0;
> >  }
> 
> Not sure why hurd is calling get __gettimeofday here...

I guess it's a debugging leftover.

Samuel



More information about the Libc-alpha mailing list