1 /* */ 2 /* xemeraldia ----- usleep.c */ 3 /* */ 4 5 #ifdef HAVE_CONFIG_H 6 #include <config.h> 7 #endif 8 9 #ifdef SYSV 10 #include <time.h> 11 #ifdef sgi 12 #include <sys/time.h> 13 #endif 14 usleep(unsigned useconds)15void usleep(unsigned useconds) 16 { 17 struct timeval timeout; 18 19 timeout.tv_sec = 0; 20 timeout.tv_usec = useconds; 21 22 select (0, 0, 0, 0, &timeout); 23 } 24 #endif 25