|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
CAP_MKDB(1) FreeBSD General Commands Manual CAP_MKDB(1)
NAME
cap_mkdb -- create capability database
SYNOPSIS
cap_mkdb [-b | -l] [-v] [-f outfile] file ...
DESCRIPTION
The cap_mkdb utility builds a hashed database out of the getcap(3) logi-
cal database constructed by the concatenation of the specified files.
The database is named by the basename of the first file argument and the
string ``.db''. The getcap(3) routines can access the database in this
form much more quickly than they can the original text file(s).
The ``tc'' capabilities of the records are expanded before the record is
stored into the database.
The following options are available:
-b Use big-endian byte order for database metadata.
-f outfile
Specify a different database basename.
-l Use little-endian byte order for database metadata.
-v Print out the number of capability records in the database.
The -b and -l flags are mutually exclusive. The default byte ordering is
the current host order.
FORMAT
Each record is stored in the database using two different types of keys.
The first type is a key which consists of the first capability of the
record (not including the trailing colon (``:'')) with a data field con-
sisting of a special byte followed by the rest of the record. The spe-
cial byte is either a 0 or 1, where a 0 means that the record is okay,
and a 1 means that there was a ``tc'' capability in the record that could
not be expanded.
The second type is a key which consists of one of the names from the
first capability of the record with a data field consisting a special
byte followed by the first capability of the record. The special byte is
a 2.
In normal operation names are looked up in the database, resulting in a
key/data pair of the second type. The data field of this key/data pair
is used to look up a key/data pair of the first type which has the real
data associated with the name.
EXIT STATUS
The cap_mkdb utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
dbopen(3), getcap(3), termcap(5)
FreeBSD 6.2 February 22, 2005 FreeBSD 6.2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 19 19:56:34 BST 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
svn man page (5497 hits) (FreeBSD 6.2)
sqlite3 man page (5423 hits) (openSUSE 10.2)
adv_cap_autoneg man page (4921 hits) (Solaris 10 11_06)
CPAN man page (4660 hits) (Suse Linux 10.1)
ssh man page (4365 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (3081 hits) (Solaris 10 11_06)
netcat man page (2905 hits) (Suse Linux 10.1)
signal man page (2756 hits) (Suse Linux 10.1)
startproc man page (2549 hits) (Suse Linux 10.1)
pprosetup man page (2548 hits) (Solaris 10 11_06)
|