7 int usleep(unsigned int useconds)
12 due.QuadPart = -(10 * (__int64)useconds);
14 timer = CreateWaitableTimer(NULL, TRUE, NULL);
15 SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);
16 WaitForSingleObject(timer, INFINITE);
22 int nanosleep( const struct timespec * rqtp, struct timespec * rmtp )
24 if (rqtp->tv_nsec > 999999999) {
25 /* The time interval specified 1,000,000 or more microseconds. */
29 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 );
32 int setenv(const char *name, const char *value, int overwrite)
35 if (overwrite == 0 && getenv (name)) {
38 result = SetEnvironmentVariable (name,value);