From patchwork Mon Apr 25 11:44:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 11876 Received: (qmail 17574 invoked by alias); 25 Apr 2016 11:44:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 17563 invoked by uid 89); 25 Apr 2016 11:44:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=__END_DECLS, socketh, socket.h, __end_decls X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: [PATCH] Add missing iucv related defines. Date: Mon, 25 Apr 2016 13:44:14 +0200 Lines: 53 Message-ID: <571E030E.4080508@linux.vnet.ibm.com> Mime-Version: 1.0 Cc: ursula.braun@de.ibm.com X-Mozilla-News-Host: news://news.gmane.org:119 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 Hi, this patch adds the missing SOL_IUCV socket level definition and socket options SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE which can be used with get/setsockopt(). SCM_IUCV_TRGCLS is needed to send/receive ancillary data with send/recvmsg(). The defines are copied from kernel-source: include/net/iucv/af_iucv.h include/linux/socket.h Okay to commit? ChangeLog: * sysdeps/unix/sysv/linux/netiucv/iucv.h (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE, SCM_IUCV_TRGCLS): New define. diff --git a/sysdeps/unix/sysv/linux/netiucv/iucv.h b/sysdeps/unix/sysv/linux/netiucv/iucv.h index 13cfe98..df1d918 100644 --- a/sysdeps/unix/sysv/linux/netiucv/iucv.h +++ b/sysdeps/unix/sysv/linux/netiucv/iucv.h @@ -35,4 +35,14 @@ struct sockaddr_iucv __END_DECLS +#define SOL_IUCV 277 /* IUCV level */ + +/* IUCV socket options (SOL_IUCV) */ +#define SO_IPRMDATA_MSG 0x0080 /* Send/recv IPRM_DATA msgs */ +#define SO_MSGLIMIT 0x1000 /* Get/set IUCV MSGLIMIT */ +#define SO_MSGSIZE 0x0800 /* Get maximum msgsize */ + +/* IUCV related control messages (scm) */ +#define SCM_IUCV_TRGCLS 0x0001 /* Target class control message */ + #endif