Commit Graph

62 Commits

Author SHA1 Message Date
imp
3c95f9ccde getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
alex
822306083e /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
4402d054c2 Remove more single-space hard sentence breaks. 2000-03-06 09:45:37 +00:00
sheldonh
49c4458c80 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
e6ff2e2d41 underline "pattern" in the synopsis.
PR:		17042
Submitted by:	Edwin Groothuis <mavetju@chello.nl>
2000-02-28 21:23:27 +00:00
asmodai
f0637b8bfa Fix typo's.
PR:		16430
Submitted by:	Adam.Kranzel@teru.dyndns.org (shade@dnai.com)
2000-01-28 20:20:28 +00:00
kris
75d9577e30 Use mktemp(1) for tempfiles (concatdb.sh), and increase the number of X's. 2000-01-12 08:01:01 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nik
6578739ddb 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
3f2ee1926f Fix a width. 1999-06-05 15:03:47 +00:00
wosch
6cbd1117d8 Delete debug line.
PR:	bin/9793
Submitted by: Andy Farkas <andyf@speednet.com.au>
1999-05-14 18:45:18 +00:00
wosch
2a8f6e8340 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
89cdd7ff46 fix PRUNEPATHS assignment 1999-02-28 20:40:19 +00:00
wosch
09f406ace9 Added myself as maintainer. 1999-02-09 17:23:03 +00:00
wosch
a42ed30fc8 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
27d1e786a6 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
f14200ee15 Recommended TMPDIR is now /tmp (undo rev 1.6) 1998-11-29 00:57:03 +00:00
wosch
ee69dd69c5 Create a save TMPDIR using `mktemp -d'. 1998-06-18 09:26:22 +00:00
jkoshy
715f414038 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
a301d87415 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
583f1a9569 Improve shell variable substitution. 1998-03-08 15:28:37 +00:00
alex
3a51add60d locate(1) is no longer started by /etc/weekly. 1998-02-07 05:30:14 +00:00
alex
d64dcc2cd6 Typo fix. 1998-01-01 02:34:14 +00:00
bde
eeba28eca5 <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
4146eb94bc 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
6947e679d6 Float overflow in statistic function for large databases
(>100MB characters).
1997-09-23 12:47:47 +00:00
charnier
f85d3627d4 Use err(3). Use .Pa macro for filenames in man page. 1997-07-21 12:08:14 +00:00
jmg
506ccc9b89 fix up this man page
one typo was:
Submitted by: Josh Gilliam
PR#3319
1997-04-18 11:12:52 +00:00
imp
141381e1cb 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
aad780781b fix a couple misspellings, one of 'em closes pr 2892. 1997-03-06 05:11:55 +00:00
peter
f390c26dd9 Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
alex
a3118e8c68 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
808a36ef65 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
4ad813db29 Fix uninitialized memory read for case insensitive search. Harmless.
submitted by: purify
1996-12-13 20:28:24 +00:00
wosch
e2f97bd33e add forgotten variable $locate 1996-10-31 22:46:52 +00:00
alex
b6d24b79f8 Typo: to --> too. Fixes PR#1907.
Pointed out by:	Pat Lashley <patl@Phoenix.Volant.ORG>
1996-10-27 19:18:06 +00:00
wosch
eac0f49e25 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
6042dbe6e1 Rename FNM_ICASE to FNM_CASEFOLD 1996-10-23 16:46:47 +00:00
wosch
22623bf1c5 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
1edf24275a 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
0952f69287 export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc) 1996-10-12 20:29:25 +00:00
wosch
f7abebc6e2 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
0db310bc8e #include <fastfind.c> -> #include "fastfind.c" 1996-09-16 01:17:25 +00:00
wosch
d403258fea remove unnecessary boundary check, 2x faster
code cleanup
1996-09-14 20:15:49 +00:00
guido
bdff9a8fc2 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
4f92cd3d5d Fix to work with obj directories: -I. -> -I${.CURDIR}
Submitted by: Bruce
1996-09-01 16:03:28 +00:00
wosch
5ec9b01393 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
daaa458ad4 NULL -> '\0'
Submitted by: Bruce, see also c-faq 5.6 and 5.9
1996-08-31 14:51:18 +00:00
peter
6143fcd95b 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
5ba2d9fdf8 delete unused #include <string.h> 1996-08-30 03:06:15 +00:00