From nobody@FreeBSD.ORG  Tue May 16 01:38:56 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 3E0C437BDD6; Tue, 16 May 2000 01:38:55 -0700 (PDT)
Message-Id: <20000516083855.3E0C437BDD6@hub.freebsd.org>
Date: Tue, 16 May 2000 01:38:55 -0700 (PDT)
From: phk@FreeBSD.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: cmp(1) chokes on large files
X-Send-Pr-Version: www-1.0

>Number:         18589
>Category:       bin
>Synopsis:       cmp(1) chokes on large files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mikeh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 16 01:40:03 PDT 2000
>Closed-Date:    Sun Nov 4 13:34:47 PST 2001
>Last-Modified:  Sun Nov 04 13:38:01 PST 2001
>Originator:     Poul-Henning Kamp
>Release:        -CURRENT
>Organization:
Fregatten Jylland som Barn
>Environment:
FreeBSD critter.freebsd.dk 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Sat May 13 22:04:02 CEST 2000     root@critter.freebsd.dk:/usr/src/sys/compile/CRITTER  i386
>Description:
The cmp(1) program mmaps the files to be compared.  This fails for large files.
>How-To-Repeat:
cmp -l file.1 file.2  where the two files are 3242115072 bytes long
>Fix:
Add a loop around the mmap/compare operation which operates on some moderate amount of data each iteration.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mikeh 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Sat Jun 16 13:07:11 PDT 2001 
Responsible-Changed-Why:  
Add another one to the todo list. I'm working on some patches for 
this anyways. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18589 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Sun Nov 4 13:34:47 PST 2001 
State-Changed-Why:  
Closed in favour of PR 24732, which has patches which have been committed 
to -current. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18589 
>Unformatted:
