summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 16:32:35 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 16:32:35 +0000
commit6c949662c545dd9a7ca7b073ff0569710cd03772 (patch)
tree07c40ab4281cb22e9f1720db516f5a766de8bda2 /sys/compat/linux/linux_file.h
parent220551826587846e865838bbffb78ba84fcc0a30 (diff)
downloadFreeBSD-src-6c949662c545dd9a7ca7b073ff0569710cd03772.zip
FreeBSD-src-6c949662c545dd9a7ca7b073ff0569710cd03772.tar.gz
MFC r283438:
Add several fcntl flags.
Diffstat (limited to 'sys/compat/linux/linux_file.h')
-rw-r--r--sys/compat/linux/linux_file.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h
index b4a0526..f27d5b4 100644
--- a/sys/compat/linux/linux_file.h
+++ b/sys/compat/linux/linux_file.h
@@ -91,6 +91,33 @@
#define LINUX_F_SETOWN 8
#define LINUX_F_GETOWN 9
#endif
+#ifndef LINUX_F_SETSIG
+#define LINUX_F_SETSIG 10
+#define LINUX_F_GETSIG 11
+#endif
+#ifndef LINUX_F_SETOWN_EX
+#define LINUX_F_SETOWN_EX 15
+#define LINUX_F_GETOWN_EX 16
+#define LINUX_F_GETOWNER_UIDS 17
+#endif
+
+#define LINUX_F_SPECIFIC_BASE 1024
+
+#define LINUX_F_SETLEASE (LINUX_F_SPECIFIC_BASE + 0)
+#define LINUX_F_GETLEASE (LINUX_F_SPECIFIC_BASE + 1)
+#define LINUX_F_CANCELLK (LINUX_F_SPECIFIC_BASE + 5)
+#define LINUX_F_DUPFD_CLOEXEC (LINUX_F_SPECIFIC_BASE + 6)
+#define LINUX_F_NOTIFY (LINUX_F_SPECIFIC_BASE + 2)
+#define LINUX_F_SETPIPE_SZ (LINUX_F_SPECIFIC_BASE + 7)
+#define LINUX_F_GETPIPE_SZ (LINUX_F_SPECIFIC_BASE + 8)
+
+#define LINUX_F_GETLKP 36
+#define LINUX_F_SETLKP 37
+#define LINUX_F_SETLKPW 38
+
+#define LINUX_F_OWNER_TID 0
+#define LINUX_F_OWNER_PID 1
+#define LINUX_F_OWNER_PGRP 2
#ifndef LINUX_F_RDLCK
#define LINUX_F_RDLCK 0
OpenPOWER on IntegriCloud