This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]