summaryrefslogtreecommitdiff
path: root/Modules/selectmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31893: Fix a backporting error in ↵Serhiy Storchaka2017-11-011-3/+6
| | | | 8cbf4e10646c3f5b8f0d274c2d7dea5bb6305f57. (#4219)
* bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) ↵Miss Islington (bot)2017-10-311-4/+4
| | | | | | | (#4202) * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)
* [2.7] bpo-31893: Fixed select.kqueue(). (GH-4166) (#4193)Serhiy Storchaka2017-10-311-48/+84
| | | | | * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects.. (cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)
* [2.7] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4034)Riccardo Coccioli2017-10-181-0/+11
| | | | | | | Always pass -1, or INFTIM where defined, to the poll() system call when a negative timeout is passed to the poll.poll([timeout]) method in the select module. Various OSes throw an error with arbitrary negative values.. (cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)
* [2.7] bpo-30058: Fixed buffer overflow in select.kqueue.control(). ↵Serhiy Storchaka2017-10-131-16/+13
| | | | | (GH-1095). (#3976) (cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)
* bpo-29874: fix INCREF for possible NULL values in select_select() (GH-758)Xiang Zhang2017-03-221-4/+4
|
* Issue #23652: Make the select module compile against LSB headers.Zachary Ware2015-08-011-0/+10
| | | | Initial patch by Matt Frank.
* Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|
* Issue #17919: Fixed integer overflow in the eventmask parameter.Serhiy Storchaka2013-12-141-7/+25
|
* Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.Serhiy Storchaka2013-12-131-3/+2
|
* Issue #11973: Fix a problem in kevent. The flags and fflags fields are nowChristian Heimes2013-08-251-1/+1
| | | | properly handled as unsigned.
* Issue #8865: Concurrent invocation of select.poll.poll() now raises aSerhiy Storchaka2013-08-201-0/+13
| | | | RuntimeError exception. Patch by Christian Schubert.
* Issue #12181: select module: Fix struct kevent definition on OpenBSD 64-bitCharles-Francois Natali2013-05-061-7/+28
| | | | platforms. Patch by Federico Schwindt.
* Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.Charles-François Natali2013-01-191-2/+2
| | | | Patch by Jeffrey Armstrong.
* Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-4/+8
| | | | | | | when result of PyInt_AsLong() or PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* Issue #16230: Fix a crash in select.select() when one the lists changes size ↵Antoine Pitrou2012-11-011-4/+1
| | | | | | while iterated on. Patch by Serhiy Storchaka.
* Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-281-8/+1
| | | | greater than FD_SETSIZE.
* Fix closes issue 11568 - update select.epoll.register docstring with mention ↵Senthil Kumaran2011-06-261-1/+1
| | | | of correct behavior.
* issue 10295Kristján Valur Jónsson2010-11-031-1/+1
| | | | Make selectmodule.c use winsock2 like socketmodule does.
* Merged revisions 85554 via svnmerge fromR. David Murray2010-10-161-0/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85554 | r.david.murray | 2010-10-15 19:12:57 -0400 (Fri, 15 Oct 2010) | 4 lines #9862: On AIX PIPE_BUF is broken. Make it 512. Patch by Sébastien Sablé. ........
* Merged revisions ↵Georg Brandl2010-08-021-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 83536,83546-83548,83550,83554-83555,83558,83563,83565,83571,83574-83575 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83536 | georg.brandl | 2010-08-02 19:49:25 +0200 (Mo, 02 Aug 2010) | 1 line #8578: mention danger of not incref'ing weak referenced object. ........ r83546 | georg.brandl | 2010-08-02 21:16:34 +0200 (Mo, 02 Aug 2010) | 1 line #7973: Fix distutils options spelling. ........ r83547 | georg.brandl | 2010-08-02 21:19:26 +0200 (Mo, 02 Aug 2010) | 1 line #7386: add example that shows that trailing path separators are stripped. ........ r83548 | georg.brandl | 2010-08-02 21:23:34 +0200 (Mo, 02 Aug 2010) | 1 line #8172: how does one use a property? ........ r83550 | georg.brandl | 2010-08-02 21:32:43 +0200 (Mo, 02 Aug 2010) | 1 line #9451: strengthen warning about __*__ special name usage. ........ r83554 | georg.brandl | 2010-08-02 21:43:05 +0200 (Mo, 02 Aug 2010) | 1 line #7280: note about nasmw.exe. ........ r83555 | georg.brandl | 2010-08-02 21:44:48 +0200 (Mo, 02 Aug 2010) | 1 line #8861: remove unused variable. ........ r83558 | georg.brandl | 2010-08-02 22:05:19 +0200 (Mo, 02 Aug 2010) | 1 line #8648: document UTF-7 codec functions. ........ r83563 | georg.brandl | 2010-08-02 22:21:21 +0200 (Mo, 02 Aug 2010) | 1 line #9037: add example how to raise custom exceptions from C code. ........ r83565 | georg.brandl | 2010-08-02 22:27:20 +0200 (Mo, 02 Aug 2010) | 1 line #9111: document that do_help() looks at docstrings. ........ r83571 | georg.brandl | 2010-08-02 22:44:34 +0200 (Mo, 02 Aug 2010) | 1 line Clarify that abs() is not a namespace. ........ r83574 | georg.brandl | 2010-08-02 22:47:56 +0200 (Mo, 02 Aug 2010) | 1 line #6867: epoll.register() returns None. ........ r83575 | georg.brandl | 2010-08-02 22:52:10 +0200 (Mo, 02 Aug 2010) | 1 line #9238: zipfile does handle archive comments. ........
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-1219/+1219
|
* add spaceBenjamin Peterson2010-04-151-1/+1
|
* remove a optimization that resulted in unexpected behavior #8929Benjamin Peterson2010-04-061-8/+0
|
* #6544: fix refleak in kqueue, occurring in certain error conditions.Georg Brandl2010-02-231-16/+15
|
* #7595: fix typo in argument default constant.Georg Brandl2009-12-291-1/+1
|
* Issue #7211: Allow 64-bit values for the `ident` and `data` fields of keventAntoine Pitrou2009-11-041-12/+42
| | | | | | objects on 64-bit systems. Patch by Michael Broghton. I will revert this checkin if it causes problems on our BSD buildbots.
* #5910: fix kqueue for calls with more than one event.Georg Brandl2009-07-161-3/+4
|
* #6416: Fix compilation of the select module on Windows, as well as ↵Amaury Forgeot d'Arc2009-07-091-0/+2
| | | | | | | | test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
* Adds the select.PIPE_BUF attribute to expose the system constant.Gregory P. Smith2009-07-031-0/+2
|
* #3852: fix some select.kqueue and kevent docs.Georg Brandl2008-09-211-1/+1
|
* Issue #2620: Overflow checking when allocating or reallocating memoryGregory P. Smith2008-07-221-1/+3
| | | | | | | | was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-1/+1
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-1/+1
|
* Fix and simplify error handling, silencing a compiler warning.Georg Brandl2008-03-261-7/+4
|
* Minor docstring typosAndrew M. Kuchling2008-03-261-5/+5
|
* Applied patch #1657 epoll and kqueue wrappers for the select moduleChristian Heimes2008-03-211-12/+1163
| | | | | The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help. TODO: Finish documentation documentation
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-1/+1
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-3/+2
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Patch #1516912: improve Modules support for OpenVMS.Neal Norwitz2006-07-101-9/+9
|
* Patch #1495999: Part two of Windows CE changes.Martin v. Löwis2006-06-101-1/+1
| | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
* Make use of METH_O and METH_NOARGS where possible.Georg Brandl2006-05-291-19/+8
| | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
* Patch 1471761 - test for broken poll at runtimeRonald Oussoren2006-04-231-17/+66
| | | | | This patch checks if poll is broken when the select module is loaded instead of doing so at configure-time. This functionality is only active on Mac OS X.
* Merge ssize_t branch.Martin v. Löwis2006-02-151-1/+1
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxintNeal Norwitz2005-11-031-0/+2
| | | | | | Need to check return result of PyInt_AsLong() Will backport.
* [Bug #923315] Produce correct result on AIXAndrew M. Kuchling2004-08-071-1/+5
|
* Added configure check for broken poll() on some unix systems (MacOS X 10.3)Nicholas Bastin2004-03-211-6/+6
| | | | Fixes SF Bug #850981
* Simplify and speedup uses of Py_BuildValue():Raymond Hettinger2003-10-121-2/+2
| | | | | | * Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a)
* select.select() now accepts a sequence (as defined by PySequence_Fast()) forBrett Cannon2003-09-101-18/+18
| | | | | | its first three arguments. Closes RFE #798046 .