summaryrefslogtreecommitdiffstats
path: root/usr.bin/look/look.c
Commit message (Collapse)AuthorAgeFilesLines
* look: implement long optionseadler2014-07-041-1/+10
| | | | | | | | | | gentoo has "util-linux 2.24.1" with long options. Other distributions have similar. usage() is intentionally unchanged to keep it short and sweet Reviewed by: jmg Discussed with: adrian, jilles
* look(1): add compability with other implementations.eadler2014-05-111-1/+4
| | | | | On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it.
* Add missing static keywords to look(1)ed2011-11-061-13/+13
|
* Sort header file names.ed2011-10-171-1/+1
| | | | Spotted by: des
* Add missing #include.ed2011-10-161-0/+1
| | | | Note to myself: don't write patches while watching a movie.
* Don't cast SIZE_T_MAX to off_t.ed2011-10-161-1/+1
| | | | | | | | | 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
* Build look(1) with WARNS=6.ed2011-10-141-1/+1
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | 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
* Don't try to mmap the contents of empty files. This behaviour was harmlesscperciva2009-08-261-0/+4
| | | | | | | | | | | 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
* Remove break after return.stefanf2006-07-181-2/+0
|
* Add support for multibyte characters. While here, fix a longstanding bug intjr2004-07-191-53/+68
| | | | | the implementation of the -d option: we were skipping too many characters when a non-alphanumeric character was encountered.
* ANSIify function definitions.dwmalone2002-09-041-18/+11
| | | | | | | | | 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
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Fix a const-char vs char issue.markm2002-04-281-1/+3
|
* remove __Pimp2002-03-221-6/+6
|
* Warns cleanup - not ready for WARNS=2 yet.dwmalone2001-12-031-2/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Support multiple databases. For examplewosch1998-08-311-24/+24
| | | | $ look miau dict1 dict2 dict3
* revert: The warning was supposed to irritate someone into fixing this.jkh1997-09-151-3/+2
|
* unsigned char -> caddr_t for mmap's return value.jkh1997-09-151-2/+3
|
* Use err(3) instead of local redefinition.charnier1997-07-231-38/+14
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-2/+5
|
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - 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
* Make it works with 8bit charsetsache1995-10-291-15/+18
| | | | Add setlocale LC_CTYPE
* Remove trailing whitespace.rgrimes1995-05-301-31/+31
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+357
OpenPOWER on IntegriCloud