head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.54 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.52 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.50 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.48 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.46 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.44 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.42 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.40 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.38 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.36 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.34 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.32 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.30 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.28 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.4 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1; locks; strict; comment @# @; 1.4 date 2000.12.15.00.41.05; author wiz; state dead; branches; next 1.3; 1.3 date 99.11.26.23.18.47; author hubertf; state Exp; branches; next 1.2; 1.2 date 99.11.26.22.12.37; author hubertf; state Exp; branches; next 1.1; 1.1 date 99.06.01.12.14.00; author hubertf; state Exp; branches; next ; desc @@ 1.4 log @Move packages from 'net' into new 'chat' category. Add chat to main Makefile. @ text @$NetBSD: patch-ag,v 1.3 1999/11/26 23:18:47 hubertf Exp $ --- icb/print.c.orig Fri Feb 24 22:20:25 1995 +++ icb/print.c Sat Nov 27 00:01:04 1999 @@@@ -5,6 +5,7 @@@@ #include "icb.h" #include "externs.h" +#include extern FILE *logfp; @@@@ -17,12 +18,22 @@@@ char printbuf[1024]; char *p = printbuf; char *t = s; + struct tm *tm, *localtime(); + char timestamp[9]; if (continued) { linenumber = 0; continued = 0; } + /* If requested, prepare timestamp */ + if (gv.printtime) { + gettime(); + tm = localtime(&curtime); + snprintf(timestamp, sizeof(timestamp), "[%02d:%02d] ", + tm->tm_hour, tm->tm_min); + } + if (flags & PL_SCR) { /* if paging in effect, do paging */ if (gv.pagesize && (++linenumber >= gv.pagesize)) { @@@@ -35,6 +46,8 @@@@ *p++ = *t++; *p++ = '\r'; *p++ = '\n'; + if (gv.printtime) + write(1, timestamp, 8); write(1, printbuf, p - printbuf); } @ 1.3 log @add a space after the timestamp @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Split patches and add code to print time in front of each line. Needs to be switched on from .icbrc: oset printtime true. Bump version to 5.0.9pl1 for that. @ text @d3 2 a4 3 diff -x *.orig -urN ./icb/print.c /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/print.c --- ./icb/print.c Fri Feb 24 22:20:25 1995 +++ /usr/pkgsrc/net/icb/work.i386.unpatched/icb-5.0.9/icb/print.c Fri Nov 26 22:56:31 1999 d29 1 a29 1 + snprintf(timestamp, sizeof(timestamp), "[%02d:%02d]", d41 1 a41 1 + write(1, timestamp, 7); @ 1.1 log @Remove some compilation warnings, use mkstemp instead of mktemp. Patches submitted by Jaromir Dolecek in PR 7683 @ text @d1 45 a45 11 --- icb/c_shell.c.orig Tue Jun 1 10:38:15 1999 +++ icb/c_shell.c Tue Jun 1 10:38:47 1999 @@@@ -14,7 +14,7 @@@@ TARGDEFS static char *usage = "usage: c_shell [command]"; int w, pid; int shellout = 0; - union wait status; + int status; char *shell, *getenv(); /* disallow use if restricted mode set */ @