Skip to content

Commit 736e7fc

Browse files
committed
Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2
1 parent 3eb2347 commit 736e7fc

File tree

14 files changed

+8
-174
lines changed

14 files changed

+8
-174
lines changed

Include/pymath.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ extern double pow(double, double);
3737
#endif /* __STDC__ */
3838
#endif /* _MSC_VER */
3939

40-
#ifdef _OSF_SOURCE
41-
/* OSF1 5.1 doesn't make these available with XOPEN_SOURCE_EXTENDED defined */
42-
extern int finite(double);
43-
extern double copysign(double, double);
44-
#endif
45-
4640
/* High precision defintion of pi and e (Euler)
4741
* The values are taken from libc6's math.h.
4842
*/

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ Build
183183
- Issue #11268: Prevent Mac OS X Installer failure if Documentation
184184
package had previously been installed.
185185

186+
- Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2.
187+
186188
Tools/Demos
187189
-----------
188190

Modules/_cursesmodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ char *PyCursesVersion = "2.2";
105105
#include "Python.h"
106106

107107

108-
#ifdef __osf__
109-
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
110-
#endif
111-
112108
#ifdef __hpux
113109
#define STRICT_SYSV_CURSES
114110
#endif

Modules/fpectlmodule.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,6 @@ static void fpe_reset(Sigfunc *handler)
174174
fp_enable(TRP_INVALID | TRP_DIV_BY_ZERO | TRP_OVERFLOW);
175175
PyOS_setsig(SIGFPE, handler);
176176

177-
/*-- DEC ALPHA OSF --------------------------------------------------------*/
178-
#elif defined(__alpha) && defined(__osf__)
179-
/* References: exception_intro, ieee man pages */
180-
/* cc -c -I/usr/local/python/include fpectlmodule.c */
181-
/* ld -shared -o fpectlmodule.so fpectlmodule.o */
182-
#include <machine/fpu.h>
183-
unsigned long fp_control =
184-
IEEE_TRAP_ENABLE_INV | IEEE_TRAP_ENABLE_DZE | IEEE_TRAP_ENABLE_OVF;
185-
ieee_set_fp_control(fp_control);
186-
PyOS_setsig(SIGFPE, handler);
187-
188177
/*-- DEC ALPHA LINUX ------------------------------------------------------*/
189178
#elif defined(__alpha) && defined(linux)
190179
#include <asm/fpu.h>

Modules/mathmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ raised for division by zero and mod by zero.
5555
#include "Python.h"
5656
#include "_math.h"
5757

58-
#ifdef _OSF_SOURCE
59-
/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */
60-
extern double copysign(double, double);
61-
#endif
62-
6358
/*
6459
sin(pi*x), giving accurate results for all finite x (especially x
6560
integral or close to an integer). This is here for use in the

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
155155
#endif
156156

157157
#ifdef HAVE_GETHOSTBYNAME_R
158-
# if defined(_AIX) || defined(__osf__)
158+
# if defined(_AIX)
159159
# define HAVE_GETHOSTBYNAME_R_3_ARG
160160
# elif defined(__sun) || defined(__sgi)
161161
# define HAVE_GETHOSTBYNAME_R_5_ARG

Modules/termios.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
#endif
1010

1111
#include <termios.h>
12-
#ifdef __osf__
13-
/* On OSF, sys/ioctl.h requires that struct termio already be defined,
14-
* so this needs to be included first on that platform. */
15-
#include <termio.h>
16-
#endif
1712
#include <sys/ioctl.h>
1813

1914
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,

Objects/floatobject.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
#define MIN(x, y) ((x) < (y) ? (x) : (y))
1616

1717

18-
#ifdef _OSF_SOURCE
19-
/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */
20-
extern int finite(double);
21-
#endif
22-
2318
/* Special free list
2419
2520
Since some Python programs can spend much of their time allocating

Objects/typeslots.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by typeslots.py $Revision: 87806 $ */
1+
/* Generated by typeslots.py $Revision$ */
22
0,
33
0,
44
offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript),

Python/thread_pth.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ long PyThread_get_thread_ident(void)
6969
volatile pth_t threadid;
7070
if (!initialized)
7171
PyThread_init_thread();
72-
/* Jump through some hoops for Alpha OSF/1 */
7372
threadid = pth_self();
74-
return (long) *(long *) &threadid;
73+
return (long) threadid;
7574
}
7675

7776
void PyThread_exit_thread(void)

0 commit comments

Comments
 (0)