* [PATCH] flag parameters: MIPS socket flags
@ 2008-05-14 5:36 Ulrich Drepper
0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 2008-05-14 5:36 UTC (permalink / raw)
To: linux-kernel, linux-mips; +Cc: akpm, torvalds
MIPS defines its own socket types. So we have to define the new socket
flags and the type mask for MIPS as well.
socket.h | 7 +++++++
1 file changed, 7 insertions(+)
Signed-off-by: Ulrich Drepper <drepper@redhat.com>
diff --git a/include/asm-mips/socket.h b/include/asm-mips/socket.h
index 63f6025..facc2d7 100644
--- a/include/asm-mips/socket.h
+++ b/include/asm-mips/socket.h
@@ -102,6 +102,13 @@ enum sock_type {
};
#define SOCK_MAX (SOCK_PACKET + 1)
+/* Mask which covers at least up to SOCK_MASK-1. The
+ * * remaining bits are used as flags. */
+#define SOCK_TYPE_MASK 0xf
+
+/* Flags for socket, socketpair, paccept */
+#define SOCK_CLOEXEC O_CLOEXEC
+#define SOCK_NONBLOCK O_NONBLOCK
#define ARCH_HAS_SOCKET_TYPES 1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-14 5:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-14 5:36 [PATCH] flag parameters: MIPS socket flags Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).