diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-09-01 20:37:28 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-09-01 20:37:28 +0000 |
commit | be17b12cb696a0d3f7deed6d1b2201b472b6f85c (patch) | |
tree | ec81ad0e54c0e056c6214598679ec3e70c089905 /sys/kern/init_main.c | |
parent | 84a9d83087b5c82ac362ac1c686726ba0657c506 (diff) | |
download | FreeBSD-src-be17b12cb696a0d3f7deed6d1b2201b472b6f85c.zip FreeBSD-src-be17b12cb696a0d3f7deed6d1b2201b472b6f85c.tar.gz |
Split out a number of mostly VFS and signal related syscalls into
a kernel-internal kern_*() version and a wrapper that is called via
the syscall vector table. For paths and structure pointers, the
internal version either takes a uio_seg parameter or requires the
caller to copyin() the data to kernel memory as appropiate. This
will permit emulation layers to use these syscalls without having
to copy out translated arguments to the stack gap.
Discussed on: -arch
Review/suggestions: bde, jhb, peter, marcel
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index b01e0c7..f386085 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -54,6 +54,7 @@ #include <sys/mac.h> #include <sys/mount.h> #include <sys/mutex.h> +#include <sys/syscallsubr.h> #include <sys/sysctl.h> #include <sys/proc.h> #include <sys/resourcevar.h> @@ -529,7 +530,7 @@ start_init(void *dummy) * since the fs will be read-only. But a NFS root * might be ok. It is worth a shot. */ - error = vn_mkdir("/dev", 0700, UIO_SYSSPACE, td); + error = kern_mkdir(td, "/dev", UIO_SYSSPACE, 0700); if (error == EEXIST) error = 0; if (error == 0) |