version 1.5, 1998/09/06 22:23:16 |
version 1.6, 1998/09/23 04:32:36 |
|
|
.Op Ar file2 ... |
.Op Ar file2 ... |
.Pp |
.Pp |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Cap_mkdb |
.Nm cap_mkdb |
builds a hashed database out of the |
builds a hashed database out of the |
.Xr getcap 3 |
.Xr getcap 3 |
logical database constructed by the concatenation of the specified |
logical database constructed by the concatenation of the specified |
|
|
Each record is stored in the database using two different types of keys. |
Each record is stored in the database using two different types of keys. |
.Pp |
.Pp |
The first type is a key which consists of the first capability of |
The first type is a key which consists of the first capability of |
the record (not including the trailing colon (``:'')) with a data |
the record (not including the trailing colon |
|
.Pq Sq \&: ) |
|
with a data |
field consisting of a special byte followed by the rest of the record. |
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 |
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 |
is okay, and a 1 means that there was a ``tc'' capability in the record |
|
|
.Sh RETURN VALUE |
.Sh RETURN VALUE |
The |
The |
.Nm cap_mkdb |
.Nm cap_mkdb |
utility exits 0 on success and >0 if an error occurs. |
utility exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr dbopen 3 , |
.Xr dbopen 3 , |
.Xr getcap 3 , |
.Xr getcap 3 , |