Skip to contentSkip to conversation

flag parameters: MIPS socket flags

PATCH New Ulrich Drepper 1 participant 1 message May 14, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(+)
include/asm-mips/socket.h +7 -0
index 63f6025..facc2d7 100644
@@ -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