OpenBSD CVS

CVS log for src/usr.bin/tail/reverse.c


[BACK] Up to [local] / src / usr.bin / tail

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_3_4


Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 1 11:12:59 2003 UTC (20 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +54 -39 lines
Diff to previous 1.13 (colored)

rewrite to not use mmap(2). solves a bunch of issues:
- No more I/O related SEGVs (PR 2337?).
- Performance linear to size of output, not input file size, even for very large files.
  Same for -r.
- Reverse tail also works for very large files.
- Very large values of n possible, even for very large files. Same for -r.

work by Otto Moerbeek <otto@drijf.net>
tested by and ok millert@ and myself

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.