Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Add clone_func() in t_ptrace_wait.h



details:   https://anonhg.NetBSD.org/src/rev/448576739d28
branches:  trunk
changeset: 998252:448576739d28
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Apr 11 20:20:54 2019 +0000

description:
Add clone_func() in t_ptrace_wait.h

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 978b96f7d36a -r 448576739d28 tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h        Thu Apr 11 19:25:31 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h        Thu Apr 11 20:20:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.h,v 1.14 2019/02/10 02:13:45 kamil Exp $ */
+/*     $NetBSD: t_ptrace_wait.h,v 1.15 2019/04/11 20:20:54 kamil Exp $ */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -513,6 +513,16 @@
         __unreachable();
 }
 
+static int __used
+clone_func(void *arg)
+{
+       int ret;
+
+       ret = (int)(intptr_t)arg;
+
+       return ret;
+}
+
 #if defined(HAVE_DBREGS)
 static bool __used
 can_we_set_dbregs(void)



Home | Main Index | Thread Index | Old Index