summaryrefslogtreecommitdiffabout
path: root/doc
authorSergey Poznyakoff <gray@gnu.org.ua>2013-12-25 09:31:59 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-12-25 09:31:59 (GMT)
commit46e182da4c8a338db22199e003fc2149ee3b1b81 (patch) (unidiff)
treea7b382936a61ced77d284a6092d450c73e124e73 /doc
parent05fa76dfce5311161abbc64c12acbaf56f298e97 (diff)
downloadgdbm-46e182da4c8a338db22199e003fc2149ee3b1b81.tar.gz
gdbm-46e182da4c8a338db22199e003fc2149ee3b1b81.tar.bz2
Minor changes.
* src/gdbm_load.c: New options: --mmap, --cache-size and --block-size. * doc/gdbm.texinfo: Document new gdbm_load options. * doc/gdbm_load.1: Likewise. * src/gdbmdelete.c: Stylistic changes. * src/gdbmstore.c: Likewise.
Diffstat (limited to 'doc') (more/less context) (ignore whitespace changes)
-rw-r--r--doc/gdbm.texinfo29
-rw-r--r--doc/gdbm_load.118
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}
1896The following variables control how the database is opened: 1896The following variables control how the database is opened:
1897 1897
1898@deftypevr {gdbmtool variable} numeric blocksize
1899Sets 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
1899Sets the cache size. @xref{Options, GDBM_SETCACHESIZE}. 1903Sets the cache size. @xref{Options, GDBM_SETCACHESIZE}.
1900By default this variable is not set. 1904By default this variable is not set.
1901@end deftypevr 1905@end deftypevr
1902 1906
1903@deftypevr {gdbmtool variable} numeric blocksize
1904Sets 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
1909Open mode. The following values are allowed: 1909Open mode. The following values are allowed:
@@ -2370,7 +2370,7 @@ By default the utility creates dumps in ASCII format (@pxref{Flat
2370files,ASCII}). Another format can be requested using the 2370files,ASCII}). Another format can be requested using the
2371@option{--format} (@option{-H}) option. 2371@option{--format} (@option{-H}) option.
2372 2372
2373The @command{gdbm_load} utility understands the following command line 2373The @command{gdbm_dump} utility understands the following command line
2374options: 2374options:
2375 2375
2376@table @option 2376@table @option
@@ -2405,18 +2405,31 @@ The format of the input file is detected automatically.
2405By default the utility attempts to restore the database under its 2405By default the utility attempts to restore the database under its
2406original name, as stored in the input file. It will fail to do so if 2406original name, as stored in the input file. It will fail to do so if
2407the input is in binary format. In that case, the name of the database 2407the input is in binary format. In that case, the name of the database
2408to create can be given as the second argument. 2408must be given as the second argument.
2409 2409
2410In general, if two arguments are given, the second one is treated as 2410In general, if two arguments are given the second one is treated as
2411the name of the database to create, overriding the file name specified 2411the name of the database to create, overriding the file name specified
2412in the flat file. 2412in the flat file.
2413 2413
2414The utility understands the following command line arguments: 2414The 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}
2420Sets block size. @xref{Open, block_size}.
2421
2422@item -c @var{num}
2423@itemx --cache-size=@var{num}
2424Sets cache size. @xref{Options, GDBM_SETCACHESIZE}.
2425
2426@item -M
2427@itemx --mmap
2428Use memory mapping.
2429
2417@item -m @var{mode} 2430@item -m @var{mode}
2418@item --mode=@var{mode} 2431@item --mode=@var{mode}
2419Set file mode. The argument is the desired file mode in octal. 2432Sets 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
18gdbm_load \- re-create a GDBM database from a dump file. 18gdbm_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.
42This can be overridden using the command line options (see below). 45This 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
49Sets block size.
50.TP
51\fB\-c\fR, \fB\-\-cache\-size\fR=\fINUM\fR
52Sets cache size.
53.TP
54\fB\-M\fR, \fB\-\-mmap\fR
55Use memory mapping.
56.TP
45\fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR 57\fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR
46Set database file mode (octal number). 58Set database file mode (octal number).
47.TP 59.TP

Return to:

Send suggestions and report system problems to the System administrator.