summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-03 12:24:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-03 12:24:26 +0000
commitb9d88d23f569582be92f55946a7046b3e1884aa2 (patch)
tree5e65ac4667ac0f69c699aea2fbeb0cbb55831882 /sys/compat
parentefbb543f34e9b8d9844907a15268dc92caeb5643 (diff)
follow kernel syscall API
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_mount.c49
1 files changed, 33 insertions, 16 deletions
diff --git a/sys/compat/linux/linux_mount.c b/sys/compat/linux/linux_mount.c
index 12eca6ebbb1..0b0013e3a43 100644
--- a/sys/compat/linux/linux_mount.c
+++ b/sys/compat/linux/linux_mount.c
@@ -1,4 +1,5 @@
-/* $OpenBSD: linux_mount.c,v 1.1 1996/04/28 07:38:23 etheisen Exp $ */
+/* $OpenBSD: linux_mount.c,v 1.2 1996/08/03 12:24:25 deraadt Exp $ */
+
/*
* Copyright (c) 1996 Erik Theisen
* All rights reserved.
@@ -25,6 +26,19 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/param.h>
+#include <sys/kernel.h>
+#include <sys/systm.h>
+#include <sys/buf.h>
+#include <sys/malloc.h>
+#include <sys/ioctl.h>
+#include <sys/tty.h>
+#include <sys/file.h>
+#include <sys/filedesc.h>
+
+#include <sys/syscallargs.h>
+
+#include <compat/linux/linux_types.h>
#include <compat/linux/linux_errno.h>
/*
@@ -37,24 +51,27 @@
* emulation that mounts FSs.
*/
int
-linux_sys_mount(specialfile, dir, filesystemtype, rwflag, data)
- char *specialfile;
- char *dir;
- char *filesystemtype;
- long rwflag;
- void *data;
+linux_sys_mount(p, uap, retval)
+ struct proc *p;
+ struct linux_sys_mount_args /* {
+ syscallarg(char *) specialfile;
+ syscallarg(char *) dir;
+ syscallarg(char *) filesystemtype;
+ syscallarg(long) rwflag;
+ syscallarg(void *) data;
+ } */ *uap;
+ register_t *retval;
{
- return(LINUX_EPERM);
+ return EPERM;
}
int
-linux_sys_umount(specialfile)
- char *specialfile;
+linux_sys_umount(p, uap, retval)
+ struct proc *p;
+ struct linux_sys_umount_args /* {
+ syscallarg(char *) specialfile;
+ } */ *uap;
+ register_t *retval;
{
- return(LINUX_EPERM);
+ return EPERM;
}
-
-
-
-
-