aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmapp.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-11-15 15:23:56 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-11-15 15:23:56 +0000
commit5e3403fbd39b2cafdaa662768a61d8fb0f45e244 (patch)
tree2d9f7bbe099046ad5c369eb225bbde3ab94e0bdf /src/gdbmapp.h
parentaf116bb7d7d5a53310e48d196ebe577b9a63f799 (diff)
downloadgdbm-5e3403fbd39b2cafdaa662768a61d8fb0f45e244.tar.gz
gdbm-5e3403fbd39b2cafdaa662768a61d8fb0f45e244.tar.bz2
Update the docs. Improve dump/load utilities.
* doc/gdbm.texinfo: Reorganize the material. Document gdbm_load and gdbm_dump utilities. * src/gdbm.h.in (GDBM_META_MASK_MODE) (GDBM_META_MASK_OWNER): New constant. (gdbm_load,gdbm_load_from_file): Take an additional argument: meta_flags, which masks out restoring certain meta-data. * src/gdbm_dump.c: Remove -b option. The -H option takes symbolic format names. Use the standard exit codes. * src/gdbm_load.c: New options: --mode, --user and --no-meta. Use the standard exit codes. * src/gdbmapp.h (EXIT_OK, EXIT_FATAL, EXIT_MILD) (EXIT_USAGE): New constants. * src/gdbmload.c (gdbm_load,gdbm_load_from_file): Take an additional argument, which masks out restoring certain meta-data.
Diffstat (limited to 'src/gdbmapp.h')
-rw-r--r--src/gdbmapp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gdbmapp.h b/src/gdbmapp.h
index e7917f9..0de0005 100644
--- a/src/gdbmapp.h
+++ b/src/gdbmapp.h
@@ -50,3 +50,10 @@ void parseopt_print_help (void);
extern char *parseopt_program_name;
extern char *parseopt_program_doc;
extern char *parseopt_program_args;
+
+/* Application exit codes */
+#define EXIT_OK 0
+#define EXIT_FATAL 1
+#define EXIT_MILD 2
+#define EXIT_USAGE 3
+

Return to:

Send suggestions and report system problems to the System administrator.