diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gdbm.texinfo | 29 | ||||
-rw-r--r-- | doc/gdbm_load.1 | 18 |
2 files changed, 36 insertions, 11 deletions
diff --git a/doc/gdbm.texinfo b/doc/gdbm.texinfo index 5c962d5..201f01c 100644 --- a/doc/gdbm.texinfo +++ b/doc/gdbm.texinfo | |||
@@ -1895,15 +1895,15 @@ be set in a startup script file (@pxref{startup files}). | |||
1895 | @anchor{open parameters} | 1895 | @anchor{open parameters} |
1896 | The following variables control how the database is opened: | 1896 | The following variables control how the database is opened: |
1897 | 1897 | ||
1898 | @deftypevr {gdbmtool variable} numeric blocksize | ||
1899 | Sets the block size. @xref{Open, block_size}. Unset by default. | ||
1900 | @end deftypevr | ||
1901 | |||
1898 | @deftypevr {gdbmtool variable} numeric cachesize | 1902 | @deftypevr {gdbmtool variable} numeric cachesize |
1899 | Sets the cache size. @xref{Options, GDBM_SETCACHESIZE}. | 1903 | Sets the cache size. @xref{Options, GDBM_SETCACHESIZE}. |
1900 | By default this variable is not set. | 1904 | By default this variable is not set. |
1901 | @end deftypevr | 1905 | @end deftypevr |
1902 | 1906 | ||
1903 | @deftypevr {gdbmtool variable} numeric blocksize | ||
1904 | Sets the block size. @xref{Open, block_size}. Unset by default. | ||
1905 | @end deftypevr | ||
1906 | |||
1907 | @anchor{openvar} | 1907 | @anchor{openvar} |
1908 | @deftypevr {gdbmtool variable} string open | 1908 | @deftypevr {gdbmtool variable} string open |
1909 | Open mode. The following values are allowed: | 1909 | Open mode. The following values are allowed: |
@@ -2370,7 +2370,7 @@ By default the utility creates dumps in ASCII format (@pxref{Flat | |||
2370 | files,ASCII}). Another format can be requested using the | 2370 | files,ASCII}). Another format can be requested using the |
2371 | @option{--format} (@option{-H}) option. | 2371 | @option{--format} (@option{-H}) option. |
2372 | 2372 | ||
2373 | The @command{gdbm_load} utility understands the following command line | 2373 | The @command{gdbm_dump} utility understands the following command line |
2374 | options: | 2374 | options: |
2375 | 2375 | ||
2376 | @table @option | 2376 | @table @option |
@@ -2405,18 +2405,31 @@ The format of the input file is detected automatically. | |||
2405 | By default the utility attempts to restore the database under its | 2405 | By default the utility attempts to restore the database under its |
2406 | original name, as stored in the input file. It will fail to do so if | 2406 | original name, as stored in the input file. It will fail to do so if |
2407 | the input is in binary format. In that case, the name of the database | 2407 | the input is in binary format. In that case, the name of the database |
2408 | to create can be given as the second argument. | 2408 | must be given as the second argument. |
2409 | 2409 | ||
2410 | In general, if two arguments are given, the second one is treated as | 2410 | In general, if two arguments are given the second one is treated as |
2411 | the name of the database to create, overriding the file name specified | 2411 | the name of the database to create, overriding the file name specified |
2412 | in the flat file. | 2412 | in the flat file. |
2413 | 2413 | ||
2414 | The utility understands the following command line arguments: | 2414 | The utility understands the following command line arguments: |
2415 | 2415 | ||
2416 | @table @option | 2416 | @table @option |
2417 | |||
2418 | @item -b @var{num} | ||
2419 | @itemx --block-size=@var{num} | ||
2420 | Sets block size. @xref{Open, block_size}. | ||
2421 | |||
2422 | @item -c @var{num} | ||
2423 | @itemx --cache-size=@var{num} | ||
2424 | Sets cache size. @xref{Options, GDBM_SETCACHESIZE}. | ||
2425 | |||
2426 | @item -M | ||
2427 | @itemx --mmap | ||
2428 | Use memory mapping. | ||
2429 | |||
2417 | @item -m @var{mode} | 2430 | @item -m @var{mode} |
2418 | @item --mode=@var{mode} | 2431 | @item --mode=@var{mode} |
2419 | Set file mode. The argument is the desired file mode in octal. | 2432 | Sets the file mode. The argument is the desired file mode in octal. |
2420 | 2433 | ||
2421 | @item -n | 2434 | @item -n |
2422 | @itemx --no-meta | 2435 | @itemx --no-meta |
diff --git a/doc/gdbm_load.1 b/doc/gdbm_load.1 index 00aaac0..8b0e77c 100644 --- a/doc/gdbm_load.1 +++ b/doc/gdbm_load.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" This file is part of GDBM. | 1 | .\" This file is part of GDBM. -*- nroff -*- |
2 | .\" Copyright (C) 2011, 2013 Free Software Foundation, Inc. | 2 | .\" Copyright (C) 2011, 2013 Free Software Foundation, Inc. |
3 | .\" | 3 | .\" |
4 | .\" GDBM is free software; you can redistribute it and/or modify | 4 | .\" GDBM is free software; you can redistribute it and/or modify |
@@ -13,12 +13,15 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ | 15 | .\" along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ |
16 | .TH GDBM_LOAD 1 "May 8, 2013" "GDBM" "GDBM User Reference" | 16 | .TH GDBM_LOAD 1 "December 25, 2013" "GDBM" "GDBM User Reference" |
17 | .SH NAME | 17 | .SH NAME |
18 | gdbm_load \- re-create a GDBM database from a dump file. | 18 | gdbm_load \- re-create a GDBM database from a dump file. |
19 | .SH SYNOPSIS | 19 | .SH SYNOPSIS |
20 | \fBgdbm_load\fR [\fB\-nr\fR] [\fB\-m\fR \fIMODE\fR]\ | 20 | \fBgdbm_load\fR [\fB\-Mnr\fR] [\fB\-b\fR \fINUM\fR] [\fB\-c\fR \fINUM]\ |
21 | [\fB\-m\fR \fIMODE\fR]\ | ||
21 | [\fB\-u\fR \fINAME\fR|\fIUID\fR[:\fINAME\fR|\fIGID\fR]] | 22 | [\fB\-u\fR \fINAME\fR|\fIUID\fR[:\fINAME\fR|\fIGID\fR]] |
23 | [\fB\-\-block\-size\fR=\fINUM\fR] [\fB\-\-cache\-size\fR=\fINUM\fR]\ | ||
24 | [\fB\-\-mmap\fR=\fINUM\fR] | ||
22 | [\fB\-\-mode\fR=\fIMODE\fR]\ | 25 | [\fB\-\-mode\fR=\fIMODE\fR]\ |
23 | [\fB\-\-no\-meta\fR] [\fB\-\-replace\fR] | 26 | [\fB\-\-no\-meta\fR] [\fB\-\-replace\fR] |
24 | [\fB\-\-user\fR=\fINAME\fR|\fIUID\fR[:\fINAME\fR|\fIGID\fR]]\ | 27 | [\fB\-\-user\fR=\fINAME\fR|\fIUID\fR[:\fINAME\fR|\fIGID\fR]]\ |
@@ -42,6 +45,15 @@ the created database are restored from the information in the dump. | |||
42 | This can be overridden using the command line options (see below). | 45 | This can be overridden using the command line options (see below). |
43 | .SH OPTIONS | 46 | .SH OPTIONS |
44 | .TP | 47 | .TP |
48 | \fB\-b\fR, \fB\-\-block\-size\fR=\fINUM\fR | ||
49 | Sets block size. | ||
50 | .TP | ||
51 | \fB\-c\fR, \fB\-\-cache\-size\fR=\fINUM\fR | ||
52 | Sets cache size. | ||
53 | .TP | ||
54 | \fB\-M\fR, \fB\-\-mmap\fR | ||
55 | Use memory mapping. | ||
56 | .TP | ||
45 | \fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR | 57 | \fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR |
46 | Set database file mode (octal number). | 58 | Set database file mode (octal number). |
47 | .TP | 59 | .TP |