From 50e23294586bfa8d54aa0f51227a1afac783d8b6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 26 Mar 2002 13:39:53 +0000 Subject: not used git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/usleep.c | 58 ---------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 uisimulator/usleep.c (limited to 'uisimulator/usleep.c') diff --git a/uisimulator/usleep.c b/uisimulator/usleep.c deleted file mode 100644 index 706675910e..0000000000 --- a/uisimulator/usleep.c +++ /dev/null @@ -1,58 +0,0 @@ -/* xscreensaver, Copyright (c) 1992, 1996, 1997 - * Jamie Zawinski - * - * Permission to use, copy, modify, distribute, and sell this software and its - * documentation for any purpose is hereby granted without fee, provided that - * the above copyright notice appear in all copies and that both that - * copyright notice and this permission notice appear in supporting - * documentation. No representations are made about the suitability of this - * software for any purpose. It is provided "as is" without express or - * implied warranty. - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#else /* !HAVE_CONFIG_H */ -# ifndef NO_SELECT -# define HAVE_SELECT -# endif -#endif /* !HAVE_CONFIG_H */ - -#ifdef __STDC__ -# include -#endif - -#if defined(VMS) -# include -# include -# include -#elif defined(HAVE_SELECT) -# include /* for struct timeval */ -#endif - - -#ifdef __SCREENHACK_USLEEP_H__ -ERROR, do not include that here -#endif - -void -screenhack_usleep (unsigned long usecs) -{ -# if defined(VMS) - float seconds = ((float) usecs)/1000000.0; - unsigned long int statvms = lib$wait(&seconds); - -#elif defined(HAVE_SELECT) - /* usleep() doesn't exist everywhere, and select() is faster anyway. */ - struct timeval tv; - tv.tv_sec = usecs / 1000000L; - tv.tv_usec = usecs % 1000000L; - (void) select (0, 0, 0, 0, &tv); - -#else /* !VMS && !HAVE_SELECT */ - /* If you don't have select() or usleep(), I guess you lose... - Maybe you have napms() instead? Let me know. */ - usleep (usecs); - -#endif /* !VMS && !HAVE_SELECT */ -} -- cgit v1.2.3