diff Modules/socketmodule.c @ 31867:51aaceeaabe1 legacy-trunk

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.
author Andrew MacIntyre <andymac@bullseye.apana.org.au>
date Sun, 04 Apr 2004 07:13:49 +0000
parents 29da8bdfeb4e
children ca2fb5cf2fd5
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sun Apr 04 07:11:43 2004 +0000
+++ b/Modules/socketmodule.c	Sun Apr 04 07:13:49 2004 +0000
@@ -874,7 +874,7 @@
 		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 @@
 {
 	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 @@
 {
 	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 @@
 #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