head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.8 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.6 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.4 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.2 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.7.0.18 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.16 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.14 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.12 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.10 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.8 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.6 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.4 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.2 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.6.0.142 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.140 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.138 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.136 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.134 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.132 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.130 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.128 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.126 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.124 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.120 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.100 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.122 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.118 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.116 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.114 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.112 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.110 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.108 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.106 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.104 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.102 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.98 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.96 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.94 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.92 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.90 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.88 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.86 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.84 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.82 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.80 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.78 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.76 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.74 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.72 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.70 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.68 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.66 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.64 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.62 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.60 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.58 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.56 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.54 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.52 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.50 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.48 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.46 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.44 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.42 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.40 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.38 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.36 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.34 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.32 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.30 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.28 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.26 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.24 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.22 pkgsrc-2008Q1:1.6.0.20 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.18 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.16 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.14 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.12 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.10 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.8 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.6 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.4 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.2 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.5.0.2 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.4.0.4 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.2 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2; locks; strict; comment @# @; 1.8 date 2025.04.21.21.17.01; author wiz; state Exp; branches; next 1.7; commitid heqgz6FsgUxuNXRF; 1.7 date 2023.01.16.01.44.21; author dholland; state Exp; branches; next 1.6; commitid jmjRTyNuewBnQH9E; 1.6 date 2005.11.10.22.18.33; author joerg; state Exp; branches; next 1.5; 1.5 date 2005.07.08.19.25.34; author kristerw; state Exp; branches; next 1.4; 1.4 date 2005.03.10.15.18.31; author tv; state Exp; branches; next 1.3; 1.3 date 2005.01.25.04.46.29; author tv; state Exp; branches; next 1.2; 1.2 date 2004.02.26.09.34.43; author uebayasi; state Exp; branches; next 1.1; 1.1 date 2004.02.26.07.47.48; author uebayasi; state Exp; branches; next ; desc @@ 1.8 log @es: remove Interix support @ text @$NetBSD: patch-ad,v 1.7 2023/01/16 01:44:21 dholland Exp $ - Use standard headers. - Don't bust portability to avoid union wait, it's no longer an issue. - Don't redeclare standard functions from stdlib.h, especiall since the qsort prototype is wrong. --- stdenv.h.orig 1995-05-30 11:13:53.000000000 +0000 +++ stdenv.h @@@@ -44,9 +44,7 @@@@ #include #include -#if REQUIRE_STAT || REQUIRE_IOCTL #include -#endif #if REQUIRE_IOCTL #include @@@@ -268,14 +266,24 @@@@ extern int getgroups(int, int *); * others an integer. we just renamed the first letter to s and * let things be. on some systems these could just be defined in * terms of the W* forms. + * + * Update: union wait is long dead, and the conventional exit status + * encoding seen here is not universal. */ +#if 0 #define SIFSIGNALED(status) (((status) & 0xff) != 0) #define STERMSIG(status) ((status) & 0x7f) #define SCOREDUMP(status) ((status) & 0x80) #define SIFEXITED(status) (!SIFSIGNALED(status)) #define SEXITSTATUS(status) (((status) >> 8) & 0xff) - +#else +#define SIFSIGNALED(status) WIFSIGNALED(status) +#define STERMSIG(status) WTERMSIG(status) +#define SCOREDUMP(status) WCOREDUMP(status) +#define SIFEXITED(status) (!SIFSIGNALED(status)) +#define SEXITSTATUS(status) WEXITSTATUS(status) +#endif /* * the c library -- these should be in prototypes in standard headers @@@@ -283,6 +291,7 @@@@ extern int getgroups(int, int *); /* stdlib */ +#if 0 extern noreturn exit(int); extern noreturn abort(void); extern long strtol(const char *num, char **end, int base); @@@@ -290,6 +299,7 @@@@ extern void *qsort( void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) ); +#endif /* setjmp */ @ 1.7 log @shells/es: configury fixes Instead of patching in an increasingly long list of OSes to avoid redefining functions on, just use #if 0. Should fix the Solaris build. While here, don't hardcode the traditional wait status encoding; it's no longer necessary to work around union wait and baking it in violates portability rules. PKGREVISION -> 5 @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.6 2005/11/10 22:18:33 joerg Exp $ a3 1 - Handle setpgrp on Interix. a19 9 @@@@ -239,7 +237,7 @@@@ extern int getgroups(int, int *); * hacks to present a standard system call interface */ -#ifdef linux +#if defined(linux) || defined(__INTERIX) #include "unistd.h" #define setpgrp(a, b) setpgid(a, b) #endif @ 1.6 log @Add DragonFly to patches for standard prototypes. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2005/07/08 19:25:34 kristerw Exp $ d3 7 a9 1 --- stdenv.h.orig 1995-05-30 07:13:53.000000000 -0400 d30 27 a56 1 @@@@ -283,6 +281,7 @@@@ extern int getgroups(int, int *); d60 1 a60 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__INTERIX) && !defined(__APPLE__) && !defined(__DragonFly__) d64 1 a64 1 @@@@ -290,6 +289,7 @@@@ extern void *qsort( @ 1.5 log @Eliminate conflicting function declarations on Darwin. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.4 2005/03/10 15:18:31 tv Exp $ d28 1 a28 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__INTERIX) && !defined(__APPLE__) @ 1.4 log @Add Interix-specific system call bits. @ text @d1 1 a1 1 $NetBSD$ d28 1 a28 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__INTERIX) @ 1.3 log @Extend other *BSD build fixes to Interix. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.2 2004/02/26 09:34:43 uebayasi Exp $ d3 2 a4 2 --- stdenv.h.orig 1995-05-30 13:13:53.000000000 +0200 +++ stdenv.h 2004-02-26 09:51:16.000000000 +0100 d15 10 a24 1 @@@@ -283,6 +281,7 @@@@ d32 1 a32 1 @@@@ -290,6 +289,7 @@@@ @ 1.2 log @Fix build on Linux. From Roland Illig. @ text @d1 1 a1 1 $NetBSD$ d19 1 a19 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) @ 1.1 log @Split patch into pieces. Requested by Roland Illig. @ text @d3 13 a15 3 --- stdenv.h~ Tue May 30 06:13:53 1995 +++ stdenv.h Thu Apr 10 09:32:22 1997 @@@@ -283,6 +283,7 @@@@ d23 1 a23 1 @@@@ -290,6 +291,7 @@@@ @