summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 0730761..67903c5 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -100,6 +100,13 @@
#define LINUX_SOCK_MAX LINUX_SOCK_SEQPACKET
+#define LINUX_SOCK_TYPE_MASK 0xf
+
+/* Flags for socket, socketpair, accept4 */
+
+#define LINUX_SOCK_CLOEXEC LINUX_O_CLOEXEC
+#define LINUX_SOCK_NONBLOCK LINUX_O_NONBLOCK
+
struct l_ucred {
uint32_t pid;
uint32_t uid;
OpenPOWER on IntegriCloud