summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck)Guido van Rossum2001-10-251-3/+13
| | | | | | | | Replace some tortuous code that was trying to be clever but forgot to DECREF the key and value, by more longwinded but obviously correct code. (Inspired by but not copying the fix from SF patch #475033.)
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-8/+0
|
* Stop adding 3 to FD_SETSIZE -- it makes no sense. If it turns out itTim Peters2001-08-161-15/+11
| | | | | actually does <wink>, perhaps an Insure run will catch it. Also removed senseless Windows comment.
* Fixed a couple of minor formatting nits where lines were > 79 columns wide.Barry Warsaw2001-08-161-2/+4
|
* select_select(): Closing bug #448351 the easy way, i.e. by changingBarry Warsaw2001-08-161-8/+21
| | | | | | | | | | the "#ifdef MS_WINDOWS" to "#ifdef SELECT_USES_HEAP" and by setting SELECT_USES_HEAP when FD_SETSIZE > 1024. The indirection seems useful since this subtly changes the path that "normal" Windows programs take (where Timmie sez FD_SETSIZE = 512). If that's a problem for Windows, he has only one place to change.
* Make more warnings go away on the SGI compiler.Fred Drake2001-07-191-3/+3
| | | | This is part of SF patch #424992.
* [Bug #438050]Andrew M. Kuchling2001-07-141-1/+3
| | | | | | Include sys/poll.h if it was found by the configure script. The OpenGroup spec says poll.h is the correct header file to use, so that file is preferred.
* Add :method info to the PyArg_ParseTuple() format strings for poll objects.Fred Drake2001-05-211-3/+3
|
* RISCOS changes by dschwertbergerGuido van Rossum2001-03-021-0/+9
|
* SF bug 110843: Low FD_SETSIZE limit on Win32 (PR#41). Boosted to 512.Tim Peters2000-12-121-1/+10
|
* Add #ifdef's for platforms that don't have the constants POLLRDNORM andAndrew M. Kuchling2000-09-281-0/+8
| | | | friends. (Modified version of patch #101682 from Neil Schemenauer)
* Rationalize use of limits.h, moving the inclusion to Python.h.Fred Drake2000-09-261-3/+0
| | | | | | | | Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Peter Schneider-Kamp <nowonder@nowonder.de>:Fred Drake2000-08-311-1/+1
| | | | | | Remove some of GCC's warning in -Wstrict-prototypes mode. This closes SourceForge patch #101342.
* Not every OS that support poll seems to support POLLMSG.Sjoerd Mullender2000-08-251-0/+2
|
* Add interface to poll() system call (SF patch #100852)Andrew M. Kuchling2000-08-251-2/+319
|
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-311-1/+0
| | | | marked my*.h as obsolete
* Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters2000-07-221-1/+1
| | | | possible.
* Remove unused variable.Thomas Wouters2000-07-221-1/+0
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Use PyObject_AsFileDescriptorAndrew M. Kuchling2000-07-131-24/+2
|
* One more include of limits.h (possibly to be moved elsewhere when there isJack Jansen2000-07-111-0/+3
| | | | consensus where it should go).
* ANSI-ficationPeter Schneider-Kamp2000-07-101-12/+4
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick:Guido van Rossum2000-06-281-3/+7
| | | | | | | | | | | | | | This patches fixes a possible overflow of the optional timeout parameter for the select() function (selectmodule.c). This timeout is passed in as a double and then truncated to an int. If the double is sufficiently large you can get unexpected results as it overflows. This patch raises an overflow if the given select timeout overflows. [GvR: To my embarrassment, the original code was assuming an int could always hold a million. Note that the overflow check doesn't test for a very large *negative* timeout passed in -- but who in the world would do such a thing?]
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-3/+3
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-1/+1
| | | | PyArg_ParseTuple() format string arguments as possible.
* According to Ron Bickers, and with apparent approval of ChrisGuido van Rossum2000-01-141-1/+1
| | | | | | Herborth, the code in list2set() that sets max unconditionally to 0 should not be used on BeOS. So be it. Anybody using BeOS, please test!
* Patch by Mark Hammond to avoid certain header files on Windows/CE.Guido van Rossum1999-08-271-0/+2
|
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-1/+8
|
* On Windows, put the select file descriptor arrays on the heap.Guido van Rossum1998-07-021-0/+22
| | | | | This is because they are huge and the stack is limited on Windows. Other platforms keep declaring it on the stack.
* Added doc strings.Guido van Rossum1998-06-281-2/+30
|
* os2 patch by Jeff RushGuido van Rossum1997-11-221-0/+5
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-3/+1
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* list2set(): correct return value (an int, not a PyObject*).Barry Warsaw1996-12-161-1/+1
|
* list2set(): PyList_GetItem could fail.Barry Warsaw1996-12-131-1/+3
|
* Reworked to eliminate all potential memory problems, includingBarry Warsaw1996-12-121-74/+111
| | | | deletion of object from list argument during callout to fileno().
* Several changes... Guido *please* take a look!Barry Warsaw1996-12-121-163/+201
| | | | | | | | | | | | | | | | | | 1. Renamed 2. Several coding styles were being used here, owing to the multiple contributors. I tried to convert everything to standard "python" coding style for indentation, paren and brace placement, etc. 3. There were several potential error conditions that were never being checked, and where I saw them, I added checks of return values, etc. I'm pretty sure I got them all. 4. There were some old-style (pre PyArg_ParseTuple) argument extraction and these were converted to use PyArg_ParseTuple. All changes compile and run with the new test_select.py module, at least on my Solaris/Sparc box.
* Add ``extern void bzero();'' for SGI, to keep gcc -Wall happy.Guido van Rossum1996-12-091-0/+5
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+4
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Slightly different Windows ifdefsGuido van Rossum1996-06-281-1/+1
|
* Yet another pass at fd2obj -- this time for WindowsGuido van Rossum1996-06-121-29/+58
|
* fix subtle refcnt bugGuido van Rossum1995-03-291-10/+11
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-6/+9
|
* Fixed a couple of bugs: getargs doesn't use % escapes, and secondsSjoerd Mullender1993-11-021-2/+2
| | | | must be set after timeout is initialized.
* * selectmodule.c (select_select): timeout argument may be None with sameGuido van Rossum1993-11-011-6/+12
| | | | meaning as no 4th argument