head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.96 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.94 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.92 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.90 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.88 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.86 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.84 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.82 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.80 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.78 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.76 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.74 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.72 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.70 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.68 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.66 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.64 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.62 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.60 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.58 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.56 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.54 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.52 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.48 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.28 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.50 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.46 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.44 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.42 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.40 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.38 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.36 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.34 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.32 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.30 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.26 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.24 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.22 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.20 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.18 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.16 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.14 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.12 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.10 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.8 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.6 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.4 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.2 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.5.0.12 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.10 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.8 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.6 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.4 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.2 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.4.0.22 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.20 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.18 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.16 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.14 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.12 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.10 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.8 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.6 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.4 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.2 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.3.0.38 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.36 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.34 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.32 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.30 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.28 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.26 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.24 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.22 pkgsrc-2008Q1:1.3.0.20 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.18 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.16 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.14 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.12 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.10 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.8 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.6 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.4 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.2 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.2.0.12 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.10 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.8 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.6 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.4 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.2 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.1.1.1.0.6 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.4 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.2 netbsd-1-6-1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2014.04.21.18.16.13; author joerg; state Exp; branches; next 1.5; commitid ElPRsmKuDGPVWzxx; 1.5 date 2012.12.24.03.11.25; author dholland; state Exp; branches; next 1.4; 1.4 date 2010.03.04.21.40.29; author spz; state Exp; branches; next 1.3; 1.3 date 2005.12.13.21.30.11; author joerg; state Exp; branches; next 1.2; 1.2 date 2004.04.13.21.19.48; author hubertf; state Exp; branches; next 1.1; 1.1 date 2002.11.14.00.55.44; author hubertf; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.11.14.00.55.44; author hubertf; state Exp; branches; next ; desc @@ 1.6 log @Fix readline use. @ text @$NetBSD: patch-ac,v 1.5 2012/12/24 03:11:25 dholland Exp $ - don't use "restrict" as an identifier, it's a keyword now - ...? (XXX) --- src/externs.h.orig 2000-03-15 22:28:13.000000000 +0000 +++ src/externs.h @@@@ -1,6 +1,8 @@@@ /* Copyright (c) 1989 by Carrick Sean Casey. All rights reserved. */ /* For copying and distribution information, see the file "copyright.h." */ +#include /* for time_t etc. */ + /* external definitions for "icb" global variables */ /* defined in port.c */ @@@@ -25,6 +27,7 @@@@ extern char *mygroup; /* requested grou extern char *myserver; /* server name */ extern char *myhost; /* server host */ extern int myport; /* server port */ +extern char *mylhost; /* local address */ extern char *mbuf; /* message buffer */ extern char *mbuf2; /* message buffer */ extern int connected; /* whether we are validated or not */ @@@@ -69,7 +72,7 @@@@ void clearargs (int argc, char **argv); int clientserve (void); void closesessionlog (void); void cmdoutmsg (char *pkt); -int connecttoport (char *host_name, int port_number); +int connecttoport (char *host_name, int port_number, char *lhost_name); void copenmsg (char *pkt); void cpersonalmsg (char *pkt); void csendopen (char *txt); @@@@ -79,14 +82,14 @@@@ void echo (void); void errormsg (char *pkt); void exitmsg (void); char *findspace (char *s); -char *getline (char *prompt, int expand); +char *i2cb_getline (char *prompt, int expand); char *getloginid (void); char *getswitch (int argc, char **argv, char **switchv); void getterm (void); void gettime (void); void getwinsize (void); char *getword (char *s); -void handletab (int count, char c); +int handletab (int count, char c); void histclear (void); int histcount (void); void histdel (char *name); @@@@ -115,7 +118,7 @@@@ void quoteify (char *a, char *b); void readlineinit (void); void regnick (char *password); void restoreterm (void); -void restrict (void); +void setrestricted (void); int s_admin (TARGLIST); int s_beep (TARGLIST); int s_bump (TARGLIST); @ 1.5 log @Don't use "restrict" as an identifier; it's a keyword nowadays. Fixes clang build. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2010/03/04 21:40:29 spz Exp $ d34 1 a34 1 @@@@ -79,7 +82,7 @@@@ void echo (void); d43 8 @ 1.4 log @Add patches to compile on systems with getline() and to link to the tcl currently in pkgsrc. @ text @d1 4 a4 1 $NetBSD$ d43 9 @ 1.3 log @Always include sys/types.h, it is needed on !NetBSD as well. Use dirent.h instead of sys/dir.h, the former is POSIX and the latter gives a warning on DragonFly, which breaks -Werror. Use NAME_MAX if available, fall back to MAXNAMLEN otherwise. @ text @d31 9 @ 1.2 log @ Add a -lhost switch to allow binding to a local address on a multihomed host (i.e. choose with which address to connect to the server). Bump revision to i2cb-6.0_ALPHAnb1. @ text @d3 1 a3 1 --- src/externs.h.orig Wed Mar 15 23:28:13 2000 d5 1 a5 1 @@@@ -1,6 +1,10 @@@@ a8 1 +#ifdef __NetBSD__ a9 1 +#endif d14 1 a14 1 @@@@ -25,6 +29,7 @@@@ extern char *mygroup; /* requested grou d22 1 a22 1 @@@@ -69,7 +74,7 @@@@ void clearargs (int argc, char **argv); @ 1.1 log @Initial revision @ text @d16 17 @ 1.1.1.1 log @Import i2cb-6.0_ALPHA: Next generation Internet Citicen's Band chat client ICB (International CB) is a teleconferencing system that allows Internet users to participate in realtime online discussions. This package builds a client program (called, strangely enough, "icb") that is used to access ICB. i2cb was enhanced to support IPv6 etc. @ text @@