head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.72 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.70 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.68 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.66 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.64 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.62 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.60 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.58 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.56 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.54 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.52 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.50 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.48 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.46 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.44 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.42 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.40 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.38 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.36 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.34 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.32 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.30 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.28 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.24 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.4 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.26 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.22 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.20 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.18 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.16 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.14 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.12 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.10 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.8 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.6 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.2 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.5.0.46 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.44 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.42 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.40 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.38 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.36 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.34 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.32 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.30 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.28 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.26 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.24 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.22 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.20 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.18 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.16 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.14 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.12 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.10 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.8 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.6 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.4 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.2 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.4.0.30 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.28 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.26 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.24 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.22 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.20 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.18 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.16 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.14 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.12 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.10 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.8 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.6 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.4 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.2 pkgsrc-2008Q1:1.3.0.8 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.6 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.4 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.2 pkgsrc-2007Q2-base:1.3 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.7 date 2017.06.29.06.33.29; author wiz; state Exp; branches; next 1.6; commitid U0qEYP9i6zc8CeXz; 1.6 date 2017.06.27.15.26.05; author christos; state Exp; branches; next 1.5; commitid y78i0Gp8GuJOC1Xz; 1.5 date 2011.08.30.10.43.11; author christos; state Exp; branches; next 1.4; 1.4 date 2008.05.08.20.03.03; author christos; state Exp; branches; next 1.3; 1.3 date 2007.04.28.03.42.31; author christos; state Exp; branches; next 1.2; 1.2 date 2007.04.27.19.45.01; 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.7 log @Remove another RCS Id from patch. @ text @$NetBSD: patch-aj,v 1.6 2017/06/27 15:26:05 christos Exp $ --- /dev/null 2017-06-27 11:06:52.222304505 -0400 +++ netbsd/ioctlent.sh 2017-06-27 11:08:32.016631491 -0400 @@@@ -0,0 +1,124 @@@@ +#!/bin/sh +# +# Copyright (c) 1994 +# The Regents of the University of California. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# @@(#)mkioctls 8.2 (Berkeley) 4/28/95 +# +( +#echo "#define const" # XXX: timepps lossage +echo "#include " +echo "struct ap_control { int _xxx; };" # XXX: ip_nat.h lossage +echo "#define COMPAT_43" +echo "struct lwp;" +echo "struct videomemory_t { int _xxx; };" # XXX arm video lossage +echo "typedef struct videomemory_t videomemory_t;" # XXX arm video lossage +echo "typedef int domid_t;" # XEN lossage +echo "typedef int xen_pfn_t;" # XEN lossage + +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " +echo "#include " + +echo "#define debug xxxdebug" # XXX ip_fil.h +) > ioctlent.c +set -- $(egrep -l '(_IO\(|_IOR\(|_IOW\(|_IORW\()' /usr/include/*/*.h) + +for i +do + echo "#include <$i>" +done | sed -e "s,${DESTDIR}/usr/include/,,g" >> ioctlent.c + +echo "#undef debug" >> ioctlent.c + +${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | awk ' +BEGIN { + keep["SLIOCGUNIT"] = 1; # Same as PPPIOCGASYNCMAP + keep["TUNSLMODE"] = 1; # Same as PPPIOCGASYNCMAP + keep["SIOCRMNAT"] = 1; # Same as SIOCRMAFR + keep["SIOCADNAT"] = 1; # Same as SIOCADAFR + keep["SIOCDELST"] = 1; # Same as SIOCRMNAT + keep["CHIOGPICKER"] = 1; # Same as CDIOREADTOCHEADER + keep["KBDSTPMAT"] = 1; # Same as LMREADY, pcvt is gone so ok. + + print "" + print "struct ioctlent {\n" + print "\t const char *file;\n" + print "\t const char *name;\n" + print "\t int number;\n" + print "};\n" + print "const struct ioctlent ioctlent0[] = " + print "{" + print "" + file = ""; +} +/^#[ ]*define[ ]*[A-Z]*[ ]*_IO[RW]\(/ { + + # find where the name starts + for (i = 1; i <= NF; i++) + if ($i ~ /define/) + break; + ++i; + printf("/* %s [%s] */\n", $0, $i); + # + if ($i ~ /^[A-Z0-9a-z_]*$/) { + if (keep[$i] != 1) { + printf("\t{ \"?\", \"%s\", %s },\n", $i, $i); + keep[$i] = 1; + } + } +} +END { + print "};\n" + print "/* Automatically generated file, do not edit! */" + print "int main(int argc, char *argv[]) {\n"; + print "\tint i;\n"; + print "\tfor (i = 0; i < sizeof(ioctlent0) / sizeof(ioctlent0[0]); i++)\n" + print "\t\tprintf(\"\t{ \\\"%s\\\", \\\"%s\\\", 0x%x },%c\",\n" + print "\t\t ioctlent0[i].file, ioctlent0[i].name, 0xffffffff & ioctlent0[i].number, 012);\n" + print "\treturn 0;\n"; + print "}\n"; +}' >> ioctlent.c +cc ioctlent.c -o ioctlent +./ioctlent @ 1.6 log @make this compile again. @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.5 2011/08/30 10:43:11 christos Exp $ d5 1 a5 1 @@@@ -0,0 +1,125 @@@@ a6 1 +# $NetBSD: patch-aj,v 1.5 2011/08/30 10:43:11 christos Exp $ @ 1.5 log @make it work for NetBSD-current @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.4 2008/05/08 20:03:03 christos Exp $ d3 3 a5 3 --- /dev/null 2011-08-30 13:38:39.000000000 +0300 +++ netbsd/ioctlent.sh 2011-08-30 12:45:46.000000000 +0300 @@@@ -0,0 +1,126 @@@@ d7 1 a7 1 +# $NetBSD: patch-aj,v 1.4 2008/05/08 20:03:03 christos Exp $ a68 1 +echo "#include " @ 1.4 log @fix build for current @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.3 2007/04/28 03:42:31 christos Exp $ d3 3 a5 3 --- /dev/null 2008-05-08 16:01:35.000000000 -0400 +++ netbsd/ioctlent.sh 2008-05-08 15:54:29.000000000 -0400 @@@@ -0,0 +1,125 @@@@ d7 1 a7 1 +# $NetBSD: patch-aj,v 1.3 2007/04/28 03:42:31 christos Exp $ d51 1 @ 1.3 log @make x86_64 work. @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.2 2007/04/27 19:45:01 christos Exp $ d3 3 a5 3 --- /dev/null 2007-04-27 23:20:36.000000000 -0400 +++ netbsd/ioctlent.sh 2007-04-27 23:27:49.000000000 -0400 @@@@ -0,0 +1,123 @@@@ d7 1 a7 1 +# $NetBSD: patch-ag,v 1.1 2006/03/05 08:17:49 christos Exp $ d50 2 d102 1 a102 1 +/^#[ ]*define[ ]*[A-Z]*[ ]*_IO/ { @ 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 @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- /dev/null 2007-04-26 23:20:40.000000000 -0400 +++ netbsd/ioctlent.sh 2007-04-27 14:49:01.000000000 -0400 d123 1 a123 1 + print "\t\t ioctlent0[i].file, ioctlent0[i].name, 0xffff & ioctlent0[i].number, 012);\n" @ 1.1 log @add strace. This only works for NetBSD/i386 thus far. @ text @d3 126 a128 58 --- signal.c 2006-01-12 17:34:50.000000000 -0500 +++ signal.c 2006-03-04 19:24:52.000000000 -0500 @@@@ -36,12 +36,27 @@@@ #include "defs.h" #include +#include #include #include -#ifdef SVR4 +#if defined(SVR4) || defined(NETBSD) #include #endif /* SVR4 */ +#ifdef NETBSD +#if !defined(UC_CPU) && defined(_UC_CPU) +#define UC_CPU _UC_CPU +#endif +#if !defined(UC_SIGMASK) && defined(_UC_SIGMASK) +#define UC_SIGMASK _UC_SIGMASK +#endif +#if !defined(UC_STACK) && defined(_UC_STACK) +#define UC_STACK _UC_STACK +#endif +#if !defined(UC_FPU) && defined(_UC_FPU) +#define UC_FPU _UC_FPU +#endif +#endif #ifdef HAVE_SYS_REG_H # include @@@@ -1474,7 +1489,7 @@@@ #endif /* LINUX */ -#if defined(SVR4) || defined(FREEBSD) +#if defined(SVR4) || defined(ALLBSD) int sys_sigsuspend(tcp) @@@@ -1506,7 +1521,7 @@@@ #endif /* !FREEBSD */ #endif /* SVR4 || FREEBSD */ -#if defined SVR4 || defined LINUX || defined FREEBSD +#if defined SVR4 || defined LINUX || defined ALLBSD #if defined LINUX && !defined SS_ONSTACK #define SS_ONSTACK 1 #define SS_DISABLE 2 @@@@ -1598,7 +1613,7 @@@@ #endif /* SVR4 */ -#if defined(LINUX) || defined(FREEBSD) +#if defined(LINUX) || defined(ALLBSD) static int print_stack_t(tcp, addr) @