From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18523 invoked by alias); 29 Jun 2007 13:20:05 -0000 Received: (qmail 18496 invoked by uid 22791); 29 Jun 2007 13:20:03 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Jun 2007 13:20:00 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id l5TDJug11398228 for ; Fri, 29 Jun 2007 13:19:56 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l5TDJuuH2101476 for ; Fri, 29 Jun 2007 15:19:56 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l5TDJurF023200 for ; Fri, 29 Jun 2007 15:19:56 +0200 Received: from [9.152.198.78] (dyn-9-152-198-78.boeblingen.de.ibm.com [9.152.198.78]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l5TDJtJs023168 for ; Fri, 29 Jun 2007 15:19:55 +0200 Subject: [patch] Add PF_IUCV and AF_IUCV. From: Martin Schwidefsky Reply-To: schwidefsky@de.ibm.com To: Glibc hackers Content-Type: text/plain Date: Fri, 29 Jun 2007 13:20:00 -0000 Message-Id: <1183123320.28897.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 Content-Transfer-Encoding: 7bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00021.txt.bz2 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 * 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.