[BACK]Return to usleep.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/usleep.c between version 1.14 and 1.15

version 1.14, 1997/07/21 14:07:45 version 1.15, 1997/08/19 04:34:15
Line 55  usleep(useconds)
Line 55  usleep(useconds)
 {  {
         struct timespec ts;          struct timespec ts;
   
         ts.tv_sec  = 0;          ts.tv_sec  = useconds / 1000000;
         ts.tv_nsec = useconds * 1000;          ts.tv_nsec = (useconds % 1000000) * 1000;
   
         nanosleep(&ts, NULL);          nanosleep(&ts, NULL);
 }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

CVSweb <webmaster@jp.NetBSD.org>