From owner-freebsd-questions Wed Jun 9 15: 9:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand5.global.net.uk (sand5.global.net.uk [194.126.80.249]) by hub.freebsd.org (Postfix) with ESMTP id E830115416 for ; Wed, 9 Jun 1999 15:09:02 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from p1cs09a06.client.global.net.uk ([195.147.217.29] helo=marder-1.) by sand5.global.net.uk with esmtp (Exim 2.05 #1) id 10rqWm-0002XN-00; Wed, 9 Jun 1999 23:08:57 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id XAA01018; Wed, 9 Jun 1999 23:06:50 +0100 (BST) (envelope-from marko) Date: Wed, 9 Jun 1999 23:06:50 +0100 From: Mark Ovens To: Chris Singer Cc: Scott Langevin , BSD Help Subject: Re: Does anyone know what to do to apply a patch?? Message-ID: <19990609230649.J261@marder-1> References: <000301beb2c4$0012f890$0ea78e8b@maverick.workfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <000301beb2c4$0012f890$0ea78e8b@maverick.workfire.com>; from Chris Singer on Wed, Jun 09, 1999 at 03:04:09PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jun 09, 1999 at 03:04:09PM -0700, Chris Singer wrote: > I need to apply a patch to a source file and I'm wondering how you do it. > The purpose of this is to fix a TCP bug with small packets. Here is the > relevant info that I have been given: > > Apply the following patch to /usr/src/sys/kern/uipc_socket.c > > RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v > retrieving revision 1.40 > retrieving revision 1.41 > diff -p -u -r1.40 -r1.41 > --- src/sys/kern/uipc_socket.c 1998/05/15 20:11:30 1.40 > +++ /home/ncvs/src/sys/kern/uipc_socket.c 1998/07/06 19:27:14 1.41 > @@ -491,6 +491,7 @@ restart: > mlen = MCLBYTES; > len = min(min(mlen, resid), space); > }else{ > + atomic=1; > nopages; > len = min(min(mlen, resid), space); > /* > > > > That is all the info I have. I don't follow what it means? It doesn't much > look like C code until the last 5 or 6 lines. I tried entering them in as > commands and I just get a bad command back. Have any ideas of how to > implement this? THanks for taking the time to hear my dilema. > The file is the output from diff(1)'ing the original and modified files. Use patch(1). Usually ``patch < '' is aal that's required, but check the manpage for full details. > Chris Singer > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message