[PATCH] flag parameters: MIPS socket flags

摘自: LKML  被阅读次数: 54


由'机器人'于 2008-05-14 14:03:20 提供


DateWed, 14 May 2008 01:36:55 -0400
FromUlrich Drepper <>
Subject[PATCH] flag parameters: MIPS socket flags
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
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

原文链接: http://lkml.org/lkml/2008/5/14/31
下载该patch