summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #17047: remove doubled words added in 3.3Terry Jan Reedy2013-03-111-1/+1
| | | | as reported by Serhiy Storchaka and Matthew Barnett.
* Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
|\ | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
| | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
* | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-3/+3
|\ \ | |/ | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-3/+3
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | Make sure that *really* no more than sizeof(ifr.ifr_name) chars are ↵Christian Heimes2012-09-091-1/+2
| | | | | | | | strcpy-ed to ifr.ifr_name and that the string is *always* NUL terminated. New code shouldn't use strcpy(), too. CID 719692
* | Merge 3.2 to defaultAndrew Svetlov2012-08-141-1/+1
|\ \ | |/
| * Modules/socketmodule.c: netdb_lock: define static.Matthias Klose2012-08-141-1/+1
| |
* | Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
|\ \ | |/
| * Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
| |
* | Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson2012-04-071-7/+66
| |
* | Issue #14300: Under Windows, sockets created using socket.dup() now allow ↵Antoine Pitrou2012-03-311-1/+1
| | | | | | | | | | | | overlapped I/O. Patch by sbt.
* | Fix warning when compiling socketmodule.c with VS2010Kristján Valur Jónsson2012-03-311-0/+1
| | | | | | | | VS2010 defineds the old errno constants in addition to the WSA* ones.
* | Issue #10951: Fix warnings in the socket module.Ross Lagerwall2012-03-061-4/+4
| |
* | Issue #13777: Add PF_SYSTEM sockets on OS X.Martin v. Löwis2012-02-031-0/+107
| | | | | | | | Patch by Michael Goderbauer.
* | Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-8/+21
|\ \ | |/ | | | | Vilmos Nebehaj.
| * Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-8/+21
| | | | | | | | Vilmos Nebehaj.
* | Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson.Charles-François Natali2011-12-231-16/+9
| |
* | Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by MichaelCharles-François Natali2011-12-171-0/+3
| | | | | | | | Farrell.
* | Issue #13560: os.strerror() now uses the current locale encoding instead of ↵Victor Stinner2011-12-171-3/+2
| | | | | | | | UTF-8
* | Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystemAntoine Pitrou2011-12-161-6/+19
| | | | | | | | | | encoding and the surrogateescape error handler, rather than UTF-8. Patch by David Watson.
* | Use the new Unicode APIVictor Stinner2011-11-221-1/+1
| | | | | | | | | | | | | | | | * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
* | socket_gethostname() uses a wchar_t* with PyMem_Malloc() to avoid theVictor Stinner2011-11-171-16/+26
| | | | | | | | old Unicode API.
* | Issue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support.Charles-François Natali2011-11-101-0/+77
| |
* | Issue #12619: Expose socket.SO_BINDTODEVICE constantVictor Stinner2011-10-251-0/+3
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-60/+56
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+3
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Issue #10141: fix socketmodule compilation on Linux systems with <linux/can.h>Charles-François Natali2011-10-071-3/+3
| | | | | | | | but without AF_CAN definition.
* | Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by MatthiasCharles-François Natali2011-10-061-0/+105
| | | | | | | | Fuchs, updated by Tiago Gonçalves.
* | Use the new Py_ARRAY_LENGTH macroVictor Stinner2011-09-281-2/+2
| |
* | Issue #12837: POSIX.1-2008 allows socklen_t to be a signed integer: re-enableCharles-François Natali2011-08-281-1/+2
| | | | | | | | | | the check against negative values, and add a note on this surprising test. Patch by David Watson.
* | Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-281-8/+4
|\ \ | |/ | | | | greater than FD_SETSIZE.
| * Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-281-8/+4
| | | | | | | | greater than FD_SETSIZE.
* | sock_sendmsg/sock_recvmsg: Use {0} to 0-initialize aggregate types withCharles-François Natali2011-08-241-7/+2
| | | | | | | | automatic storage class.
* | Issue12810: Remove check for negative unsigned value in socketmodule.c. PatchCharles-François Natali2011-08-241-1/+1
| | | | | | | | by Joel Stanley.
* | Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.hVictor Stinner2011-08-231-0/+4
| | | | | | | | Patch written by Remi Pointel.
* | Attempt to address Windows buildbot failuresNick Coghlan2011-08-221-1/+1
| |
* | Add support for the send/recvmsg API to the socket module. Patch by David ↵Nick Coghlan2011-08-221-0/+809
| | | | | | | | Watson and Heiko Wundram. (Closes #6560)
* | #12725: merge with 3.2.Ezio Melotti2011-08-141-3/+3
|\ \ | |/
| * #12725: fix working. Patch by Ben Hayden.Ezio Melotti2011-08-141-3/+3
| |
* | merge heads.Gregory P. Smith2011-06-051-4/+5
|\ \
| * | socket.sendto(): exit directly after setting the errorVictor Stinner2011-05-261-4/+5
| | | | | | | | | | | | Dummy change to avoid a false positive with the Clang Static Analyzer.
* | | Further documentation updates to be consistent with doc standards and commentsGregory P. Smith2011-05-231-2/+2
|/ / | | | | | | Ezio Melotti pointed out.
* | Issue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()Charles-François Natali2011-05-201-31/+30
| | | | | | | | accept and return str instead of bytes arrays. Add some more tests.
* | issue #1746656: Fix for OS X. configure and #include changes so that the socketGregory P. Smith2011-05-151-0/+8
| | | | | | | | module compiles again on OS X with its more annoying #include requirements.
* | Issue #1746656: Add if_nameindex, if_nametoindex, if_indextonameGregory P. Smith2011-05-151-0/+110
| | | | | | | | methods to the socket module.
* | Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou2011-05-101-4/+7
|\ \ | |/ | | | | order to accept exactly one connection. Patch by Daniel Evers.
| * Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou2011-05-101-4/+7
| | | | | | | | order to accept exactly one connection. Patch by Daniel Evers.
* | Issue #5421: merge fixAntoine Pitrou2011-03-171-6/+17
|\ \ | |/