From owner-freebsd-ports@FreeBSD.ORG Thu Nov 6 05:37:21 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAAB116A4CE for ; Thu, 6 Nov 2003 05:37:21 -0800 (PST) Received: from plim.fujitsu-siemens.com (plim.fujitsu-siemens.com [217.115.66.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31DDF44005 for ; Thu, 6 Nov 2003 05:37:17 -0800 (PST) (envelope-from Martin.Kraemer@Fujitsu-Siemens.com) Received: from trulli.pdb.fsc.net ([172.25.96.53]) by plim.fujitsu-siemens.com (8.11.3/8.11.3) with ESMTP id hA6DbEr31454 for ; Thu, 6 Nov 2003 14:37:15 +0100 Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236]) by trulli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id hA6DbDV07167 for ; Thu, 6 Nov 2003 14:37:14 +0100 Received: from deejai2.mch.fsc.net (jhhd1t7nlaf2nph4@localhost [127.0.0.1]) by deejai2.mch.fsc.net (8.12.9p2/8.12.9) with ESMTP id hA6Db6ZU005705 for ; Thu, 6 Nov 2003 14:37:07 +0100 (CET) (envelope-from martin@deejai2.mch.fsc.net) Received: (from martin@localhost) by deejai2.mch.fsc.net (8.12.9p2/8.12.9/Submit) id hA6Db5FK005704 for ports@FreeBSD.org; Thu, 6 Nov 2003 14:37:05 +0100 (CET) (envelope-from martin) Date: Thu, 6 Nov 2003 14:37:05 +0100 From: Martin Kraemer To: ports@FreeBSD.org Message-ID: <20031106133705.GA4986@deejai2.mch.fsc.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE FreeBSD 4.9-STABLE X-Organization: Fujitsu Siemens Computers (Muenchen, Germany) X-Disclaimer: THE COMMENTS CONTAINED IN THIS MESSAGE REFLECT THE VIEWS OF THE WRITER AND ARE NOT NECESSARILY THE VIEWS OF FUJITSU SIEMENS COMPUTERS X-No-Junk-Mail: I do not want to get *any* junk mail. X-Virus-Scanned: by amavisd-new Subject: [PATCH] ports/editors/jove/ : Patch to enable longer lines than 1024 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 13:37:22 -0000 --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I use jove on several platforms, but was bothered by the short "max. line length" of 1023. The following patches do the following: files/patch-ah: Fix erroneous use of errno (setting it instead of testing it) in several places in portsrv.c files/patch-ai: Set max. line length to 32768 by increasing several limits which exist in the default source. Feel free to improve it, or use it for the FreeBSD ports use. Martin -- | Fujitsu Siemens Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ah --- ./portsrv.c Thu Mar 7 18:34:43 1996 +++ portsrv.c Mon Jan 20 14:37:02 2003 @@ -70,7 +70,7 @@ lump.header.nbytes = n; /* It is not clear what we can do if this write fails */ do ; while (write(1, (UnivPtr) &lump, sizeof(struct header) + n) < 0 - && errno = EINTR); + && errno == EINTR); } } @@ -85,7 +85,7 @@ size_t n; { /* It is not clear what we can do if this write fails */ - do ; while (write(1, ptr, n) < 0 && errno = EINTR); + do ; while (write(1, ptr, n) < 0 && errno == EINTR); } private void @@ -155,7 +155,7 @@ byte_copy((UnivConstPtr) &pid, (UnivPtr) lump.data, sizeof(pid_t)); /* It is not clear what we can do if this write fails */ do ; while (write(1, (UnivConstPtr) &lump, sizeof(struct header) + sizeof(pid_t)) < 0 - && errno = EINTR); + && errno == EINTR); /* read proc's output and send it to jove */ read_pipe(p[0]); @@ -181,7 +181,7 @@ /* It is not clear what we can do if this write fails */ do ; while (write(1, (UnivConstPtr) &lump, sizeof(struct header) + sizeof(wait_status_t)) < 0 - && errno = EINTR); + && errno == EINTR); } } --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ai Index: fp.h =================================================================== RCS file: /home/cvs/jove/fp.h,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.2.4.1 diff -u -r1.1.1.2 -r1.1.1.2.4.1 --- fp.h 20 Feb 1998 16:50:41 -0000 1.1.1.2 +++ fp.h 20 Jan 2003 13:37:44 -0000 1.1.1.2.4.1 @@ -18,6 +18,8 @@ extern void flushscreen proto((void)); # ifndef SMALL # define MAXTTYBUF 2048 +#undef MAXTTYBUF +#define MAXTTYBUF 35000 # else # define MAXTTYBUF 512 # endif Index: jove.h =================================================================== RCS file: /home/cvs/jove/jove.h,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.2.4.1 diff -u -r1.1.1.2 -r1.1.1.2.4.1 --- jove.h 20 Feb 1998 16:50:59 -0000 1.1.1.2 +++ jove.h 20 Jan 2003 13:37:44 -0000 1.1.1.2.4.1 @@ -268,6 +268,8 @@ /* term.c: universal termcap-like declarations */ #define MAXCOLS 256 /* maximum number of columns */ +#undef MAXCOLS +#define MAXCOLS 32768 /* Allow 1< 32768 columns (see also JLGBUFSIZ in sysdep.h) */ extern int SG, /* number of magic cookies left by SO and SE */ --- sysdep.h~ Tue Mar 19 05:44:33 1996 +++ sysdep.h Thu Nov 6 10:58:13 2003 @@ -154,7 +154,8 @@ # define USE_FSYNC 1 # define USE_FSTAT 1 # define USE_FCHMOD 1 # define USE_CTYPE 1 +# define JLGBUFSIZ 15 /* Allow 1< 32768 columns (see also MAXCOLS in jove.h) */ #endif #ifdef IRIX --sm4nu43k4a2Rpi4c--