looking for usleep() implementation for ULTRIX

Bill Muth muth at buffer.dec.com
Wed Oct 18 23:41:26 AEST 1989


    Here is a macro for usleep() which appeared in comp.sources.x in the
    program xchomp.

    #ifdef ULTRIX
    #include <sys/time.h>
    EXTERN struct timeval   st_delay;
    #define usleep(x)       { st_delay.tv_usec = (x); st_delay.tv_sec = 0; \
                              select(32, NULL, NULL, NULL, &st_delay); }
    #endif



						    Bill



More information about the Comp.unix.ultrix mailing list