[Python-checkins] python/dist/src/Modules Setup.dist, 1.41,
1.42 mmapmodule.c, 2.46, 2.47 pcre-int.h, 2.4,
2.5 posixmodule.c, 2.311, 2.312
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Sat Jan 17 09:19:46 EST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv12761/Modules
Modified Files:
Setup.dist mmapmodule.c pcre-int.h posixmodule.c
Log Message:
Remove support for SunOS 4.
Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
Index: Setup.dist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.dist,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** Setup.dist 14 Jun 2003 21:03:05 -0000 1.41
--- Setup.dist 17 Jan 2004 14:19:43 -0000 1.42
***************
*** 362,367 ****
# 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).
#
# First, look at Setup.config; configure may have set this for you.
--- 362,366 ----
# 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).
#
# First, look at Setup.config; configure may have set this for you.
Index: mmapmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mmapmodule.c,v
retrieving revision 2.46
retrieving revision 2.47
diff -C2 -d -r2.46 -r2.47
*** mmapmodule.c 15 Jul 2003 12:37:46 -0000 2.46
--- mmapmodule.c 17 Jan 2004 14:19:44 -0000 2.47
***************
*** 40,48 ****
#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
--- 40,43 ----
Index: pcre-int.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pcre-int.h,v
retrieving revision 2.4
retrieving revision 2.5
diff -C2 -d -r2.4 -r2.5
*** pcre-int.h 7 May 1998 15:32:38 -0000 2.4
--- pcre-int.h 17 Jan 2004 14:19:44 -0000 2.5
***************
*** 36,47 ****
- /* 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 */
--- 36,39 ----
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.311
retrieving revision 2.312
diff -C2 -d -r2.311 -r2.312
*** posixmodule.c 16 Jan 2004 13:18:42 -0000 2.311
--- posixmodule.c 17 Jan 2004 14:19:44 -0000 2.312
***************
*** 137,150 ****
#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
--- 137,140 ----
***************
*** 2118,2126 ****
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 */
--- 2108,2112 ----
***************
*** 2261,2270 ****
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 */
--- 2247,2251 ----
More information about the Python-checkins
mailing list