diff options
| author | 1996-08-03 12:24:25 +0000 | |
|---|---|---|
| committer | 1996-08-03 12:24:25 +0000 | |
| commit | 3b711ab032eab7b625864473e318fca7f5952065 (patch) | |
| tree | 9bca7c955e263478eafc6f5b13d91a9eeac36238 /sys/compat/linux/linux_mount.c | |
| parent | two bugs pointed out by thorpe (diff) | |
| download | wireguard-openbsd-3b711ab032eab7b625864473e318fca7f5952065.tar.xz wireguard-openbsd-3b711ab032eab7b625864473e318fca7f5952065.zip | |
follow kernel syscall API
Diffstat (limited to 'sys/compat/linux/linux_mount.c')
| -rw-r--r-- | sys/compat/linux/linux_mount.c | 49 |
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; } - - - - - |
