--KHBYcjBZ+r Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit OK, I've checked in some changes to the posix module to add support for a few of the POSIX interfaces Andrew expressed interest in seeing (and some he said weren't such a good idea, or at least not necessary, but about which I decided I disagreed after all). For those of you who aren't on the checkins list (??), I've attached the message so you'll know what functions were added. -Fred -- Fred L. Drake, Jr. <fdrake@acm.org> Corporation for National Research Initiatives --KHBYcjBZ+r Content-Type: message/rfc822 Content-Description: forwarded message Received: from cnri.reston.va.us (ns.CNRI.Reston.VA.US [132.151.1.1]) by weyr.cnri.reston.va.us (8.9.1b+Sun/8.9.1) with SMTP id QAA22917 for <fdrake@weyr.cnri.reston.va.us>; Thu, 9 Dec 1999 16:13:16 -0500 (EST) Received: from dinsdale.python.org (dinsdale [132.151.1.21]) by cnri.reston.va.us (8.9.1a/8.9.1) with ESMTP id QAA01352; Thu, 9 Dec 1999 16:12:41 -0500 (EST) Received: from dinsdale.python.org (dinsdale.python.org [132.151.1.21]) by dinsdale.python.org (Postfix) with ESMTP id 710BB1CE73; Thu, 9 Dec 1999 16:12:39 -0500 (EST) Delivered-To: python-checkins@dinsdale.python.org Received: from python.org (parrot.python.org [132.151.1.90]) by dinsdale.python.org (Postfix) with ESMTP id EA9681CE71 for <python-checkins@dinsdale.python.org>; Thu, 9 Dec 1999 16:12:37 -0500 (EST) Received: from cnri.reston.va.us (ns.CNRI.Reston.VA.US [132.151.1.1] (may be forged)) by python.org (8.9.1a/8.9.1) with ESMTP id QAA14229 for <python-checkins@python.org>; Thu, 9 Dec 1999 16:12:38 -0500 (EST) Received: from weyr.cnri.reston.va.us (weyr [132.151.1.174]) by cnri.reston.va.us (8.9.1a/8.9.1) with ESMTP id QAA01348 for <python-checkins@python.org>; Thu, 9 Dec 1999 16:12:37 -0500 (EST) Received: (from fdrake@localhost) by weyr.cnri.reston.va.us (8.9.1b+Sun/8.9.1) id QAA22913 for python-checkins@python.org; Thu, 9 Dec 1999 16:13:10 -0500 (EST) Message-Id: <199912092113.QAA22913@weyr.cnri.reston.va.us> Errors-To: python-checkins-admin@python.org X-BeenThere: python-checkins@python.org X-Mailman-Version: 1.2 (experimental) Precedence: bulk List-Id: Check-in messages from the Python maintainers <python-checkins.python.org> Content-Length: 1821 From: "Fred L. Drake" <fdrake@weyr.cnri.reston.va.us> Sender: python-checkins-admin@python.org To: python-checkins@python.org Subject: [Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.115,2.116 Date: Thu, 9 Dec 1999 16:13:10 -0500 (EST) MIME-Version: 1.0 Update of /projects/cvsroot/python/dist/src/Modules In directory weyr:/home/fdrake/projects/python/Modules Modified Files: posixmodule.c Log Message: Added support for abort(), ctermid(), tmpfile(), tempnam(), tmpnam(), and TMP_MAX. Converted all functions that used PyArg_Parse() or PyArg_NoArgs() to use PyArg_ParseTuple() and specified all function names using the :name syntax in the format strings, to allow better error messages when TypeError is raised for parameter type mismatches. Index: posixmodule.c =================================================================== RCS file: /projects/cvsroot/python/dist/src/Modules/posixmodule.c,v retrieving revision 2.115 retrieving revision 2.116 diff -u -C2 -r2.115 -r2.116 *** posixmodule.c 1999/10/19 13:29:23 2.115 --- posixmodule.c 1999/12/09 21:13:07 2.116 *************** *** 432,442 **** static PyObject * ! posix_int(args, func) PyObject *args; int (*func) Py_FPROTO((int)); { int fd; int res; ! if (!PyArg_Parse(args, "i", &fd)) return NULL; [...1720 lines suppressed...] #endif + #ifdef HAVE_TEMPNAM + {"tempnam", posix_tempnam, METH_VARARGS, posix_tempnam__doc__}, + #endif + #ifdef HAVE_TMPNAM + {"tmpnam", posix_tmpnam, METH_VARARGS, posix_tmpnam__doc__}, + #endif + {"abort", posix_abort, METH_VARARGS, posix_abort__doc__}, {NULL, NULL} /* Sentinel */ }; *************** *** 3426,3429 **** --- 3586,3592 ---- if (ins(d, "X_OK", (long)X_OK)) return -1; #endif + #ifdef TMP_MAX + if (ins(d, "TMP_MAX", (long)TMP_MAX)) return -1; + #endif #ifdef WNOHANG if (ins(d, "WNOHANG", (long)WNOHANG)) return -1; _______________________________________________ Python-checkins mailing list Python-checkins@python.org http://www.python.org/mailman/listinfo/python-checkins --KHBYcjBZ+r--
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4