icon Top 9 categories map      RocketAware >

cap_mkdb(1)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others



CAP_MKDB(1)                OpenBSD Reference Manual                CAP_MKDB(1)

NAME
     cap_mkdb - create capability database



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

DESCRIPTION
     cap_mkdb builds a hashed database out of the getcap(3) or terminfo(5)
     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 options are as follows:

     -f outfile
             Specify a different database basename.

     -i      Expect the capability records to be parsed to be in terminfo(5)
             format.

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

RETURN VALUE
     The cap_mkdb utility exits 0 on success or >0 if an error occurred.

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

OpenBSD 2.6                      June 6, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for cap_mkdb(1)
OpenBSD sources for cap_mkdb(1)


[Overview Topics]

Up to: Persistent data storage, databases - (data files, databases)


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > cap_mkdb.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments