]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
bsd-user: Add bsd-ioctl.h header
authorStacey Son <sson@FreeBSD.org>
Sat, 14 Mar 2026 04:13:18 +0000 (22:13 -0600)
committerWarner Losh <imp@bsdimp.com>
Thu, 7 May 2026 02:18:41 +0000 (20:18 -0600)
Add bsd-ioctl.h header declaring the public ioctl emulation API:
do_bsd_ioctl() for processing ioctl system calls and init_bsd_ioctl()
for initialization.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
bsd-user/bsd-ioctl.h [new file with mode: 0644]

diff --git a/bsd-user/bsd-ioctl.h b/bsd-user/bsd-ioctl.h
new file mode 100644 (file)
index 0000000..bf9bb72
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * ioctl system call definitions
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+#ifndef BSD_IOCTL_H
+#define BSD_IOCTL_H
+
+abi_long do_bsd_ioctl(int fd, abi_long cmd, abi_long arg);
+void init_bsd_ioctl(void);
+
+#endif /* BSD_IOCTL_H */