From 8f19eb88dff40008a1ef7524390e8a00f114781a Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Sun, 1 Sep 2002 20:37:28 +0000 Subject: 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 --- sys/kern/init_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/init_main.c') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index b01e0c7212e6..f3860856c3a8 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #include #include @@ -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) -- cgit v1.2.3