summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix to work with obj directories: -I. -> -I${.CURDIR}wosch1996-09-011-2/+2
| | | | Submitted by: Bruce
* optimized search algorithmwosch1996-08-315-121/+957
| | | | | | | | | | | | | faster IO due mmap(2) [-m | -s] better error check for damaged databases support for databases in network byte order (SunOS/sparc) optional case insensitve search [-i] optional multiple databases optional multiple pattern new enviroment variable LOCATE_PATH for database(s) [-S] print some statistic about the database [-l number] limit output to number file names [-c] suppress normal output; instead print a count of matching file names
* NULL -> '\0'wosch1996-08-312-12/+12
| | | | Submitted by: Bruce, see also c-faq 5.6 and 5.9
* fix prototypes/forward declarations/return typepeter1996-08-302-78/+5
| | | | kill obsolete updatedb.csh, it's been rewritten in sh now.
* delete unused #include <string.h>peter1996-08-301-2/+1
|
* sync copyright with /usr/share/examples/etc/bsd-style-copyrightwosch1996-08-273-6/+72
|
* code cleanupwosch1996-08-222-33/+35
|
* bigramwosch1996-08-1412-98/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bigram does not remove newline at end of filename. This break particulary the bigram algorithm and /var/db/locate.database grow up 15 %. Bigram does not check for characters outside 32-127. The bigram output is silly and need ~1/2 CPU time of database rebuilding. old: locate.bigram < $filelist | sort | uniq -c | sort -nr ^^^^^^^^^^^^^^ this can easy made bigram new: bigram < $filelist | sort -nr code Code does not check for char 31. Use a lookup array instead a function. 3 x faster. updatedb rewritten sync with bigram changes read config file /etc/locate.rc if exists submitted by: guido@gvr.win.tue.nl (Guido van Rooij) concatdb - concatenate locate databases mklocatedb - build locate database
* Use '-fstype ufs' rather than '-fstype local' on the find command to avoiddg1996-03-052-2/+2
| | | | special non-filesystems like procfs from being included.
* Added a small man page for locate.updatedb(8).mpp1996-02-113-1/+62
|
* Added some info describing the script that updates the database,mpp1996-02-111-1/+14
| | | | | and the fact that it is usually run by /etc/weekly. Closes docs/127.
* Re-wrote the locate.updatedb script in /bin/sh for speed and portability.nate1995-11-092-1/+80
| | | | Obtained from: Partially my work in 1.
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-1/+1
| | | | specified in the top level Makefiles.
* Remove trailing whitespace.rgrimes1995-05-302-6/+6
|
* Better protection against too long pathes and 8bit controls in fileache1995-01-211-4/+4
| | | | names, locate dumps core instead
* Fix a longstanding bogon with setenv usage.jkh1994-09-071-1/+1
| | | | Submitted by: jkh
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-2711-0/+757
OpenPOWER on IntegriCloud