summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_fcntl.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-02-04 20:04:53 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-02-04 20:04:53 +0000
commitfe2dfdf30c1e3de5e3030595563fa3efff8022a5 (patch)
tree2a8ca2ea6c253d2a038355c4ccf7c02fac62fe2a /sys/compat/linux/linux_fcntl.h
parent79e41f94496d2e21b3d34bb44023f669627758c9 (diff)
fcntl64 support; okay deraadt@
Diffstat (limited to 'sys/compat/linux/linux_fcntl.h')
-rw-r--r--sys/compat/linux/linux_fcntl.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_fcntl.h b/sys/compat/linux/linux_fcntl.h
index 326e4c804df..9f3ea5ebd47 100644
--- a/sys/compat/linux/linux_fcntl.h
+++ b/sys/compat/linux/linux_fcntl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_fcntl.h,v 1.2 1996/04/17 05:23:48 mickey Exp $ */
+/* $OpenBSD: linux_fcntl.h,v 1.3 2002/02/04 20:04:52 provos Exp $ */
/* $NetBSD: linux_fcntl.h,v 1.1 1995/02/28 23:25:40 fvdl Exp $ */
/*
@@ -68,6 +68,10 @@
#define LINUX_F_SETOWN 8
#define LINUX_F_GETOWN 9
+#define LINUX_F_GETLK64 12
+#define LINUX_F_SETLK64 13
+#define LINUX_F_SETLKW64 14
+
#define LINUX_F_RDLCK 0
#define LINUX_F_WRLCK 1
#define LINUX_F_UNLCK 2
@@ -88,4 +92,12 @@ struct linux_flock {
linux_pid_t l_pid;
};
+struct linux_flock64 {
+ short l_type;
+ short l_whence;
+ linux_loff_t l_start;
+ linux_loff_t l_len;
+ linux_pid_t l_pid;
+};
+
#endif /* _LINUX_FCNTL_H */