summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
AgeCommit message (Collapse)AuthorLines
2013-03-11Issue #17047: remove doubled words added in 3.3Terry Jan Reedy-1/+1
as reported by Serhiy Storchaka and Matthew Barnett.
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-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).
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-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).
2013-01-19Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-3/+3
when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-3/+3
when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
2012-09-10Make sure that *really* no more than sizeof(ifr.ifr_name) chars are ↵Christian Heimes-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
2012-08-14Merge 3.2 to defaultAndrew Svetlov-1/+1
2012-08-14Modules/socketmodule.c: netdb_lock: define static.Matthias Klose-1/+1
2012-06-23Remove useless test (flowinfo is unsigned).Charles-François Natali-2/+2
2012-06-23Remove useless test (flowinfo is unsigned).Charles-François Natali-2/+2
2012-04-07Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson-7/+66
2012-04-01Issue #14300: Under Windows, sockets created using socket.dup() now allow ↵Antoine Pitrou-1/+1
overlapped I/O. Patch by sbt.
2012-03-31Fix warning when compiling socketmodule.c with VS2010Kristján Valur Jónsson-0/+1
VS2010 defineds the old errno constants in addition to the WSA* ones.
2012-03-06Issue #10951: Fix warnings in the socket module.Ross Lagerwall-4/+4
2012-02-03Issue #13777: Add PF_SYSTEM sockets on OS X.Martin v. Löwis-0/+107
Patch by Michael Goderbauer.
2012-01-02Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali-8/+21
Vilmos Nebehaj.
2012-01-02Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali-8/+21
Vilmos Nebehaj.
2011-12-23Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson.Charles-François Natali-16/+9
2011-12-17Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by MichaelCharles-François Natali-0/+3
Farrell.
2011-12-17Issue #13560: os.strerror() now uses the current locale encoding instead of ↵Victor Stinner-3/+2
UTF-8
2011-12-16Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystemAntoine Pitrou-6/+19
encoding and the surrogateescape error handler, rather than UTF-8. Patch by David Watson.
2011-11-22Use the new Unicode APIVictor Stinner-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()
2011-11-17socket_gethostname() uses a wchar_t* with PyMem_Malloc() to avoid theVictor Stinner-16/+26
old Unicode API.
2011-11-10Issue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support.Charles-François Natali-0/+77
2011-10-25Issue #12619: Expose socket.SO_BINDTODEVICE constantVictor Stinner-0/+3
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-1/+1
2011-10-12PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou-60/+56
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-1/+3
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-07Issue #10141: fix socketmodule compilation on Linux systems with <linux/can.h>Charles-François Natali-3/+3
but without AF_CAN definition.
2011-10-06Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by MatthiasCharles-François Natali-0/+105
Fuchs, updated by Tiago Gonçalves.
2011-09-29Use the new Py_ARRAY_LENGTH macroVictor Stinner-2/+2
2011-08-28Issue #12837: POSIX.1-2008 allows socklen_t to be a signed integer: re-enableCharles-François Natali-1/+2
the check against negative values, and add a note on this surprising test. Patch by David Watson.
2011-08-28Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali-8/+4
greater than FD_SETSIZE.
2011-08-28Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali-8/+4
greater than FD_SETSIZE.
2011-08-24sock_sendmsg/sock_recvmsg: Use {0} to 0-initialize aggregate types withCharles-François Natali-7/+2
automatic storage class.
2011-08-24Issue12810: Remove check for negative unsigned value in socketmodule.c. PatchCharles-François Natali-1/+1
by Joel Stanley.
2011-08-23Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.hVictor Stinner-0/+4
Patch written by Remi Pointel.
2011-08-22Attempt to address Windows buildbot failuresNick Coghlan-1/+1
2011-08-22Add support for the send/recvmsg API to the socket module. Patch by David ↵Nick Coghlan-0/+809
Watson and Heiko Wundram. (Closes #6560)
2011-08-14#12725: merge with 3.2.Ezio Melotti-3/+3
2011-08-14#12725: fix working. Patch by Ben Hayden.Ezio Melotti-3/+3
2011-06-04merge heads.Gregory P. Smith-4/+5
2011-05-26socket.sendto(): exit directly after setting the errorVictor Stinner-4/+5
Dummy change to avoid a false positive with the Clang Static Analyzer.
2011-05-22Further documentation updates to be consistent with doc standards and commentsGregory P. Smith-2/+2
Ezio Melotti pointed out.
2011-05-20Issue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()Charles-François Natali-31/+30
accept and return str instead of bytes arrays. Add some more tests.
2011-05-15issue #1746656: Fix for OS X. configure and #include changes so that the socketGregory P. Smith-0/+8
module compiles again on OS X with its more annoying #include requirements.
2011-05-15Issue #1746656: Add if_nameindex, if_nametoindex, if_indextonameGregory P. Smith-0/+110
methods to the socket module.
2011-05-10Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou-4/+7
order to accept exactly one connection. Patch by Daniel Evers.
2011-05-10Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou-4/+7
order to accept exactly one connection. Patch by Daniel Evers.
2011-03-17Issue #5421: merge fixAntoine Pitrou-6/+17