This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Patch for missing MSG_* flags in <bits/socket.h> on Linux
- To: libc-alpha Mailinglist <libc-alpha@sourceware.cygnus.com>
- Subject: Patch for missing MSG_* flags in <bits/socket.h> on Linux
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 13 Jun 1999 14:53:37 +0200
Linux 2.2.9 defines a number of MSG_* flags which aren't defined in
<bits/socket.h>. I'm appending a patch that defines most of these
flags. I didn't add the following from Linux:
#define MSG_CTLIGNORE 0x80000000
#define MSG_EOF MSG_FIN
#define MSG_CTLFLAGS (MSG_OOB|MSG_URG|MSG_FIN|MSG_SYN|MSG_RST)
Should we add these three defines also?
Andreas
1999-06-13 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/bits/socket.h: Add some missing
MSG_* flags from Linux 2.2.9.
--- sysdeps/unix/sysv/linux/bits/socket.h.~1~ Tue May 11 22:09:22 1999
+++ sysdeps/unix/sysv/linux/bits/socket.h Sun Jun 13 14:49:43 1999
@@ -174,8 +174,28 @@
#endif
MSG_CTRUNC = 0x08, /* Control data lost before delivery. */
#define MSG_CTRUNC MSG_CTRUNC
- MSG_PROXY = 0x10 /* Supply or ask second address. */
+ MSG_PROXY = 0x10, /* Supply or ask second address. */
#define MSG_PROXY MSG_PROXY
+ MSG_TRUNC = 0x20,
+#define MSG_TRUNC MSG_TRUNC
+ MSG_DONTWAIT = 0x40, /* Nonblocking IO. */
+#define MSG_DONTWAIT MSG_TRUNC
+ MSG_EOR = 0x80, /* End of record. */
+#define MSG_EOR MSG_EOR
+ MSG_WAITALL = 0x100, /* Wait for a full request. */
+#define MSG_WAITALL MSG_WAITALL
+ MSG_FIN = 0x200,
+#define MSG_FIN MSG_FIN
+ MSG_SYN = 0x400,
+#define MSG_SYN MSG_SYN
+ MSG_URG = 0x800,
+#define MSG_URG MSG_URG
+ MSG_RST = 0x1000,
+#define MSG_RST MSG_RST
+ MSG_ERRQUEUE = 0x2000,
+#define MSG_ERRQUEUE MSG_ERRQUEUE
+ MSG_NOSIGNAL = 0x4000
+#define MSG_NOSIGNAL MSG_NOSIGNAL
};
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de