aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/testgdbm.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d237d70..80ddee1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Sat Nov 29 21:19:32 PST 2008 Jason Downs (downsj@downsj.com)
* src/systems.h: Add macros for Solaris-style 64bit fcntl locks.
* src/testgdbm.c: Add support for opening files without locking.
+ Add support for opening files without mmap.
Add sys/termios.h include and add check for TIOCWINSZ.
* export/export.c: Add support for opening files without locking.
diff --git a/src/testgdbm.c b/src/testgdbm.c
index 31a0ab7..fe3cca7 100644
--- a/src/testgdbm.c
+++ b/src/testgdbm.c
@@ -159,6 +159,7 @@ usage ()
printf (" -g FILE operate on FILE instead of `junk.gdbm'\n");
printf (" -h print this help summary\n");
printf (" -l disable file locking\n");
+ printf (" -m disable file mmap\n");
printf (" -n create database\n");
printf (" -r open database in read-only mode\n");
printf (" -s synchronize to the disk after each write\n");
@@ -792,7 +793,7 @@ main (int argc, char *argv[])
/* Argument checking. */
opterr = 0;
- while ((opt = getopt (argc, argv, "lsrnc:b:g:hv")) != -1)
+ while ((opt = getopt (argc, argv, "lmsrnc:b:g:hv")) != -1)
switch (opt)
{
case 'h':
@@ -803,6 +804,10 @@ main (int argc, char *argv[])
flags = flags | GDBM_NOLOCK;
break;
+ case 'm':
+ flags = flags | GDBM_NOMMAP;
+ break;
+
case 's':
if (reader)
error (2, "-s is incompatible with -r");

Return to:

Send suggestions and report system problems to the System administrator.