diff options
author | Skip Montanaro <skip@pobox.com> | 2004-01-17 14:19:44 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2004-01-17 14:19:44 (GMT) |
commit | ce59c04127cb82127e247f5e986b07cbb6c39c61 (patch) | |
tree | 75b910d56a7b8f039e99c2cf6156c061124ef1e8 /Modules/posixmodule.c | |
parent | 09de7567269af82164ec7dd0c5edf3ec6d1b7502 (diff) | |
download | cpython-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/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 19 |
1 files changed, 0 insertions, 19 deletions
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 */ |