aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-11-17 19:51:47 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-11-17 19:51:47 +0000
commitde774e422e7f8abf9d4c6084165c9de66f11b2de (patch)
treeff6397cf93c024779e9af0dbaec208c2b9098c82 /sys/compat/linux/linux_file.h
parent46a5f8837dff05f6581b908170aeecb811f1e95e (diff)
linux(4): Implement name_to_handle_at(), open_by_handle_at()
They are similar to our getfhat(2) and fhopen(2) syscalls. Differential Revision: https://reviews.freebsd.org/D27111
Notes
Notes: svn path=/head/; revision=367773
Diffstat (limited to 'sys/compat/linux/linux_file.h')
-rw-r--r--sys/compat/linux/linux_file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h
index 9e93eda8546e..5a11e999ed59 100644
--- a/sys/compat/linux/linux_file.h
+++ b/sys/compat/linux/linux_file.h
@@ -36,6 +36,7 @@
#define LINUX_AT_EACCESS 0x200
#define LINUX_AT_REMOVEDIR 0x200
#define LINUX_AT_SYMLINK_FOLLOW 0x400
+#define LINUX_AT_EMPTY_PATH 0x1000
/*
* posix_fadvise advice
@@ -174,4 +175,10 @@
#define LINUX_HUGETLB_FLAG_ENCODE_2GB (31 << LINUX_HUGETLB_FLAG_ENCODE_SHIFT)
#define LINUX_HUGETLB_FLAG_ENCODE_16GB (34U << LINUX_HUGETLB_FLAG_ENCODE_SHIFT)
+struct l_file_handle {
+ l_uint handle_bytes;
+ l_int handle_type;
+ unsigned char f_handle[0];
+};
+
#endif /* !_LINUX_FILE_H_ */