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 netbsd32_lchflags & netbsd32_u...



details:   https://anonhg.NetBSD.org/src/rev/18c765034741
branches:  trunk
changeset: 503189:18c765034741
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Feb 02 13:05:18 2001 +0000

description:
implement netbsd32_lchflags & netbsd32_utrace

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c |  39 ++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diffs (60 lines):

diff -r d02cbfe58c41 -r 18c765034741 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Fri Feb 02 13:03:39 2001 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Fri Feb 02 13:05:18 2001 +0000
@@ -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
@@ -1557,6 +1557,24 @@
 }
 
 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;
        void *v;
@@ -1635,6 +1653,25 @@
 #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;
        void *v;



Home | Main Index | Thread Index | Old Index