summaryrefslogtreecommitdiff
path: root/Modules/selectmodule.c
AgeCommit message (Collapse)AuthorLines
2004-03-22Added check for broken poll on OSes where it exists but sets errno forNicholas Bastin-6/+6
bad file descriptor. Fixes SF Bug #850981
2003-02-11SF bug 684667: Modules/selectmodule.c returns NULL without exception set.Tim Peters-1/+1
select_select() didn't set an exception in the SELECT_USES_HEAP case when malloc() returned NULL.
2002-11-18Don't use PyNumber_Float() since it's is nearly useless. Instead, rely onNeil Schemenauer-4/+2
PyFloat_AsDouble to generate a good error message.
2002-11-12Use PyInt_AsLong instead of PyInt_AS_LONG after the call toWalter Dörwald-1/+1
PyNumber_Int, because now PyNumber_Int might return a long, and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't. This closes SF bug #629989.
2002-09-24I did fix too much - including winsock.h is sufficient.Thomas Heller-1/+1
2002-09-24On Windows, call WSAGetLastError() to retrieve the error number.Thomas Heller-1/+7
Bugfix candidate, will backport to release22-maint myself.
2002-07-28SF patch #577031, remove PyArg_Parse() since it's deprecatedNeal Norwitz-2/+14
2002-07-23Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." linkMark Hammond-1/+1
command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
2002-07-17Removed more stray instances of statichere, but left _sre.c alone.Tim Peters-1/+1
2002-07-17staticforward bites the dust.Jeremy Hylton-1/+1
The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
2002-06-13Patch #568124: Add doc string macros.Martin v. Löwis-12/+12
2002-05-31Remove unused static functionNeal Norwitz-19/+0
2002-04-01Use the PyModule_Add*() APIs instead of manipulating the module dictFred Drake-14/+15
directly.
2002-03-03OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre-1/+1
Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
2002-01-12Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis-3/+0
2001-12-08Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum-1/+1
type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
2001-10-25Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck)Guido van Rossum-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.)
2001-10-24SF patch #474590 -- RISC OS supportGuido van Rossum-8/+0
2001-08-16Stop adding 3 to FD_SETSIZE -- it makes no sense. If it turns out itTim Peters-15/+11
actually does <wink>, perhaps an Insure run will catch it. Also removed senseless Windows comment.
2001-08-16Fixed a couple of minor formatting nits where lines were > 79 columns wide.Barry Warsaw-2/+4
2001-08-16select_select(): Closing bug #448351 the easy way, i.e. by changingBarry Warsaw-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.
2001-07-19Make more warnings go away on the SGI compiler.Fred Drake-3/+3
This is part of SF patch #424992.
2001-07-14[Bug #438050]Andrew M. Kuchling-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.
2001-05-21Add :method info to the PyArg_ParseTuple() format strings for poll objects.Fred Drake-3/+3
2001-03-02RISCOS changes by dschwertbergerGuido van Rossum-0/+9
2000-12-12SF bug 110843: Low FD_SETSIZE limit on Win32 (PR#41). Boosted to 512.Tim Peters-1/+10
2000-09-28Add #ifdef's for platforms that don't have the constants POLLRDNORM andAndrew M. Kuchling-0/+8
friends. (Modified version of patch #101682 from Neil Schemenauer)
2000-09-26Rationalize use of limits.h, moving the inclusion to Python.h.Fred Drake-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.
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-08-31Peter Schneider-Kamp <nowonder@nowonder.de>:Fred Drake-1/+1
Remove some of GCC's warning in -Wstrict-prototypes mode. This closes SourceForge patch #101342.
2000-08-25Not every OS that support poll seems to support POLLMSG.Sjoerd Mullender-0/+2
2000-08-25Add interface to poll() system call (SF patch #100852)Andrew M. Kuchling-2/+319
2000-07-31merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp-1/+0
marked my*.h as obsolete
2000-07-22Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters-1/+1
possible.
2000-07-22Remove unused variable.Thomas Wouters-1/+0
2000-07-21Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters-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 ;)
2000-07-13Use PyObject_AsFileDescriptorAndrew M. Kuchling-24/+2
2000-07-11One more include of limits.h (possibly to be moved elsewhere when there isJack Jansen-0/+3
consensus where it should go).
2000-07-10ANSI-ficationPeter Schneider-Kamp-12/+4
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-28Trent Mick:Guido van Rossum-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?]
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-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.)
2000-02-29Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum-1/+1
PyArg_ParseTuple() format string arguments as possible.
2000-01-14According to Ron Bickers, and with apparent approval of ChrisGuido van Rossum-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!
1999-08-27Patch by Mark Hammond to avoid certain header files on Windows/CE.Guido van Rossum-0/+2
1998-12-04Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum-1/+1
on BeOS or Windows.
1998-08-04Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum-1/+8
1998-07-02On Windows, put the select file descriptor arrays on the heap.Guido van Rossum-0/+22
This is because they are huge and the stack is limited on Windows. Other platforms keep declaring it on the stack.
1998-06-28Added doc strings.Guido van Rossum-2/+30