aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/look
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-0/+4
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Fix a ton of speelling errorsEitan Adler2015-10-211-1/+1
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-192-4/+22
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | look: implement long optionsEitan Adler2014-07-042-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=268242
* | look(1): add compability with other implementations.Eitan Adler2014-05-112-1/+8
|/ | | | | | | | On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it. Notes: svn path=/head/; revision=265865
* Add missing static keywords to look(1)Ed Schouten2011-11-061-13/+13
| | | | Notes: svn path=/head/; revision=227171
* Sort header file names.Ed Schouten2011-10-171-1/+1
| | | | | | | Spotted by: des Notes: svn path=/head/; revision=226468
* Add missing #include.Ed Schouten2011-10-161-0/+1
| | | | | | | Note to myself: don't write patches while watching a movie. Notes: svn path=/head/; revision=226445
* Don't cast SIZE_T_MAX to off_t.Ed Schouten2011-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 Notes: svn path=/head/; revision=226444
* Build look(1) with WARNS=6.Ed Schouten2011-10-142-3/+1
| | | | Notes: svn path=/head/; revision=226359
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-113-12/+2
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=216370
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+3
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Don't try to mmap the contents of empty files. This behaviour was harmlessColin Percival2009-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 Notes: svn path=/head/; revision=196558
* Remove break after return.Stefan Farfeleder2006-07-181-2/+0
| | | | Notes: svn path=/head/; revision=160467
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Sort sections.Tim J. Robbins2004-07-191-3/+3
| | | | Notes: svn path=/head/; revision=132397
* Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENTTim J. Robbins2004-07-191-3/+15
| | | | | | | | section. Re-add a sentence from the BUGS section that went missing in the previous commit. Notes: svn path=/head/; revision=132396
* Add support for multibyte characters. While here, fix a longstanding bug inTim J. Robbins2004-07-192-59/+68
| | | | | | | | the implementation of the -d option: we were skipping too many characters when a non-alphanumeric character was encountered. Notes: svn path=/head/; revision=132394
* Point out in the BUGS section that look expects input files to haveTim J. Robbins2004-07-191-0/+7
| | | | | | | been sorted with LC_COLLATE=C. Notes: svn path=/head/; revision=132393
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-171-1/+5
| | | | Notes: svn path=/head/; revision=132277
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131491
* Introduce options definition the standard way.Philippe Charnier2003-06-091-2/+2
| | | | Notes: svn path=/head/; revision=116112
* ANSIify function definitions.David Malone2002-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 Notes: svn path=/head/; revision=102944
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Fix a const-char vs char issue.Mark Murray2002-04-281-1/+3
| | | | Notes: svn path=/head/; revision=95646
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-6/+6
| | | | Notes: svn path=/head/; revision=92920
* Warns cleanup - not ready for WARNS=2 yet.David Malone2001-12-031-2/+3
| | | | Notes: svn path=/head/; revision=87288
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-131-1/+1
| | | | Notes: svn path=/head/; revision=72432
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=48792
* Support multiple databases. For exampleWolfram Schneider1998-08-312-25/+25
| | | | | | | $ look miau dict1 dict2 dict3 Notes: svn path=/head/; revision=38701
* revert: The warning was supposed to irritate someone into fixing this.Jordan K. Hubbard1997-09-151-3/+2
| | | | Notes: svn path=/head/; revision=29472
* unsigned char -> caddr_t for mmap's return value.Jordan K. Hubbard1997-09-151-2/+3
| | | | Notes: svn path=/head/; revision=29464
* Use err(3) instead of local redefinition.Philippe Charnier1997-07-232-42/+18
| | | | Notes: svn path=/head/; revision=27623
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Merge from Lite2Peter Wemm1997-03-111-2/+5
| | | | Notes: svn path=/head/; revision=23693
* Sweep through the tree fixing mmap() usage:Alexander Langer1997-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 Notes: svn path=/head/; revision=21786
* Use the .At macro where appropriate.Mike Pritchard1996-08-231-1/+2
| | | | Notes: svn path=/head/; revision=17787
* Make it works with 8bit charsetsAndrey A. Chernov1995-10-291-15/+18
| | | | | | | Add setlocale LC_CTYPE Notes: svn path=/head/; revision=11900