| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
PR: bin/9793
Submitted by: Andy Farkas <andyf@speednet.com.au>
|
|
|
|
|
|
|
|
| |
This is useful for people who want index their home directory:
$ env LOCATE_CONFIG=$HOME/.locate.rc /usr/libexec/locate.updatedb
Submitted by: Dmitry Morozovsky <marck@rinet.ru>
|
| |
|
| |
|
|
|
|
|
| |
Use the new find option -s for sorted output.
Remove the temp directory in trap.
|
|
|
|
|
|
|
|
|
| |
Remove the temp directory in trap.
Replace the buggy awk script with a correct perl script.
Don't make a copy of the input data anymore if the input is already
sorted (option -presort). This scheme avoid large temporary files in
/tmp.
|
| |
|
| |
|
|
|
|
|
| |
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
|
|
|
|
|
| |
Mosts users seems to have a larger /var/tmp partition
than /tmp - IMHO silly but who cares?
|
| |
|
| |
|
| |
|
|
|
|
| |
complications involving .PATH or dependencies, so don't include it here.
|
|
|
|
| |
to /tmp.
|
|
|
|
| |
(>100MB characters).
|
| |
|
|
|
|
|
|
| |
one typo was:
Submitted by: Josh Gilliam
PR#3319
|
|
|
|
| |
posix standard on the topic.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
submitted by: purify
|
| |
|
|
|
|
| |
Pointed out by: Pat Lashley <patl@Phoenix.Volant.ORG>
|
|
|
|
|
| |
and at least one user use this char in a file name. Older
locate implementions core'd.
|
| |
|
|
|
|
|
| |
In some rare cases this does not work proper before flag FNM_ICASE was
added to fnmatch(3).
|
|
|
|
|
|
|
|
|
|
| |
Old locate(1) programs still works with the new database format, print
some garbage for 8 bit characters, but don't core (maybe except char 30).
7-Bit Puritan should not notice any difference. Same speed,
Same database size if the database contain only ASCII characters.
Reviewed by: ache
|
| |
|
|
|
|
|
|
|
|
|
|
| |
broken since locate exists.
This works now
$ locate '*\['
$ locate '*i386-\**'
$ locate '*[C\[]'
|
| |
|
|
|
|
| |
code cleanup
|
|
|
|
|
| |
Fix a typo in the default rc file and add a comment about
default values.
|
|
|
|
| |
Submitted by: Bruce
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Submitted by: Bruce, see also c-faq 5.6 and 5.9
|
|
|
|
| |
kill obsolete updatedb.csh, it's been rewritten in sh now.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
special non-filesystems like procfs from being included.
|
| |
|
|
|
|
|
| |
and the fact that it is usually run by /etc/weekly.
Closes docs/127.
|
|
|
|
| |
Obtained from: Partially my work in 1.
|