head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.112 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.110 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.108 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.106 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.104 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.102 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.100 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.98 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.96 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.94 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.92 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.90 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.88 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.86 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.84 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.82 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.80 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.78 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.76 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.74 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.72 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.70 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.68 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.64 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.44 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.66 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.62 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.60 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.58 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.56 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.54 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.52 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.50 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.48 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.46 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.42 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.40 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.38 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.36 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.34 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.32 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.30 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.28 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.26 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.24 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.22 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.20 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.18 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.16 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.14 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.12 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.10 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.8 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.6 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.4 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.2 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.5.0.62 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.60 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.58 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.56 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.54 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.52 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.50 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.48 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.46 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.44 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.42 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.40 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.38 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.36 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.34 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.32 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.30 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.28 pkgsrc-2008Q1:1.5.0.26 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.24 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.22 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.20 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.18 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.16 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.14 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.12 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.10 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.8 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.6 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.4 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.2 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.4.0.18 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.16 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.14 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.12 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.10 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2; locks; strict; comment @# @; 1.6 date 2012.06.23.22.27.11; author dholland; state Exp; branches; next 1.5; 1.5 date 2005.03.12.12.53.56; author schwarz; state Exp; branches; next 1.4; 1.4 date 2001.02.03.01.53.03; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2000.07.08.12.47.07; author tron; state Exp; branches; next 1.2; 1.2 date 99.10.01.07.49.21; author simonb; state Exp; branches; next 1.1; 1.1 date 99.10.01.05.09.14; author simonb; state Exp; branches; next ; desc @@ 1.6 log @Instead of patching in a mess of machine-dependent logic for printing error messages, always use strerror. While here, also correct warnings about implicit declaration of malloc ... which turned out to arise because someone patched stdlib.h into all the right places years ago, but for some bizarre reason decided the change should be OS-specific. grmbl. @ text @$NetBSD: patch-an,v 1.5 2005/03/12 12:53:56 schwarz Exp $ - use standard headers - ...? --- main.c.orig 1991-11-19 04:00:47.000000000 +0000 +++ main.c @@@@ -25,7 +25,7 @@@@ #include #include #include -#if !defined(mips) || defined(ultrix) +#if !defined(mips) || defined(ultrix) || (defined(BSD) && BSD >= 199306) || defined(__sgi) #include #else #ifdef SYSTYPE_BSD43 @@@@ -36,6 +36,11 @@@@ #endif #include +#include + +/* for calloc(), malloc(), realloc() */ +#include + #ifdef DNSLOOKUP #include #endif /*DNSLOOKUP*/ @@@@ -63,6 +68,7 @@@@ char *resources[] = { /* Faces X re "period", /* Integer: period in seconds between checks. */ "bell", /* Integer: number of beeps for new arrival. */ "flash", /* Integer: number of flashes for new arrival. */ + "borderWidth", /* Integer: border width of window. */ "lower", /* Boolean: lower window if no mail. */ "raise", /* Boolean: raise window on update? */ "button1clear", /* Boolean: mouse button 1 clear window? */ @@@@ -150,6 +156,7 @@@@ int dontshowuser = 0 ; /* Set if userna int facetype ; /* Type of face file found. */ int firsttime = 1 ; /* Zeroised after first mail/printer check. */ int flashes = 0 ; /* Number of flashes for arrival of new mail. */ +int border_width = 2 ; /* Border width of window. */ int fromc_found = 0 ; /* Set if "From:" line found during processing. */ int froms_found = 0 ; /* Set if "From " line found during processing. */ int height ; /* Height in pixels of faces display. */ @@@@ -743,9 +750,10 @@@@ read_resources() /* Read all if (get_str_resource(R_FONT, str)) read_str(&fontname, str) ; if (get_str_resource(R_BGICON, str)) read_str(&bgicon, str) ; - if (get_int_resource(R_PERIOD, &intval)) period = intval ; - if (get_int_resource(R_BELL, &intval)) beeps = intval ; - if (get_int_resource(R_FLASH, &intval)) flashes = intval ; + if (get_int_resource(R_PERIOD, &intval)) period = intval ; + if (get_int_resource(R_BELL, &intval)) beeps = intval ; + if (get_int_resource(R_FLASH, &intval)) flashes = intval ; + if (get_int_resource(R_BORDERWIDTH,&intval)) border_width = intval ; if (get_bool_resource(R_LOWER, &boolval)) lowerwindow = boolval ; if (get_bool_resource(R_RAISE, &boolval)) raisewindow = boolval ; @ 1.5 log @ added patches to support IRIX, closing PR#28315. @ text @d1 1 a1 1 $NetBSD: patch-an,v 1.4 2001/02/03 01:53:03 dmcmahill Exp $ d3 5 a7 2 --- main.c.orig 1991-11-19 05:00:47.000000000 +0100 +++ main.c 2005-03-09 21:51:22.000000000 +0100 d17 1 a17 1 @@@@ -36,6 +36,13 @@@@ a22 1 +#ifdef __sgi a24 1 +#endif d29 1 a29 1 @@@@ -63,6 +70,7 @@@@ d37 1 a37 1 @@@@ -150,6 +158,7 @@@@ d45 1 a45 1 @@@@ -743,9 +752,10 @@@@ @ 1.4 log @add some missing header files for alpha. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 3 --- main.c.orig Mon Nov 18 23:00:47 1991 +++ main.c Fri Feb 2 18:05:38 2001 @@@@ -26,5 +26,5 @@@@ d10 1 a10 1 +#if !defined(mips) || defined(ultrix) || (defined(BSD) && BSD >= 199306) d13 3 a15 1 @@@@ -37,4 +37,6 @@@@ d20 5 d27 3 a29 1 @@@@ -64,4 +66,5 @@@@ d35 3 a37 1 @@@@ -151,4 +154,5 @@@@ d43 3 a45 1 @@@@ -744,7 +748,8 @@@@ d57 1 @ 1.3 log @Replace "/usr/local" by "${LOCALBASE}". Fixes PR pkg/10360, pkg/10465 and pkg/10529. @ text @d3 3 a5 4 --- main.c.orig Tue Nov 19 05:00:47 1991 +++ main.c Sat Jul 8 14:25:27 2000 @@@@ -25,7 +25,7 @@@@ #include d12 8 a19 3 #ifdef SYSTYPE_BSD43 @@@@ -63,6 +63,7 @@@@ "period", /* Integer: period in seconds between checks. */ d25 1 a25 3 "button1clear", /* Boolean: mouse button 1 clear window? */ @@@@ -150,6 +151,7 @@@@ int facetype ; /* Type of face file found. */ d31 1 a31 3 int height ; /* Height in pixels of faces display. */ @@@@ -743,9 +745,10 @@@@ if (get_str_resource(R_FONT, str)) read_str(&fontname, str) ; a42 1 if (get_bool_resource(R_RAISE, &boolval)) raisewindow = boolval ; @ 1.2 log @Oops, forgot them RCS ids... @ text @d3 2 a4 3 diff -ur ../faces-DIST/main.c ./main.c --- ../faces-DIST/main.c Tue Nov 19 15:00:47 1991 +++ ./main.c Fri Oct 1 14:32:02 1999 @ 1.1 log @Spilt patches into one-file-per-patch-file, and make this work on the pmax (and other mips ports) - all the world is not IRIX... @ text @d1 2 @