[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bsearch utility

From: James Youngman
Subject: Re: bsearch utility
Date: Thu, 14 Jul 2005 22:48:10 +0100
User-agent: Mutt/1.5.9i

On Thu, Jul 14, 2005 at 01:38:16PM -0700, Sorav Bansal wrote:

> look(1) mmaps() the entire file to memory and is not useful for large 
> files (>2GB). In its current form, it operates only on the first 2GB of 
> the file. For larger files, mmap() will fail. Please correct me, if I am 
> wrong.

I think you're right.  That implementation probably also comes unstuck
on systems where the type of the difference between pointers (no C
standard to hand, sorry) is narrower than off_t.

> IMHO, it will be useful to have an equivalent of look/bsearch in coreutils.

I agree.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]