History log of /freebsd-10-stable/usr.bin/look/
Revision Date Author Comments
256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


227171 06-Nov-2011 ed

Add missing static keywords to look(1)


226468 17-Oct-2011 ed

Sort header file names.

Spotted by: des


226445 16-Oct-2011 ed

Add missing #include.

Note to myself: don't write patches while watching a movie.


226444 16-Oct-2011 ed

Don't cast SIZE_T_MAX to off_t.

I focused so much on the 32-bits case where we have to cast SIZE_T_MAX
up in size, that I forgot about the 64-bits case, where off_t and size_t
are equal in size. Simply cast both numbers to uintmax_t, as we can
assume st_size is never negative.

Reported by: cperciva


226359 14-Oct-2011 ed

Build look(1) with WARNS=6.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


196558 26-Aug-2009 cperciva

Don't try to mmap the contents of empty files. This behaviour was harmless
prior to r195693, since historical behaviour of mmap(2) was to silently
ignore length-zero mmap requests; but mmap now returns EINVAL, which caused
look(1) to emit an error message and fail.

Among other things, this makes `freebsd-update fetch` on a newly installed
8.0-BETA3 system print bogus warning messages.

MFC after: 3 days


160467 18-Jul-2006 stefanf

Remove break after return.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


132397 19-Jul-2004 tjr

Sort sections.


132396 19-Jul-2004 tjr

Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENT
section. Re-add a sentence from the BUGS section that went missing in
the previous commit.


132394 19-Jul-2004 tjr

Add support for multibyte characters. While here, fix a longstanding bug in
the implementation of the -d option: we were skipping too many characters
when a non-alphanumeric character was encountered.


132393 19-Jul-2004 tjr

Point out in the BUGS section that look expects input files to have
been sorted with LC_COLLATE=C.


132277 17-Jul-2004 tjr

Document incorrect handling of multibyte characters.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


116112 09-Jun-2003 charnier

Introduce options definition the standard way.


102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


99112 30-Jun-2002 obrien

Consistently use FBSDID


95646 28-Apr-2002 markm

Fix a const-char vs char issue.


95124 20-Apr-2002 charnier

Use `The .Nm utility'


92920 22-Mar-2002 imp

remove __P


87288 03-Dec-2001 dwmalone

Warns cleanup - not ready for WARNS=2 yet.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


72432 13-Feb-2001 ru

mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


38701 31-Aug-1998 wosch

Support multiple databases. For example

$ look miau dict1 dict2 dict3


29472 15-Sep-1997 jkh

revert: The warning was supposed to irritate someone into fixing this.


29464 15-Sep-1997 jkh

unsigned char -> caddr_t for mmap's return value.


27623 23-Jul-1997 charnier

Use err(3) instead of local redefinition.


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23693 11-Mar-1997 peter

Merge from Lite2


21786 16-Jan-1997 alex

Sweep through the tree fixing mmap() usage:

- Use MAP_FAILED instead of the constant -1 to indicate
failure (required by POSIX).
- Removed flag arguments of '0' (required by POSIX).
- Fixed code which expected an error return of 0.
- Fixed code which thought any address with the high bit set
was an error.
- Check for failure where no checks were present.

Discussed with: bde


17787 23-Aug-1996 mpp

Use the .At macro where appropriate.


11900 29-Oct-1995 ache

Make it works with 8bit charsets
Add setlocale LC_CTYPE


8874 30-May-1995 rgrimes

Remove trailing whitespace.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.