This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



CAP_MKDB(1)                              BSD General Commands Manual                             CAP_MKDB(1)

NAME
     cap_mkdb -- create capability database

SYNOPSIS
     cap_mkdb [-v] [-f outfile] file1 [file2 ...]

DESCRIPTION
     Cap_mkdb builds a hashed database out of the getcap(3) logical database constructed by the concatena-tion concatenation
     tion 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 options as as follows:

     -f outfile
             Specify a different database basename.

     -v      Print out the number of capability records in the database.

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 trail-ing trailing
     ing colon (``:'')) with a data field consisting of a special byte followed by the rest of the record.
     The special 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 couldn't 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 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.

RETURN VALUE
     The cap_mkdb utility exits 0 on success and >0 if an error occurs.

SEE ALSO
     dbopen(3), getcap(3), termcap(5)

BSD                                           October 15, 2009                                           BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.