Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Implement __clone(2).
details: https://anonhg.NetBSD.org/src/rev/1c31a6cf085d
branches: trunk
changeset: 582884:1c31a6cf085d
user: cube <cube%NetBSD.org@localhost>
date: Sun Jul 10 11:28:58 2005 +0000
description:
Implement __clone(2).
diffstat:
sys/compat/netbsd32/netbsd32_netbsd.c | 18 ++++++++++++++++--
sys/compat/netbsd32/syscalls.master | 4 ++--
2 files changed, 18 insertions(+), 4 deletions(-)
diffs (54 lines):
diff -r 368e40146252 -r 1c31a6cf085d sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Sun Jul 10 11:28:03 2005 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Sun Jul 10 11:28:58 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.92 2005/07/08 22:21:43 cube Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.93 2005/07/10 11:28:58 cube Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.92 2005/07/08 22:21:43 cube Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.93 2005/07/10 11:28:58 cube Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -2543,3 +2543,17 @@
NETBSD32TO64_UAP(flags);
return (sys_mlockall(l, &ua, retval));
}
+
+int
+netbsd32___clone(struct lwp *l, void *v, register_t *retval)
+{
+ struct netbsd32___clone_args /* {
+ syscallarg(int) flags;
+ syscallarg(netbsd32_voidp) stack;
+ } */ *uap = v;
+ struct sys___clone_args ua;
+
+ NETBSD32TO64_UAP(flags);
+ NETBSD32TOP_UAP(stack, void);
+ return sys___clone(l, &ua, retval);
+}
diff -r 368e40146252 -r 1c31a6cf085d sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Sun Jul 10 11:28:03 2005 +0000
+++ b/sys/compat/netbsd32/syscalls.master Sun Jul 10 11:28:58 2005 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.31 2005/07/09 22:40:13 cube Exp $
+ $NetBSD: syscalls.master,v 1.32 2005/07/10 11:28:58 cube Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -447,7 +447,7 @@
284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
286 STD { pid_t netbsd32_getsid(pid_t pid); }
-287 UNIMPL
+287 STD { int netbsd32___clone(int flags, netbsd32_voidp stack); }
#if defined(KTRACE) || !defined(_KERNEL)
288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
#else
Home |
Main Index |
Thread Index |
Old Index