mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2
This commit is contained in:
parent
3eb2347c8c
commit
736e7fc0f6
14 changed files with 8 additions and 174 deletions
|
|
@ -105,10 +105,6 @@ char *PyCursesVersion = "2.2";
|
|||
#include "Python.h"
|
||||
|
||||
|
||||
#ifdef __osf__
|
||||
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
#define STRICT_SYSV_CURSES
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -174,17 +174,6 @@ static void fpe_reset(Sigfunc *handler)
|
|||
fp_enable(TRP_INVALID | TRP_DIV_BY_ZERO | TRP_OVERFLOW);
|
||||
PyOS_setsig(SIGFPE, handler);
|
||||
|
||||
/*-- DEC ALPHA OSF --------------------------------------------------------*/
|
||||
#elif defined(__alpha) && defined(__osf__)
|
||||
/* References: exception_intro, ieee man pages */
|
||||
/* cc -c -I/usr/local/python/include fpectlmodule.c */
|
||||
/* ld -shared -o fpectlmodule.so fpectlmodule.o */
|
||||
#include <machine/fpu.h>
|
||||
unsigned long fp_control =
|
||||
IEEE_TRAP_ENABLE_INV | IEEE_TRAP_ENABLE_DZE | IEEE_TRAP_ENABLE_OVF;
|
||||
ieee_set_fp_control(fp_control);
|
||||
PyOS_setsig(SIGFPE, handler);
|
||||
|
||||
/*-- DEC ALPHA LINUX ------------------------------------------------------*/
|
||||
#elif defined(__alpha) && defined(linux)
|
||||
#include <asm/fpu.h>
|
||||
|
|
|
|||
|
|
@ -55,11 +55,6 @@ raised for division by zero and mod by zero.
|
|||
#include "Python.h"
|
||||
#include "_math.h"
|
||||
|
||||
#ifdef _OSF_SOURCE
|
||||
/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */
|
||||
extern double copysign(double, double);
|
||||
#endif
|
||||
|
||||
/*
|
||||
sin(pi*x), giving accurate results for all finite x (especially x
|
||||
integral or close to an integer). This is here for use in the
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_GETHOSTBYNAME_R
|
||||
# if defined(_AIX) || defined(__osf__)
|
||||
# if defined(_AIX)
|
||||
# define HAVE_GETHOSTBYNAME_R_3_ARG
|
||||
# elif defined(__sun) || defined(__sgi)
|
||||
# define HAVE_GETHOSTBYNAME_R_5_ARG
|
||||
|
|
|
|||
|
|
@ -9,11 +9,6 @@
|
|||
#endif
|
||||
|
||||
#include <termios.h>
|
||||
#ifdef __osf__
|
||||
/* On OSF, sys/ioctl.h requires that struct termio already be defined,
|
||||
* so this needs to be included first on that platform. */
|
||||
#include <termio.h>
|
||||
#endif
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue