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.



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to