aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/bsd-file.h
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2022-01-31 13:32:41 -0700
committerWarner Losh <imp@bsdimp.com>2022-02-26 21:05:18 -0700
commitc5c84d16519abf3909bad77ef03db36801f560d5 (patch)
treeda9eada3ecc44ad139152422fef0c11bc336b6ed /bsd-user/bsd-file.h
parentdeeff83b47683a078c7f2ff057f4388258246f55 (diff)
downloadqemu-c5c84d16519abf3909bad77ef03db36801f560d5.zip
qemu-c5c84d16519abf3909bad77ef03db36801f560d5.tar.gz
qemu-c5c84d16519abf3909bad77ef03db36801f560d5.tar.bz2
bsd-user/bsd-file.h: Implementation details for the filesystem calls
An include file that pulls in all the definitions needed for the file related system calls. This also includes the host definitions to implement the system calls and some helper routines to lock/unlock different aspects of the system call arguments. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/bsd-file.h')
-rw-r--r--bsd-user/bsd-file.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
new file mode 100644
index 0000000..f0c3f34
--- /dev/null
+++ b/bsd-user/bsd-file.h
@@ -0,0 +1,30 @@
+/*
+ * file related system call shims and definitions
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef BSD_FILE_H_
+#define BSD_FILE_H_
+
+#include "qemu/path.h"
+
+extern struct iovec *lock_iovec(int type, abi_ulong target_addr, int count,
+ int copy);
+extern void unlock_iovec(struct iovec *vec, abi_ulong target_addr, int count,
+ int copy);
+
+#endif /* !BSD_FILE_H_ */