History log of /freebsd-12.1/usr.bin/locate/code/locate.code.c (Results 1 – 16 of 16)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0
# df57947f 18-Nov-2017 Pedro F. Giffuni <[email protected]>

spdx: initial adoption of licensing ID tags.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensou

spdx: initial adoption of licensing ID tags.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes: yes
Differential Revision: https://reviews.freebsd.org/D13133

show more ...


Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0, release/7.4.0, release/8.2.0, release/8.1.0
# 31fa4102 28-Jun-2010 Gavin Atkinson <[email protected]>

Various changes to make locate compilable with WARNS=6. Note that there
is still one issue on FreeBSD/arm (signed vs unsigned char) which prevents
actually bumping this to WARNS=6 - I'm still consid

Various changes to make locate compilable with WARNS=6. Note that there
is still one issue on FreeBSD/arm (signed vs unsigned char) which prevents
actually bumping this to WARNS=6 - I'm still considering the correct
solution to this issue.

Tested by: make universe

show more ...


Revision tags: release/7.3.0, release/8.0.0, release/7.2.0, release/7.1.0, release/6.4.0, release/7.0.0, release/6.3.0, release/6.2.0, release/5.5.0, release/6.1.0, release/6.0.0, release/5.4.0, release/4.11.0, release/5.3.0, release/4.10.0, release/5.2.1, release/5.2.0, release/4.9.0, release/5.1.0, release/4.8.0, release/5.0.0, release/4.6.2
# f1bb2cd2 22-Mar-2002 Warner Losh <[email protected]>

remove __P


Revision tags: release/4.3.0
# 62f882d6 04-Sep-2000 Warner Losh <[email protected]>

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


# c3aac50f 28-Aug-1999 Peter Wemm <[email protected]>

$Id$ -> $FreeBSD$


# c44252b6 06-Jul-1997 Bruce Evans <[email protected]>

Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,
pascal and vmstat.sparc. All changed files on the vendor branch should
already have been imported.


# 1c8af878 29-Mar-1997 Warner Losh <[email protected]>

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# c115df18 22-Feb-1997 Peter Wemm <[email protected]>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <[email protected]>

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

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.

show more ...


# c83667e6 27-Oct-1996 Wolfram Schneider <[email protected]>

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.


# 139764e8 13-Oct-1996 Wolfram Schneider <[email protected]>

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 no

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

show more ...


# 1a1ee31f 31-Aug-1996 Wolfram Schneider <[email protected]>

NULL -> '\0'
Submitted by: Bruce, see also c-faq 5.6 and 5.9


# 7ec1929d 22-Aug-1996 Wolfram Schneider <[email protected]>

code cleanup


# 37002181 14-Aug-1996 Wolfram Schneider <[email protected]>

bigram
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-12

bigram
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: [email protected] (Guido van Rooij)

concatdb - concatenate locate databases
mklocatedb - build locate database

show more ...


# 2fdd39d2 21-Jan-1995 Andrey A. Chernov <[email protected]>

Better protection against too long pathes and 8bit controls in file
names, locate dumps core instead


Revision tags: release/1.1.5.1_cvs
# 9b50d902 27-May-1994 Rodney W. Grimes <[email protected]>

BSD 4.4 Lite Usr.bin Sources