This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add PF_IUCV and AF_IUCV.


Hi,
in February this year the support for AF_IUCV sockets has been added
to the linux kernel. It is a protocol used on the z/VM hypervisor to
communicate between virtual machines. The linux version of socket.h
uses 32 as the id for PF_IUCV and AF_IUCV. This patch adds them to
the linux specific socket.h version in glibc as well.

-- 
blue skies,
  Martin.

"Reality continues to ruin my life." - Calvin.

---

2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV. 


diff -urpN libc/sysdeps/unix/sysv/linux/bits/socket.h libc-iucv/sysdeps/unix/sysv/linux/bits/socket.h
--- libc/sysdeps/unix/sysv/linux/bits/socket.h	2007-05-07 14:16:43.000000000 +0200
+++ libc-iucv/sysdeps/unix/sysv/linux/bits/socket.h	2007-06-29 15:11:26.000000000 +0200
@@ -90,7 +90,8 @@ enum __socket_type
 #define	PF_PPPOX	24	/* PPPoX sockets.  */
 #define	PF_WANPIPE	25	/* Wanpipe API sockets.  */
 #define	PF_BLUETOOTH	31	/* Bluetooth sockets.  */
-#define	PF_MAX		32	/* For now..  */
+#define	PF_IUCV		32	/* IUCV sockets.  */
+#define	PF_MAX		33	/* For now..  */
 
 /* Address families.  */
 #define	AF_UNSPEC	PF_UNSPEC
@@ -122,6 +123,7 @@ enum __socket_type
 #define	AF_PPPOX	PF_PPPOX
 #define	AF_WANPIPE	PF_WANPIPE
 #define	AF_BLUETOOTH	PF_BLUETOOTH
+#define	AF_IUCV		PF_IUCV
 #define	AF_MAX		PF_MAX
 
 /* Socket level values.  Others are defined in the appropriate headers.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]