rem: return r;
context: gettime (struct timespec *ts){#if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME  if (clock_gettime (CLOCK_REALTIME, ts) == 0)    return 0;#endif  {    struct timeval tv;    int r = gettimeofday (&tv, 0);    if (r == 0)      {	ts->tv_sec = tv.tv_sec;	ts->tv_nsec = tv.tv_usec * 1000;      }    return r;  }}