summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 20:43:07 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 22:41:05 +0100
commitc9fb33697db1bdc1967a0cca557ad323ebe4ea22 (patch)
tree8eedb05e96de71557b7fbe5c850ca07dfac6cae0 /source3/lib/system.c
parentc0288e0612187ecbfc4a81d071fd504ea8737b7a (diff)
downloadsamba-c9fb33697db1bdc1967a0cca557ad323ebe4ea22.tar.gz
samba-c9fb33697db1bdc1967a0cca557ad323ebe4ea22.tar.bz2
samba-c9fb33697db1bdc1967a0cca557ad323ebe4ea22.zip
use usleep rather than sys_usleep in various places, in anticipation of usleep moving to libreplace.
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 92e244fdbe..238f84beea 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -52,40 +52,6 @@
/*******************************************************************
- A wrapper for usleep in case we don't have one.
-********************************************************************/
-
-int sys_usleep(long usecs)
-{
-#ifndef HAVE_USLEEP
- struct timeval tval;
-#endif
-
- /*
- * We need this braindamage as the glibc usleep
- * is not SPEC1170 complient... grumble... JRA.
- */
-
- if(usecs < 0 || usecs > 999999) {
- errno = EINVAL;
- return -1;
- }
-
-#if HAVE_USLEEP
- usleep(usecs);
- return 0;
-#else /* HAVE_USLEEP */
- /*
- * Fake it with select...
- */
- tval.tv_sec = 0;
- tval.tv_usec = usecs/1000;
- select(0,NULL,NULL,NULL,&tval);
- return 0;
-#endif /* HAVE_USLEEP */
-}
-
-/*******************************************************************
A read wrapper that will deal with EINTR.
********************************************************************/