From 87cc07b7c97bf09f317d1914502251c49d991456 Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 2 Feb 2001 13:05:18 +0000 Subject: [PATCH] implement netbsd32_lchflags & netbsd32_utrace --- sys/compat/netbsd32/netbsd32_netbsd.c | 39 ++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/sys/compat/netbsd32/netbsd32_netbsd.c b/sys/compat/netbsd32/netbsd32_netbsd.c index 9f3e789dc4c0..949cd7f3cdad 100644 --- a/sys/compat/netbsd32/netbsd32_netbsd.c +++ b/sys/compat/netbsd32/netbsd32_netbsd.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_netbsd.c,v 1.49 2001/02/02 07:08:18 mrg Exp $ */ +/* $NetBSD: netbsd32_netbsd.c,v 1.50 2001/02/02 13:05:18 mrg Exp $ */ /* * Copyright (c) 1998 Matthew R. Green @@ -1556,6 +1556,24 @@ netbsd32_fchflags(p, v, retval) return (sys_fchflags(p, &ua, retval)); } +int +netbsd32_lchflags(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct netbsd32_lchflags_args /* { + syscallarg(int) fd; + syscallarg(netbsd32_u_long) flags; + } */ *uap = v; + struct sys_lchflags_args ua; + + NETBSD32TOP_UAP(path, const char); + NETBSD32TO64_UAP(flags); + + return (sys_lchflags(p, &ua, retval)); +} + int netbsd32_kill(p, v, retval) struct proc *p; @@ -1634,6 +1652,25 @@ netbsd32_ktrace(p, v, retval) } #endif /* KTRACE */ +int +netbsd32_utrace(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct netbsd32_utrace_args /* { + syscallarg(const netbsd32_charp) label; + syscallarg(netbsd32_voidp) addr; + syscallarg(netbsd32_size_t) len; + } */ *uap = v; + struct sys_utrace_args ua; + + NETBSD32TOP_UAP(label, const char); + NETBSD32TOP_UAP(addr, void); + NETBSD32TO64_UAP(len); + return (sys_utrace(p, &ua, retval)); +} + int netbsd32_sigaction(p, v, retval) struct proc *p;