diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-17 12:57:41 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-17 12:57:41 (GMT) |
commit | eb33e5ae79542371a165bdb67099d14b7557a698 (patch) | |
tree | b5e2bab1636a590bf389a38965afaab1cbd90628 /Modules/timemodule.c | |
parent | e9af284e998abe3ab974b488d97c5db69c5aebf4 (diff) | |
download | cpython-eb33e5ae79542371a165bdb67099d14b7557a698.zip cpython-eb33e5ae79542371a165bdb67099d14b7557a698.tar.gz cpython-eb33e5ae79542371a165bdb67099d14b7557a698.tar.bz2 |
Remove support for BeOS
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 4bf3a9c..45002a1 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -80,13 +80,6 @@ static long main_thread; #include <sys/time.h> #endif -#ifdef __BEOS__ -#include <time.h> -/* For bigtime_t, snooze(). - [cjh] */ -#include <support/SupportDefs.h> -#include <kernel/OS.h> -#endif - /* Forward declarations */ static int floatsleep(double); static double floattime(void); @@ -894,7 +887,7 @@ static int floatsleep(double secs) { /* XXX Should test for MS_WINDOWS first! */ -#if defined(HAVE_SELECT) && !defined(__BEOS__) && !defined(__EMX__) +#if defined(HAVE_SELECT) && !defined(__EMX__) struct timeval t; double frac; frac = fmod(secs, 1.0); @@ -963,22 +956,6 @@ floatsleep(double secs) return -1; } Py_END_ALLOW_THREADS -#elif defined(__BEOS__) - /* This sleep *CAN BE* interrupted. */ - { - if( secs <= 0.0 ) { - return; - } - - Py_BEGIN_ALLOW_THREADS - /* BeOS snooze() is in microseconds... */ - if( snooze( (bigtime_t)( secs * 1000.0 * 1000.0 ) ) == B_INTERRUPTED ) { - Py_BLOCK_THREADS - PyErr_SetFromErrno( PyExc_IOError ); - return -1; - } - Py_END_ALLOW_THREADS - } #elif defined(PLAN9) { double millisecs = secs * 1000.0; |