head 1.5; access; symbols pkgsrc-2018Q4:1.4.0.76 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.74 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.72 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.70 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.68 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.66 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.62 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.60 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.58 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.56 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.54 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.52 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.50 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.48 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.46 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.44 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.42 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.40 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.38 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.36 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.34 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.32 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.30 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.28 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.26 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.24 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.22 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.20 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.18 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.16 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.14 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.12 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.10 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.8 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.6 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.4 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.2 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.3.0.20 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.18 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.16 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.14 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.12 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.10 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.8 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.6 pkgsrc-2008Q1:1.3.0.4 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.2 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.2.0.4 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.2 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.1.0.10 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.8 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.6 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.4 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.2 pkgsrc-2006Q1-base:1.1; locks; strict; comment @# @; 1.5 date 2019.01.22.22.07.33; author christos; state dead; branches; next 1.4; commitid HGFAwVlb79iCoP8B; 1.4 date 2009.12.29.22.03.41; author spz; state Exp; branches; next 1.3; 1.3 date 2007.12.05.16.31.00; author christos; state Exp; branches; next 1.2; 1.2 date 2007.04.27.19.45.02; author christos; state Exp; branches; next 1.1; 1.1 date 2006.03.05.08.17.49; author christos; state Exp; branches; next ; desc @@ 1.5 log @make this compile again. @ text @$NetBSD: patch-ao,v 1.4 2009/12/29 22:03:41 spz Exp $ --- process.c.orig 2007-01-11 23:08:38.000000000 +0100 +++ process.c 2009-12-29 21:57:56.000000000 +0100 @@@@ -40,6 +40,7 @@@@ #include "defs.h" #include +#include #include #include #include @@@@ -52,7 +53,7 @@@@ #include #endif /* SUNOS4 */ -#ifdef FREEBSD +#ifdef ALLBSD #include #endif @@@@ -305,7 +306,7 @@@@ #endif /* HAVE_PRCTL */ -#if defined(FREEBSD) || defined(SUNOS4) || defined(SVR4) +#if defined(ALLBSD) || defined(SUNOS4) || defined(SVR4) int sys_gethostid(tcp) struct tcb *tcp; @@@@ -314,7 +315,7 @@@@ return RVAL_HEX; return 0; } -#endif /* FREEBSD || SUNOS4 || SVR4 */ +#endif /* ALLBSD || SUNOS4 || SVR4 */ int sys_sethostname(tcp) @@@@ -327,7 +328,7 @@@@ return 0; } -#if defined(ALPHA) || defined(FREEBSD) || defined(SUNOS4) || defined(SVR4) +#if defined(ALPHA) || defined(ALLBSD) || defined(SUNOS4) || defined(SVR4) int sys_gethostname(tcp) struct tcb *tcp; @@@@ -341,7 +342,7 @@@@ } return 0; } -#endif /* ALPHA || FREEBSD || SUNOS4 || SVR4 */ +#endif /* ALPHA || ALLBSD || SUNOS4 || SVR4 */ int sys_setdomainname(tcp) @@@@ -1058,7 +1059,7 @@@@ #endif /* !USE_PROCFS */ -#if defined(SUNOS4) || defined(LINUX) || defined(FREEBSD) +#if defined(SUNOS4) || defined(LINUX) || defined(ALLBSD) int sys_vfork(tcp) @@@@ -1069,7 +1070,7 @@@@ return 0; } -#endif /* SUNOS4 || LINUX || FREEBSD */ +#endif /* SUNOS4 || LINUX || ALLBSD */ #ifndef LINUX @@@@ -2051,7 +2052,7 @@@@ #endif /* SVR4 */ -#ifdef FREEBSD +#ifdef ALLBSD int sys_wait(tcp) struct tcb *tcp; @@@@ -2070,12 +2071,14 @@@@ } #endif +#ifndef NETBSD int sys_waitpid(tcp) struct tcb *tcp; { return printwaitn(tcp, 3, 0); } +#endif int sys_wait4(tcp) @@@@ -2205,7 +2208,7 @@@@ #ifndef SVR4 static const struct xlat ptrace_cmds[] = { -#ifndef FREEBSD +#ifndef ALLBSD { PTRACE_TRACEME, "PTRACE_TRACEME" }, { PTRACE_PEEKTEXT, "PTRACE_PEEKTEXT", }, { PTRACE_PEEKDATA, "PTRACE_PEEKDATA", }, @@@@ -2271,7 +2274,7 @@@@ #endif /* !I386 */ { PTRACE_GETUCODE, "PTRACE_GETUCODE" }, #endif /* SUNOS4 */ -#else /* FREEBSD */ +#else /* ALLBSD */ { PT_TRACE_ME, "PT_TRACE_ME" }, { PT_READ_I, "PT_READ_I" }, { PT_READ_D, "PT_READ_D" }, @@@@ -2282,20 +2285,26 @@@@ #endif { PT_CONTINUE, "PT_CONTINUE" }, { PT_KILL, "PT_KILL" }, +#if !(defined(NETBSD) && (defined(ALPHA) || defined(SPARC) || defined(SPARC64))) { PT_STEP, "PT_STEP" }, +#endif { PT_ATTACH, "PT_ATTACH" }, { PT_DETACH, "PT_DETACH" }, { PT_GETREGS, "PT_GETREGS" }, { PT_SETREGS, "PT_SETREGS" }, { PT_GETFPREGS, "PT_GETFPREGS" }, { PT_SETFPREGS, "PT_SETFPREGS" }, +#ifdef PT_GETDBREGS { PT_GETDBREGS, "PT_GETDBREGS" }, +#endif +#ifdef PT_SETDBREGS { PT_SETDBREGS, "PT_SETDBREGS" }, -#endif /* FREEBSD */ +#endif +#endif /* ALLBSD */ { 0, NULL }, }; -#ifndef FREEBSD +#ifndef ALLBSD #ifndef SUNOS4_KERNEL_ARCH_KLUDGE static #endif /* !SUNOS4_KERNEL_ARCH_KLUDGE */ @@@@ -2982,12 +2991,14 @@@@ sys_ptrace(tcp) struct tcb *tcp; { +#ifndef NETBSD const struct xlat *x; +#endif long addr; if (entering(tcp)) { printxval(ptrace_cmds, tcp->u_arg[0], -#ifndef FREEBSD +#ifndef ALLBSD "PTRACE_???" #else "PT_???" @@@@ -2995,7 +3006,7 @@@@ ); tprintf(", %lu, ", tcp->u_arg[1]); addr = tcp->u_arg[2]; -#ifndef FREEBSD +#ifndef ALLBSD if (tcp->u_arg[0] == PTRACE_PEEKUSER || tcp->u_arg[0] == PTRACE_POKEUSER) { for (x = struct_user_offsets; x->str; x++) { @@@@ -3057,10 +3068,10 @@@@ } } #endif /* SUNOS4 */ -#ifdef FREEBSD +#ifdef ALLBSD tprintf("%lu", tcp->u_arg[3]); } -#endif /* FREEBSD */ +#endif /* ALLBSD */ return 0; } @ 1.4 log @compile fixes for a leaf package for non-x86 NetBSD (note that there are no claims of making it actually work) @ text @d1 1 a1 1 $NetBSD: patch-ao,v 1.3 2007/12/05 16:31:00 christos Exp $ @ 1.3 log @Use newer strace 4.5.15; various improvements in syscall parsing and split functions into more files. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- process.c.orig 2007-01-11 17:08:38.000000000 -0500 +++ process.c 2007-12-05 11:21:20.000000000 -0500 d118 10 a127 1 @@@@ -2289,13 +2292,17 @@@@ d147 1 a147 1 @@@@ -2982,12 +2989,14 @@@@ d163 1 a163 1 @@@@ -2995,7 +3004,7 @@@@ d172 1 a172 1 @@@@ -3057,10 +3066,10 @@@@ @ 1.2 log @- make this work again on NetBSD/i386 - make this compile on NetBSD/x86_64 [does not work yet] - completely automate the NetBSD header generation. This should make porting to other platforms easier. @ text @d3 2 a4 2 --- process.c.orig 2005-08-03 07:23:43.000000000 -0400 +++ process.c 2007-04-27 14:39:18.000000000 -0400 d22 37 a58 1 @@@@ -1042,7 +1043,7 @@@@ d67 1 a67 1 @@@@ -1053,7 +1054,7 @@@@ d76 1 a76 1 @@@@ -2035,7 +2036,7 @@@@ d85 16 a100 1 @@@@ -2189,7 +2190,7 @@@@ d109 1 a109 1 @@@@ -2255,7 +2256,7 @@@@ d118 1 a118 1 @@@@ -2273,13 +2274,17 @@@@ d138 1 a138 1 @@@@ -2966,12 +2971,14 @@@@ d154 1 a154 1 @@@@ -2979,7 +2986,7 @@@@ d163 1 a163 1 @@@@ -3041,10 +3048,10 @@@@ @ 1.1 log @add strace. This only works for NetBSD/i386 thus far. @ text @d3 4 a6 3 --- system.c 2006-01-12 16:21:06.000000000 -0500 +++ system.c 2006-03-04 19:27:22.000000000 -0500 @@@@ -568,7 +568,7 @@@@ d8 7 d17 15 a31 6 -#if defined(SUNOS4) || defined(FREEBSD) +#if defined(SUNOS4) || defined(ALLBSD) static const struct xlat pathconflimits[] = { #ifdef _PC_LINK_MAX { _PC_LINK_MAX, "_PC_LINK_MAX" }, /* max links to file/dir */ @@@@ -624,7 +624,7 @@@@ d35 4 a38 2 -#endif /* SUNOS4 || FREEBSD */ +#endif /* SUNOS4 || ALLBSD */ d40 1 a40 1 #ifdef SVR4 d42 1 a42 3 @@@@ -1976,7 +1976,8 @@@@ } #endif d46 78 a123 2 +#include #include a124 1 int sys___sysctl(tcp) @