aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2016-04-27 09:08:29 +0200
committerStefan Liebler <stli@linux.vnet.ibm.com>2016-04-27 09:08:29 +0200
commitb06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b (patch)
treef6bfb71dde202ad254db0d29d8119fdc8b3d36e5 /sysdeps
parent045cd3190a357a43c5b2b80d52e78858e73bfd76 (diff)
downloadglibc-b06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b.tar
glibc-b06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b.tar.gz
glibc-b06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b.tar.bz2
glibc-b06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b.zip
Add missing iucv related defines.
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
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/netiucv/iucv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/netiucv/iucv.h b/sysdeps/unix/sysv/linux/netiucv/iucv.h
index 13cfe98f09..df1d918ff1 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