summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
AgeCommit message (Collapse)AuthorLines
2014-01-14remove overly strict assertion (closes #20251)Benjamin Peterson-1/+0
2014-01-13merge 3.2 (#20246)Benjamin Peterson-0/+5
2014-01-13complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson-0/+5
2013-08-27Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka-4/+4
error messages and comments.
2013-07-25Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes-2/+0
CID 982369
2013-06-19Issue #18259: Declare sethostname in socketmodule.c for AIXChristian Heimes-0/+5
2013-06-10Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren-1/+1
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-03Close #18109: os.uname() now decodes fields from the locale encoding, andVictor Stinner-8/+8
socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
2013-05-24Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren-0/+9
Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
2013-05-16C89 declaration complianceBenjamin Peterson-1/+2
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