History log of /freebsd-11.0-release/usr.bin/whereis/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

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

302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

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


298879 01-May-2016 pfg

usr.bin: minor spelling fixes on comments.

No functional change.


298371 20-Apr-2016 bapt

Fix bad checking of the return of realloc(3)

Reported by: Coverity
CID: 1007335
MFC after: 3 days


298184 18-Apr-2016 araujo

Use NULL instead of 0 for pointers.

realloc will return NULL if it cannot allocate memory.

MFC after: 2 weeks.


284345 13-Jun-2015 sjg

Add META_MODE support.

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


278616 12-Feb-2015 cperciva

Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.

The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive. Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.

The next steps will be:

2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.

3. Merging src/games into src/usr.bin.

This change will not be MFCed.

Reviewed by: jmg
Discussed at: EuroBSDCon
Approved by: gjb (release-affecting changes)


263142 14-Mar-2014 eadler

multiple: Remove 3rd clause from BSD license where approved by the
regents and renumber.

This patch skips files in contrib/ and crypto/

Acked by: imp
Discussed with: emaste


228991 30-Dec-2011 uqs

Reencode files from latin1 to UTF-8.

This makes a tiny percentage of entries in calendars ugly for latin1
users, but fixes them for UTF-8 users.

This badly needs a solution involving locale-dependent re-encoding.


227244 06-Nov-2011 ed

Mark global functions and/or variables in whereis(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.


201386 02-Jan-2010 ed

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

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


179888 20-Jun-2008 joerg

Make the search for sources in PATH_PORTS more accurate. I only
noticed that a "whereis -qs qemu" matched the distfiles subdir of qemu
rather than /usr/ports/emulators/qemu.

It now ignores all dot entries in /usr/ports, plus all entries
starting with a capital letter (maintenance stuff like Templates, but
also includes subdir CVS), plus /usr/ports/distfiles which is simply a
magic name in that respect.


144840 09-Apr-2005 stefanf

Remove unused variables.


141657 10-Feb-2005 ru

Fixed usage().


140941 28-Jan-2005 ru

Let bsd.prog.mk set SRCS and MAN to their default values.


132198 15-Jul-2004 tjr

Respect locale settings from the environment.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


108436 30-Dec-2002 obrien

Adjust max WARNs for sparc64.


107276 26-Nov-2002 ru

mdoc(7) police: markup polishing.

Approved by: re


102247 22-Aug-2002 johan

Use correct document date for the -a option.


102246 22-Aug-2002 johan

Add the -a option to report all matches instead of only the
first of each requested type.

Approved by: joerg, sheldonh (mentor)


102072 18-Aug-2002 johan

Correctly handle empty path arguments, e.g., whereis -S -f biff.

Approved by: joerg, sheldonh (mentor)


100691 25-Jul-2002 johan

Define all paths in pathnames.h

Approved by: joerg, sheldonh (mentor)


100608 24-Jul-2002 johan

Teach whereis(1) about games.

Approved by: joerg, sheldonh (mentor)


99970 14-Jul-2002 charnier

The .Nm utility


99821 11-Jul-2002 joerg

Complete rewrite, once again.

This is basically a ``C compilation'' of the former whereis.pl file,
employing the same algorithms, and aiming at being mostly
UI-compatible to the old (legally tainted) 4.3BSD whereis(1). In
comparision, the 4.4BSD-Lite version is just another variant of
which(1) only, where in particular the option to search for source
directories is sorely missing.

While i was at it, i added two more options which i contemplated doing
long since. -x will suppress the run of locate(1) to find sources
that could not be found otherwise, potentially saving a lot of time
(but obviously, risking to not find some sources that are well hidden
in the tree). -q will omit the leading name of the query, so in
particular, you can now do something like:

cd `whereis -qs ls`

I'd explicitly like to thank johan for his review which was quite a
bit more than an average review, including sending me a lot of diffs.

Reviewed by: johan


99406 04-Jul-2002 johan

Restore copyright and RCSID.
Remove duplicate $FreeBSD$, $NetBSD$.

Submitted by: mike
Approved by: sheldonh (mentor)


99378 03-Jul-2002 johan

Switch to c version

Approved by: sheldonh (mentor)


99377 03-Jul-2002 johan

compact synopsis
s/program [program ...]/program .../
s/program [...]/program .../

Approved by: sheldonh (mentor)


99376 03-Jul-2002 johan

Remove -p flag.
OpenBSD's implementation lacks -p, and we don't want to
support the option now, only to lose it if/when we later
switch to OpenBSD's implementation.
This functionality is provided by which(1).

Approved by: sheldonh (mentor)


99375 03-Jul-2002 johan

Add __FBSDID.
Remove __COPYRIGHT, __RCSID which caused an assembler warning.

Approved by: sheldonh (mentor)


99373 03-Jul-2002 johan

Change to NetBSDs version of whereis.

Approved by: sheldonh (mentor)
Obtained from: NetBSD


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


75286 07-Apr-2001 ru

beforeinstall -> SCRIPTS.


74848 27-Mar-2001 ru

MAN[1-9] -> MAN.


70197 19-Dec-2000 ru

Prepare for mdoc(7)NG.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68854 17-Nov-2000 ru

mdoc(7) police: use certified section headers wherever possible.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48086 21-Jun-1999 hoek

Don't strip trailing .suffixes from filenames. Although obviously
intentional, this behaviour is far too obnoxious given the number of
filenames such as rpc.statd we have.

Submitted by: Chris Costello [3]chris@calldei.com (bin/11303)


39945 04-Oct-1998 obrien

Also look in /usr/src/contrib.

PR: bin/7835
Submitted by: Stephen J. Roznowski <sjr@home.net>


38702 31-Aug-1998 wosch

Sort cross references.


36057 15-May-1998 jkoshy

Add cross references for find(1), locate(1), whereis(1) and which(1).

Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642


31938 22-Dec-1997 ache

Fix sysctl path /usr/sbin->/sbin


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20869 23-Dec-1996 joerg

Fix a logico that sneaked into the manpath handling.

Turn off error messages from locate(1), we can't do very much about
its database not being ok anyway at this time.

Closes PR # bin/2183: whereis returns environ...


16385 15-Jun-1996 joerg

A totally revamped whereis(1), bringing back all the functionality of
the 4.3BSD command. Rewritten from scratch after the old man page,
taking account for the different situation with man pages and source
tree hierarchy (re: /usr/src/gnu) of the FreeBSD project.

Reviewed by: wosch (actually loooong time ago)


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.