vfs_syscalls_40.c revision 1.2.4.2 1 1.2.4.2 haad /* $NetBSD: vfs_syscalls_40.c,v 1.2.4.2 2008/12/13 01:13:47 haad Exp $ */
2 1.2.4.2 haad
3 1.2.4.2 haad /*-
4 1.2.4.2 haad * Copyright (c) 2008 The NetBSD Foundation, Inc.
5 1.2.4.2 haad * All rights reserved.
6 1.2.4.2 haad *
7 1.2.4.2 haad * Redistribution and use in source and binary forms, with or without
8 1.2.4.2 haad * modification, are permitted provided that the following conditions
9 1.2.4.2 haad * are met:
10 1.2.4.2 haad * 1. Redistributions of source code must retain the above copyright
11 1.2.4.2 haad * notice, this list of conditions and the following disclaimer.
12 1.2.4.2 haad * 2. Redistributions in binary form must reproduce the above copyright
13 1.2.4.2 haad * notice, this list of conditions and the following disclaimer in the
14 1.2.4.2 haad * documentation and/or other materials provided with the distribution.
15 1.2.4.2 haad *
16 1.2.4.2 haad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 1.2.4.2 haad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 1.2.4.2 haad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 1.2.4.2 haad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 1.2.4.2 haad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 1.2.4.2 haad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 1.2.4.2 haad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 1.2.4.2 haad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 1.2.4.2 haad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 1.2.4.2 haad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 1.2.4.2 haad * POSSIBILITY OF SUCH DAMAGE.
27 1.2.4.2 haad */
28 1.2.4.2 haad
29 1.2.4.2 haad /*
30 1.2.4.2 haad * Copyright (c) 1989, 1993
31 1.2.4.2 haad * The Regents of the University of California. All rights reserved.
32 1.2.4.2 haad * (c) UNIX System Laboratories, Inc.
33 1.2.4.2 haad * All or some portions of this file are derived from material licensed
34 1.2.4.2 haad * to the University of California by American Telephone and Telegraph
35 1.2.4.2 haad * Co. or Unix System Laboratories, Inc. and are reproduced herein with
36 1.2.4.2 haad * the permission of UNIX System Laboratories, Inc.
37 1.2.4.2 haad *
38 1.2.4.2 haad * Redistribution and use in source and binary forms, with or without
39 1.2.4.2 haad * modification, are permitted provided that the following conditions
40 1.2.4.2 haad * are met:
41 1.2.4.2 haad * 1. Redistributions of source code must retain the above copyright
42 1.2.4.2 haad * notice, this list of conditions and the following disclaimer.
43 1.2.4.2 haad * 2. Redistributions in binary form must reproduce the above copyright
44 1.2.4.2 haad * notice, this list of conditions and the following disclaimer in the
45 1.2.4.2 haad * documentation and/or other materials provided with the distribution.
46 1.2.4.2 haad * 3. Neither the name of the University nor the names of its contributors
47 1.2.4.2 haad * may be used to endorse or promote products derived from this software
48 1.2.4.2 haad * without specific prior written permission.
49 1.2.4.2 haad *
50 1.2.4.2 haad * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
51 1.2.4.2 haad * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52 1.2.4.2 haad * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53 1.2.4.2 haad * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
54 1.2.4.2 haad * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55 1.2.4.2 haad * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56 1.2.4.2 haad * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 1.2.4.2 haad * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58 1.2.4.2 haad * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59 1.2.4.2 haad * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60 1.2.4.2 haad * SUCH DAMAGE.
61 1.2.4.2 haad *
62 1.2.4.2 haad * @(#)vfs_syscalls.c 8.42 (Berkeley) 7/31/95
63 1.2.4.2 haad */
64 1.2.4.2 haad
65 1.2.4.2 haad #include <sys/cdefs.h>
66 1.2.4.2 haad __KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_40.c,v 1.2.4.2 2008/12/13 01:13:47 haad Exp $");
67 1.2.4.2 haad
68 1.2.4.2 haad #include <sys/param.h>
69 1.2.4.2 haad #include <sys/systm.h>
70 1.2.4.2 haad #include <sys/mount.h>
71 1.2.4.2 haad #include <sys/sched.h>
72 1.2.4.2 haad #include <sys/syscallargs.h>
73 1.2.4.2 haad
74 1.2.4.2 haad int
75 1.2.4.2 haad compat_40_sys_mount(struct lwp *l, const struct compat_40_sys_mount_args *uap, register_t *retval)
76 1.2.4.2 haad {
77 1.2.4.2 haad /* {
78 1.2.4.2 haad syscallarg(const char *) type;
79 1.2.4.2 haad syscallarg(const char *) path;
80 1.2.4.2 haad syscallarg(int) flags;
81 1.2.4.2 haad syscallarg(void *) data;
82 1.2.4.2 haad } */
83 1.2.4.2 haad register_t dummy;
84 1.2.4.2 haad
85 1.2.4.2 haad return do_sys_mount(l, NULL, SCARG(uap, type), SCARG(uap, path),
86 1.2.4.2 haad SCARG(uap, flags), SCARG(uap, data), UIO_USERSPACE, 0, &dummy);
87 1.2.4.2 haad }
88