summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-04-04 07:13:49 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-04-04 07:13:49 (GMT)
commitd12dfbbcd90286067bc76b53fd48aedd3efbfdd2 (patch)
tree705b861acd23289abe061229348613beeca70b40 /Modules
parent69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c (diff)
downloadcpython-d12dfbbcd90286067bc76b53fd48aedd3efbfdd2.zip
cpython-d12dfbbcd90286067bc76b53fd48aedd3efbfdd2.tar.gz
cpython-d12dfbbcd90286067bc76b53fd48aedd3efbfdd2.tar.bz2
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this file never exists in the file system.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 7beb1cf..d973033 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -874,7 +874,7 @@ makesockaddr(int sockfd, struct sockaddr *addr, int addrlen)
return ret;
}
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
case AF_UNIX:
{
struct sockaddr_un *a = (struct sockaddr_un *) addr;
@@ -948,7 +948,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
{
switch (s->sock_family) {
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
case AF_UNIX:
{
struct sockaddr_un* addr;
@@ -1143,7 +1143,7 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret)
{
switch (s->sock_family) {
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
case AF_UNIX:
{
*len_ret = sizeof (struct sockaddr_un);
@@ -3649,7 +3649,7 @@ init_socket(void)
#ifdef AF_INET6
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
#endif /* AF_INET6 */
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
#endif /* AF_UNIX */
#ifdef AF_AX25