[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.185,2.186 termios.c,2.23,2.24
Guido van Rossum
gvanrossum@users.sourceforge.net
Wed, 11 Apr 2001 13:57:59 -0700
- Previous message: [Python-checkins] CVS: python/dist/src Makefile.pre.in,1.33,1.34 config.h.in,2.90,2.91 configure,1.206,1.207 configure.in,1.214,1.215
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test test_math.py,1.10,1.11 test_fork1.py,1.8,1.9 test_fcntl.py,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv12257
Modified Files:
posixmodule.c termios.c
Log Message:
Unixware 7 support by Billy G. Allie (SF patch 413011)
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.185
retrieving revision 2.186
diff -C2 -r2.185 -r2.186
*** posixmodule.c 2001/02/27 17:04:34 2.185
--- posixmodule.c 2001/04/11 20:57:57 2.186
***************
*** 90,93 ****
--- 90,96 ----
#define HAVE_EXECV 1
#define HAVE_FORK 1
+ #if defined(__USLC__) && defined(__SCO_VERSION__) /* SCO UDK Compiler */
+ #define HAVE_FORK1 1
+ #endif
#define HAVE_GETCWD 1
#define HAVE_GETEGID 1
***************
*** 1655,1658 ****
--- 1658,1685 ----
+ #ifdef HAVE_FORK1
+ static char posix_fork1__doc__[] =
+ "fork1() -> pid\n\
+ Fork a child process with a single multiplexed (i.e., not bound) thread.\n\
+ \n\
+ Return 0 to child process and PID of child to parent process.";
+
+ static PyObject *
+ posix_fork1(self, args)
+ PyObject *self;
+ PyObject *args;
+ {
+ int pid;
+ if (!PyArg_ParseTuple(args, ":fork1"))
+ return NULL;
+ pid = fork1();
+ if (pid == -1)
+ return posix_error();
+ PyOS_AfterFork();
+ return PyInt_FromLong((long)pid);
+ }
+ #endif
+
+
#ifdef HAVE_FORK
static char posix_fork__doc__[] =
***************
*** 5262,5265 ****
--- 5289,5295 ----
{"spawnve", posix_spawnve, METH_VARARGS, posix_spawnve__doc__},
#endif /* HAVE_SPAWNV */
+ #ifdef HAVE_FORK1
+ {"fork1", posix_fork1, METH_VARARGS, posix_fork1__doc__},
+ #endif /* HAVE_FORK1 */
#ifdef HAVE_FORK
{"fork", posix_fork, METH_VARARGS, posix_fork__doc__},
Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** termios.c 2001/04/09 19:32:52 2.23
--- termios.c 2001/04/11 20:57:57 2.24
***************
*** 325,330 ****
--- 325,334 ----
{"B19200", B19200},
{"B38400", B38400},
+ #ifdef B57600
{"B57600", B57600},
+ #endif
+ #ifdef B115200
{"B115200", B115200},
+ #endif
#ifdef B230400
{"B230400", B230400},
- Previous message: [Python-checkins] CVS: python/dist/src Makefile.pre.in,1.33,1.34 config.h.in,2.90,2.91 configure,1.206,1.207 configure.in,1.214,1.215
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test test_math.py,1.10,1.11 test_fork1.py,1.8,1.9 test_fcntl.py,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]