X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=src%2Fmisc%2Fusleep.c;fp=src%2Fmisc%2Fusleep.c;h=0000000000000000000000000000000000000000;hp=ecbd1045f6726ba83e65325ab50d4ee3ee17cc31;hb=bea3fd57425c7f0375704d39e6fdd5ffffcaa949;hpb=4a40542bdd940f7b909aa24866e69b3a088253ac diff --git a/src/misc/usleep.c b/src/misc/usleep.c deleted file mode 100644 index ecbd104..0000000 --- a/src/misc/usleep.c +++ /dev/null @@ -1,27 +0,0 @@ -#include "config.h" -#ifndef lint -static char rcsid[] ATTR_UNUSED = "$Id$"; -#endif - -/* This part of code is a public domain */ - -#ifdef HAVE_SYS_TIME_H -#include -#endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif - -/* CONFORMING TO BSD 4.3 */ - -void usleep(unsigned long usec) -{ -struct timeval tv; - - tv.tv_sec =usec/1000000; - tv.tv_usec=usec%1000000; - select(0,NULL,NULL,NULL,&tv); -}