summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate/code
AgeCommit message (Collapse)AuthorFilesLines
2019-01-17delete some historic $Id that have been chewed on by cvstedu1-3/+1
ok millert mpi
2018-05-30calling err after fgets assumes we're not at EOF.espie1-4/+9
provide sensical error messages. okay millert@
2015-11-15pretty simple. pledge "stdio rpath" at startup, and pledge "stdio" afterderaadt1-2/+8
opening the database.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-6/+5
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2013-11-17Include unistd.h as it is the standard location for getopt().okan1-3/+6
OK millert@
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-16/+2
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-03-18It's not smart to use a space as a field separator when a space canotto1-3/+6
be part of a bigram. So switch to tab and as a bonus detect in locate.code if the bigram array is too short. Problem seen by Han Boetes and other people with too big mps3 collections; these typically contain lots of file names with spaces in them. ok jasper@
2007-02-19- Check for fgets failure.ray1-5/+6
- Pass sizeof(buf) to fgets. - Only print what was read. - Simplify error checking while printing bigrams. Inspired by diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@ and moritz@.
2003-11-09Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>otto1-4/+4
2003-09-29knfderaadt1-20/+16
2003-07-07protosderaadt1-9/+6
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert1-8/+4
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-5/+5
2001-11-19kill more registersmpech1-6/+6
millert@ ok
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!millert1-4/+4
1996-10-208-Bit character support. From wosch@freebsd.michaels1-30/+59
1996-09-15Blind update of wosch@FreeBSD's code:michaels2-19/+22
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 fix prototypes/forward declarations/return type
1996-08-30Bugs in code, NUL != NULL, from bde@zeta.org.au (Bruce Evans)michaels1-9/+9
1996-08-17++argvmichaels1-2/+3
1996-08-17hack around a few bugs till michael wakes upderaadt1-2/+2
1996-08-16Better locate from wosch@freebsd (Wolfram Schneider), sligthly modified.michaels2-32/+58
1996-06-26rcsidderaadt2-2/+3
1995-10-18initial import of NetBSD treederaadt2-0/+228