Sat 08 Jan 2005 08:09:54 AM UTC, original submission:
Hello,
These are the last bits of <http://bugs.debian.org/102914>
---------------------------------------
Jeff Sheinberg <jeffsh@erols.com> wrote
This is a wishlist bug. I would like to see support added for the following FreeBSD options,
[...]
-m Use mmap(2) instead of stdio(3)
-s Use stdio(3) instead of mmap(2)
James Youngman <jay@gnu.org> wrote:
> -m Use mmap(2) instead of stdio(3)
> -s Use stdio(3) instead of mmap(2)
Which program does this apply to? What is the functional effect of these options? Why would I use them? Would it make a difference if they were just no-ops?
Jeff Sheinberg <jeff@bsrd.net> wrote:
> Thanks for implementing -S, -c, and -l in locate.
[...]
It would be nice if -m and -s were implemented as no-ops, or
perhaps additionally print a warning.
------------------------------------
The wish for locate is to mirror FreeBSD's enhanced -d functionality:
The -d option is for specifying and accessing multiple databases
to be used with a single locate command. Here are some details
from the NetBSD locate(1),
-d database
Search in database instead the default file name database.
Multiple -d options are allowed. Each additional -d option
adds the specified database to the list of databases to be
searched.
The option database may be a colon-separated list of
databases. A single colon is a reference to the default
database.
$ locate -d $HOME/lib/mydb: foo
will first search string ``foo'' in $HOME/lib/mydb and then
in /var/db/locate.database.
$ locate -d $HOME/lib/mydb::/cdrom/locate.database foo
will first search string ``foo'' in $HOME/lib/mydb and then
in /var/db/locate.database and then in
/cdrom/locate.database.
``$ locate -d db1 -d db2 -d db3 pattern'' is the same as
``$ locate -d db1:db2:db3 pattern'' or
``$ locate -d db1:db2 -d db3 pattern''.
If - is given as the database name, standard input will be
read instead. For example, you can compress your database
and use:
$ zcat database.gz | locate -d - pattern
This might be useful on machines with a fast CPU and little
RAM and slow I/O. Note: you can only use one pattern for
stdin.
|