*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> cap_mkdb (1)              
Title
Content
Arch
Section
 

CAP_MKDB(1)

Contents


NAME    [Toc]    [Back]

     cap_mkdb -- create capability database

SYNOPSIS    [Toc]    [Back]

     cap_mkdb [-v] [-f outfile] file [file ...]

DESCRIPTION    [Toc]    [Back]

     The cap_mkdb utility builds a hashed database out of the getcap(3) logical
 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:

     -f outfile
	     Specify a different database basename.

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

FORMAT    [Toc]    [Back]

     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 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 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.

DIAGNOSTICS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

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


FreeBSD 5.2.1			 June 6, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
printcap OpenBSD printer capability database
capability IRIX user capability database
termcap Linux terminal capability database
termcap OpenBSD terminal capability database
termcap Tru64 Terminal capability database
auth.conf FreeBSD authentication capability database
cgetnum OpenBSD capability database access routines
cgetstr FreeBSD capability database access routines
cgetnext OpenBSD capability database access routines
cgetustr OpenBSD capability database access routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service