git: 9c7b1bf27122 - main - linux: Export linux_common_openflags()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 May 2024 19:42:11 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9c7b1bf27122f975ea70c81931d48b751f8a1bfa commit 9c7b1bf27122f975ea70c81931d48b751f8a1bfa Author: Ricardo Branco <rbranco@suse.de> AuthorDate: 2024-05-17 20:08:24 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-05-23 19:40:46 +0000 linux: Export linux_common_openflags() Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1248 --- sys/compat/linux/linux_file.c | 2 +- sys/compat/linux/linux_file.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 1279490ae8be..5f510004c684 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -104,7 +104,7 @@ linux_creat(struct thread *td, struct linux_creat_args *args) } #endif -static int +int linux_common_openflags(int l_flags) { int bsd_flags; diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h index ce9feca154ed..2e56942b0f40 100644 --- a/sys/compat/linux/linux_file.h +++ b/sys/compat/linux/linux_file.h @@ -197,6 +197,7 @@ struct l_file_handle { }; int linux_enobufs2eagain(struct thread *, int, int); +int linux_common_openflags(int); #endif /*