Commit Graph

61 Commits

Author SHA1 Message Date
alex
af5c4c0974 /etc/weekly --> /etc/periodic/weekly/310.locate
PR:		19268
Submitted by:	Uwe Pierau <uwe.pierau@tu-clausthal.de>
Reviewed by:	asmodai
2000-06-14 17:41:31 +00:00
sheldonh
321f9316fa Remove more single-space hard sentence breaks. 2000-03-06 09:45:37 +00:00
sheldonh
d39e57413d Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
gsutter
ca733e41ae underline "pattern" in the synopsis.
PR:		17042
Submitted by:	Edwin Groothuis <mavetju@chello.nl>
2000-02-28 21:23:27 +00:00
asmodai
7602545cb7 Fix typo's.
PR:		16430
Submitted by:	Adam.Kranzel@teru.dyndns.org (shade@dnai.com)
2000-01-28 20:20:28 +00:00
kris
0707e1ba95 Use mktemp(1) for tempfiles (concatdb.sh), and increase the number of X's. 2000-01-12 08:01:01 +00:00
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nik
7e91e73b9f Add $Id$, to make it simpler for members of the translation teams to
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
1999-07-12 20:24:20 +00:00
ru
0974177db3 Fix a width. 1999-06-05 15:03:47 +00:00
wosch
d98640349c Delete debug line.
PR:	bin/9793
Submitted by: Andy Farkas <andyf@speednet.com.au>
1999-05-14 18:45:18 +00:00
wosch
89703f7be6 Don't overwrite the variable LOCATE_CONFIG
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>
1999-05-14 10:18:43 +00:00
ache
1259b793a6 fix PRUNEPATHS assignment 1999-02-28 20:40:19 +00:00
wosch
8e7edf802b Added myself as maintainer. 1999-02-09 17:23:03 +00:00
wosch
436f9858b6 Set TMPDIR to /tmp
Use the new find option -s for sorted output.
Remove the temp directory in trap.
1998-11-29 14:46:35 +00:00
wosch
be4e884848 Set TMPDIR to /tmp
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.
1998-11-29 00:59:20 +00:00
wosch
c116b0764e Recommended TMPDIR is now /tmp (undo rev 1.6) 1998-11-29 00:57:03 +00:00
wosch
d2fb8d8a31 Create a save TMPDIR using `mktemp -d'. 1998-06-18 09:26:22 +00:00
jkoshy
f784cc3d2a Add cross references for find(1), locate(1), whereis(1) and which(1).
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
1998-05-15 11:22:42 +00:00
wosch
f9389a0e81 Change default temporary directory (TMPDIR) from /tmp to /var/tmp.
Mosts users seems to have a larger /var/tmp partition
than /tmp - IMHO silly but who cares?
1998-03-08 16:09:31 +00:00
wosch
6fb2f9185a Improve shell variable substitution. 1998-03-08 15:28:37 +00:00
alex
c1b8c3e98c locate(1) is no longer started by /etc/weekly. 1998-02-07 05:30:14 +00:00
alex
5d983a392b Typo fix. 1998-01-01 02:34:14 +00:00
bde
6c4eecd16e <bsd.prog.mk> has always included ../Makefile.inc, and there are no
complications involving .PATH or dependencies, so don't include it here.
1997-12-17 19:49:09 +00:00
sef
f6d541d5c0 Allow TMPDIR to be set and actually *used*; if it not set, it defaults
to /tmp.
1997-12-13 18:18:12 +00:00
wosch
b96d048188 Float overflow in statistic function for large databases
(>100MB characters).
1997-09-23 12:47:47 +00:00
charnier
473366caf4 Use err(3). Use .Pa macro for filenames in man page. 1997-07-21 12:08:14 +00:00
jmg
c1513ecd7d fix up this man page
one typo was:
Submitted by: Josh Gilliam
PR#3319
1997-04-18 11:12:52 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
jmg
8fe249dc4f fix a couple misspellings, one of 'em closes pr 2892. 1997-03-06 05:11:55 +00:00
peter
aef78d145b Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
alex
ee019a53dc Sweep through the tree fixing mmap() usage:
- 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
1997-01-16 21:58:40 +00:00
jkh
9c0cd3f9df 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.
1997-01-14 07:20:47 +00:00
wosch
89cd712450 Fix uninitialized memory read for case insensitive search. Harmless.
submitted by: purify
1996-12-13 20:28:24 +00:00
wosch
ee564131a0 add forgotten variable $locate 1996-10-31 22:46:52 +00:00
alex
4a0237feb9 Typo: to --> too. Fixes PR#1907.
Pointed out by:	Pat Lashley <patl@Phoenix.Volant.ORG>
1996-10-27 19:18:06 +00:00
wosch
6815328d14 Do not store character 30. I made a test at my CS department
and at least one user use this char in a file name. Older
locate implementions core'd.
1996-10-27 19:04:27 +00:00
ache
b5cbb253de Rename FNM_ICASE to FNM_CASEFOLD 1996-10-23 16:46:47 +00:00
wosch
addcba9b4b Better case insensitve search support for pattern with meta chars.
In some rare cases this does not work proper before flag FNM_ICASE was
added to fnmatch(3).
1996-10-20 16:54:51 +00:00
wosch
6e160d3429 8-Bit character support.
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
1996-10-13 01:44:43 +00:00
wosch
ea6be4baab export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc) 1996-10-12 20:29:25 +00:00
wosch
fe7480e022 Fix searching for shell quoting characters. I guess it was
broken since locate exists.

This works now

$ locate '*\['
$ locate '*i386-\**'
$ locate '*[C\[]'
1996-10-09 00:33:34 +00:00
wosch
7fe6e7c615 #include <fastfind.c> -> #include "fastfind.c" 1996-09-16 01:17:25 +00:00
wosch
3ddb4ac93a remove unnecessary boundary check, 2x faster
code cleanup
1996-09-14 20:15:49 +00:00
guido
c7390feb6d Document the existance of a configuration file for updatedb.
Fix a typo in the default rc file and add a comment about
default values.
1996-09-05 20:18:15 +00:00
wosch
67799b57ee Fix to work with obj directories: -I. -> -I${.CURDIR}
Submitted by: Bruce
1996-09-01 16:03:28 +00:00
wosch
40d168cca1 optimized search algorithm
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
1996-08-31 23:14:54 +00:00
wosch
fc2c08f011 NULL -> '\0'
Submitted by: Bruce, see also c-faq 5.6 and 5.9
1996-08-31 14:51:18 +00:00
peter
d4ed6f192d fix prototypes/forward declarations/return type
kill obsolete updatedb.csh, it's been rewritten in sh now.
1996-08-30 03:08:26 +00:00
peter
7ff76c3c85 delete unused #include <string.h> 1996-08-30 03:06:15 +00:00
wosch
e99625b29c sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00