xref: /original-bsd/usr.bin/cap_mkdb/cap_mkdb.1 (revision ea3a8ee8)
1.\" Copyright (c) 1992 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)cap_mkdb.1	5.3 (Berkeley) 01/23/93
7.\"
8.Dd ""
9.Dt CAP_MKDB 1
10.Os
11.Sh NAME
12.Nm cap_mkdb
13.Nd create capability database
14.Pp
15.Sh SYNOPSIS
16.Nm cap_mkdb
17.Op Fl v
18.Op Fl f Ar outfile
19.Ar file1
20.Op Ar file2 ...
21.Pp
22.Sh DESCRIPTION
23.Nm Cap_mkdb
24builds a hashed database out of the
25.Xr getcap 3
26logical database constructed by the concatenation of the specified
27files .
28The hashed database is stored into a file named by the basename
29of the first file argument and the string
30.Dq .db .
31The
32.Xr getcap 3
33routines can access the database in this form much more quickly
34than they can the original text file(s).
35.Pp
36The options as as follows:
37.Bl -tag -width XXXXXX -indent
38.It Fl f Ar outfile
39Specify a different database basename.
40.It Fl v
41Print out the number of capability records in the database.
42.El
43.Pp
44.Sh RETURN VALUE
45The
46.Nm cap_mkdb
47utility exits 0 on success and >0 if an error occurs.
48.Sh SEE ALSO
49.Xr dbopen 3 ,
50.Xr getcap 3 ,
51.Xr termcap 5
52
53
54
55
56
57