[Python-checkins] python/dist/src/Modules socketmodule.c, 1.286, 1.287

aimacintyre at users.sourceforge.net aimacintyre at users.sourceforge.net
Sun Apr 4 03:14:00 EDT 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31835

Modified Files:
	socketmodule.c 
Log Message:
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.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.286
retrieving revision 1.287
diff -C2 -d -r1.286 -r1.287
*** socketmodule.c	23 Mar 2004 23:16:53 -0000	1.286
--- socketmodule.c	4 Apr 2004 07:13:49 -0000	1.287
***************
*** 875,879 ****
  	}
  
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
  	case AF_UNIX:
  	{
--- 875,879 ----
  	}
  
! #if defined(AF_UNIX)
  	case AF_UNIX:
  	{
***************
*** 949,953 ****
  	switch (s->sock_family) {
  
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
  	case AF_UNIX:
  	{
--- 949,953 ----
  	switch (s->sock_family) {
  
! #if defined(AF_UNIX)
  	case AF_UNIX:
  	{
***************
*** 1144,1148 ****
  	switch (s->sock_family) {
  
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
  	case AF_UNIX:
  	{
--- 1144,1148 ----
  	switch (s->sock_family) {
  
! #if defined(AF_UNIX)
  	case AF_UNIX:
  	{
***************
*** 3650,3654 ****
  	PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
  #endif /* AF_INET6 */
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
  	PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
  #endif /* AF_UNIX */
--- 3650,3654 ----
  	PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
  #endif /* AF_INET6 */
! #if defined(AF_UNIX)
  	PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
  #endif /* AF_UNIX */




More information about the Python-checkins mailing list