summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-01-17 14:19:44 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-01-17 14:19:44 (GMT)
commitce59c04127cb82127e247f5e986b07cbb6c39c61 (patch)
tree75b910d56a7b8f039e99c2cf6156c061124ef1e8 /Modules
parent09de7567269af82164ec7dd0c5edf3ec6d1b7502 (diff)
downloadcpython-ce59c04127cb82127e247f5e986b07cbb6c39c61.zip
cpython-ce59c04127cb82127e247f5e986b07cbb6c39c61.tar.gz
cpython-ce59c04127cb82127e247f5e986b07cbb6c39c61.tar.bz2
Remove support for SunOS 4.
Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Setup.dist3
-rw-r--r--Modules/mmapmodule.c5
-rw-r--r--Modules/pcre-int.h8
-rw-r--r--Modules/posixmodule.c19
4 files changed, 1 insertions, 34 deletions
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
index 3ca6dab..51442c9 100644
--- a/Modules/Setup.dist
+++ b/Modules/Setup.dist
@@ -361,8 +361,7 @@ GLHACK=-Dclear=__GLclear
# Curses support, requring the System V version of curses, often
# provided by the ncurses library. e.g. on Linux, link with -lncurses
-# instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
-# -L/usr/5lib before -lcurses).
+# instead of -lcurses).
#
# First, look at Setup.config; configure may have set this for you.
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index a61a37a..6cb4717 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -39,11 +39,6 @@ my_getpagesize(void)
#include <sys/mman.h>
#include <sys/stat.h>
-#ifndef MS_SYNC
-/* This is missing e.g. on SunOS 4.1.4 */
-#define MS_SYNC 0
-#endif
-
#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
static int
my_getpagesize(void)
diff --git a/Modules/pcre-int.h b/Modules/pcre-int.h
index ceae8eb..d07d536 100644
--- a/Modules/pcre-int.h
+++ b/Modules/pcre-int.h
@@ -35,14 +35,6 @@ restrictions:
modules, but which are not relevant to the outside. */
-/* To cope with SunOS4 and other systems that lack memmove() but have bcopy(),
-define a macro for memmove() if USE_BCOPY is defined. */
-
-#ifdef USE_BCOPY
-#undef memmove /* some systems may have a macro */
-#define memmove(a, b, c) bcopy(b, a, c)
-#endif
-
/* Standard C headers plus the external interface definition */
#include <ctype.h>
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index aa9f36c..71a102c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -136,16 +136,6 @@ corresponding Unix manual entries for more information on calls.");
#ifndef _MSC_VER
-#if defined(sun) && !defined(__SVR4)
-/* SunOS 4.1.4 doesn't have prototypes for these: */
-extern int rename(const char *, const char *);
-extern int pclose(FILE *);
-extern int fclose(FILE *);
-extern int fsync(int);
-extern int lstat(const char *, struct stat *);
-extern int symlink(const char *, const char *);
-#endif
-
#if defined(__sgi)&&_COMPILER_VERSION>=700
/* declare ctermid_r if compiling with MIPSPro 7.x in ANSI C mode
(default) */
@@ -2117,11 +2107,7 @@ posix_execv(PyObject *self, PyObject *args)
}
argvlist[argc] = NULL;
-#ifdef BAD_EXEC_PROTOTYPES
- execv(path, (const char **) argvlist);
-#else /* BAD_EXEC_PROTOTYPES */
execv(path, argvlist);
-#endif /* BAD_EXEC_PROTOTYPES */
/* If we get here it's definitely an error */
@@ -2260,12 +2246,7 @@ posix_execve(PyObject *self, PyObject *args)
}
envlist[envc] = 0;
-
-#ifdef BAD_EXEC_PROTOTYPES
- execve(path, (const char **)argvlist, envlist);
-#else /* BAD_EXEC_PROTOTYPES */
execve(path, argvlist, envlist);
-#endif /* BAD_EXEC_PROTOTYPES */
/* If we get here it's definitely an error */