2 static const char rcsid[] =
3 "@(#) $Id: usleep.c,v 1.1 2000/09/16 05:31:06 leres Exp $ (LBL)";
12 #ifdef HAVE_OS_PROTO_H
17 usleep(register u_int useconds)
22 ts.tv_sec = useconds / 1000000;
23 ts.tv_nsec = (useconds % 1000000) * 1000;
24 return (nanosleep(&ts, NULL));
28 tv.tv_sec = useconds / 1000000;
29 tv.tv_usec = useconds % 1000000;
30 return (select(0, NULL, NULL, NULL, &tv));