X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <0105D5C1E0353146B1B222348B0411A20886DC6D7B@NIHMLBX02.nih.gov> References: <20091026172622.GB790@ednor.casa.cgf.cx> <0105D5C1E0353146B1B222348B0411A20886DC6D7B@NIHMLBX02.nih.gov> Date: Mon, 26 Oct 2009 14:55:06 -0400 Message-ID: Subject: Re: How to increase the memory available to diff in cygwin 1.7? From: Kenneth Chiu To: "Buchbinder, Barry (NIH/NIAID) [E]" Cc: "cygwin@cygwin.com" Content-Type: text/plain; charset=ISO-8859-1 X-DKIM-Results: unsigned (cs.binghamton.edu) X-Spam-Score: -13 (-) X-Spam-Report: Spam detection software, running on the system "bulldog.cs.binghamton.edu", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: cmp doesn't recurse, though, at least as far as I can tell. In theory, I could use find, then cmp, plus some scripting, but seems simpler to just write a small C program to do it. On Mon, Oct 26, 2009 at 2:48 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote: > Kenneth Chiu sent the following at Monday, October 26, 2009 2:29 PM >> >>Considering that I only want to know whether or not two files differ, >>this should not require any significant memory usage. (In other words, >>don't use mmap().) > > If you only want to know whether or not they are identical, use cmp. > > - Barry > > "Get the right tool for the right job." > > Disclaimer: Statements made herein are not made on behalf of NIAID. > > [...] Content analysis details: (-1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com cmp doesn't recurse, though, at least as far as I can tell. In theory, I could use find, then cmp, plus some scripting, but seems simpler to just write a small C program to do it. On Mon, Oct 26, 2009 at 2:48 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote: > Kenneth Chiu sent the following at Monday, October 26, 2009 2:29 PM >> >>Considering that I only want to know whether or not two files differ, >>this should not require any significant memory usage. (In other words, >>don't use mmap().) > > If you only want to know whether or not they are identical, use cmp. > > - Barry > > "Get the right tool for the right job." > > Disclaimer: Statements made herein are not made on behalf of NIAID. > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple