aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat/dbmdelete.c2
-rw-r--r--compat/dbminit.c2
-rw-r--r--compat/dbmopen.c4
-rw-r--r--compat/delete.c2
-rw-r--r--compat/seq.c2
-rw-r--r--doc/gdbm.texi2
-rw-r--r--src/falloc.c2
-rw-r--r--src/findkey.c2
-rw-r--r--src/gdbm.h.in2
-rw-r--r--src/gdbmdefs.h4
-rw-r--r--src/gdbmerrno.c2
-rw-r--r--src/gdbmexists.c2
-rw-r--r--src/gdbmimp.c2
-rw-r--r--src/gdbmopen.c2
-rw-r--r--src/gdbmshell.c2
-rw-r--r--src/mmap.c4
-rw-r--r--src/systems.h2
17 files changed, 20 insertions, 20 deletions
diff --git a/compat/dbmdelete.c b/compat/dbmdelete.c
index 631d9f6..ddebb7b 100644
--- a/compat/dbmdelete.c
+++ b/compat/dbmdelete.c
@@ -1,5 +1,5 @@
/* dbmdelete.c - Remove the key and its associated data from the database.
- This is the NDBM unix interface name. */
+ This is the NDBM UNIX interface name. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1990-2021 Free Software Foundation, Inc.
diff --git a/compat/dbminit.c b/compat/dbminit.c
index d8af045..81bad63 100644
--- a/compat/dbminit.c
+++ b/compat/dbminit.c
@@ -25,7 +25,7 @@ DBM *_gdbm_file;
/* Initialize dbm system. FILE is a pointer to the file name. In
standard dbm, the database is found in files called FILE.pag and
- FILE.dir. To make gdbm compatable with dbm using the dbminit call,
+ FILE.dir. To make gdbm compatible with dbm using the dbminit call,
the same file names are used. Specifically, dbminit will use the file
name FILE.pag in its call to gdbm open. If the file (FILE.pag) has a
size of zero bytes, a file initialization procedure is performed,
diff --git a/compat/dbmopen.c b/compat/dbmopen.c
index 1c2e4b0..c89ce0f 100644
--- a/compat/dbmopen.c
+++ b/compat/dbmopen.c
@@ -178,7 +178,7 @@ ndbm_open_dir_file (const char *base, int pagfd, int mode)
/* Initialize ndbm system. FILE is a pointer to the file name. In
standard dbm, the database is found in files called FILE.pag and
- FILE.dir. To make gdbm compatable with dbm using the dbminit call,
+ FILE.dir. To make gdbm compatible with dbm using the dbminit call,
the same file names are used. Specifically, dbminit will use the file
name FILE.pag in its call to gdbm open. If the file (FILE.pag) has a
size of zero bytes, a file initialization procedure is performed,
@@ -194,7 +194,7 @@ ndbm_open_dir_file (const char *base, int pagfd, int mode)
FLAGS and MODE are the same as for the open(2) call. This call will
look at the FLAGS and decide what call to make to gdbm_open. For
FLAGS == O_RDONLY, it will be a GDBM_READER, if FLAGS == O_RDWR|O_CREAT,
- it will be a GDBM_WRCREAT (creater and writer) and if the FLAGS == O_RDWR,
+ it will be a GDBM_WRCREAT (creator and writer) and if the FLAGS == O_RDWR,
it will be a GDBM_WRITER and if FLAGS contain O_TRUNC then it will be
a GDBM_NEWDB. The O_CLOEXEC bit raises GDBM_CLOEXEC flag.
All other values of FLAGS are ignored. */
diff --git a/compat/delete.c b/compat/delete.c
index 152c094..5b39f5f 100644
--- a/compat/delete.c
+++ b/compat/delete.c
@@ -1,5 +1,5 @@
/* delete.c - Remove the key and its associated data from the database.
- This is the original unix interface name. */
+ This is the original UNIX interface name. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1990-2021 Free Software Foundation, Inc.
diff --git a/compat/seq.c b/compat/seq.c
index 534d662..2f48f10 100644
--- a/compat/seq.c
+++ b/compat/seq.c
@@ -1,5 +1,5 @@
/* seq.c - This is the sequential visit of the database. This defines two
- user-visable routines that are used together. This is the DBM interface. */
+ user-visible routines that are used together. This is the DBM interface. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1990-2021 Free Software Foundation, Inc.
diff --git a/doc/gdbm.texi b/doc/gdbm.texi
index 50d06ba..2c5c049 100644
--- a/doc/gdbm.texi
+++ b/doc/gdbm.texi
@@ -2127,7 +2127,7 @@ stored.
@defvr {Option} GDBM_SETCACHEAUTO
Controls whether the cache size will be adjusted automatically as
needed. The @var{value} should point to an integer: @code{TRUE} to
-enable automatical cache adjustment and @code{FALSE} to disable it.
+enable automatic cache adjustment and @code{FALSE} to disable it.
The following two calls are equivalent:
diff --git a/src/falloc.c b/src/falloc.c
index 890ed7b..f621658 100644
--- a/src/falloc.c
+++ b/src/falloc.c
@@ -108,7 +108,7 @@ _gdbm_alloc (GDBM_FILE dbf, int num_bytes)
}
/* Free space of size NUM_BYTES in the file DBF at file address FILE_ADR. Make
- it avaliable for reuse through _gdbm_alloc. This routine changes the
+ it available for reuse through _gdbm_alloc. This routine changes the
avail structure. */
int
diff --git a/src/findkey.c b/src/findkey.c
index ac777ed..2b713bc 100644
--- a/src/findkey.c
+++ b/src/findkey.c
@@ -82,7 +82,7 @@ _gdbm_read_entry (GDBM_FILE dbf, int elem_loc)
dsize = key_size + data_size;
data_ca = &dbf->cache_entry->ca_data;
- /* Make sure data_ca has sufficient space to accomodate both
+ /* Make sure data_ca has sufficient space to accommodate both
key and content. */
if (dsize <= data_ca->dsize)
{
diff --git a/src/gdbm.h.in b/src/gdbm.h.in
index e371e9b..280c161 100644
--- a/src/gdbm.h.in
+++ b/src/gdbm.h.in
@@ -64,7 +64,7 @@ extern "C" {
# define GDBM_INSERT 0 /* Never replace old data with new. */
# define GDBM_REPLACE 1 /* Always replace old data with new. */
-/* Parameters to gdbm_setopt, specifing the type of operation to perform. */
+/* Parameters to gdbm_setopt, specifying the type of operation to perform. */
# define GDBM_SETCACHESIZE 1 /* Set the cache size. */
# define GDBM_FASTMODE 2 /* Toggle fast mode. OBSOLETE. */
# define GDBM_SETSYNCMODE 3 /* Turn on or off sync operations. */
diff --git a/src/gdbmdefs.h b/src/gdbmdefs.h
index fba9d2d..70ea596 100644
--- a/src/gdbmdefs.h
+++ b/src/gdbmdefs.h
@@ -65,7 +65,7 @@ off_t_sum_ok (off_t a, off_t b)
stack." When the active avail table is empty and the "avail stack" is
not empty, the top of the stack is popped into the active avail table. */
-/* The following structure is the element of the avaliable table. */
+/* The following structure is the element of the available table. */
typedef struct
{
int av_size; /* The size of the available block. */
@@ -266,7 +266,7 @@ struct gdbm_file_info
off_t *dir;
/* The bucket cache. */
- int cache_bits; /* Address bits used for compting bucket hash */
+ int cache_bits; /* Address bits used for computing bucket hash */
size_t cache_size; /* Cache capacity: 2^cache_bits */
size_t cache_num; /* Actual number of elements in cache */
/* Cache hash table. */
diff --git a/src/gdbmerrno.c b/src/gdbmerrno.c
index cfc3c1f..3b812eb 100644
--- a/src/gdbmerrno.c
+++ b/src/gdbmerrno.c
@@ -1,4 +1,4 @@
-/* gdbmerrno.c - convert gdbm errors into english. */
+/* gdbmerrno.c - convert gdbm errors into English. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1993-2021 Free Software Foundation, Inc.
diff --git a/src/gdbmexists.c b/src/gdbmexists.c
index ea2f966..0062ca4 100644
--- a/src/gdbmexists.c
+++ b/src/gdbmexists.c
@@ -22,7 +22,7 @@
#include "gdbmdefs.h"
/* This is nothing more than a wrapper around _gdbm_findkey(). The
- point? It doesn't alloate any memory. */
+ point? It doesn't allocate any memory. */
int
gdbm_exists (GDBM_FILE dbf, datum key)
diff --git a/src/gdbmimp.c b/src/gdbmimp.c
index 61bb836..ae029e8 100644
--- a/src/gdbmimp.c
+++ b/src/gdbmimp.c
@@ -42,7 +42,7 @@ gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag)
kbuffer = NULL;
dbuffer = NULL;
- /* Read (and discard) four lines begining with ! and ending with \n. */
+ /* Read (and discard) four lines beginning with ! and ending with \n. */
while (1)
{
if ((rret = fgetc (fp)) == -1)
diff --git a/src/gdbmopen.c b/src/gdbmopen.c
index 3994dd4..5e29efb 100644
--- a/src/gdbmopen.c
+++ b/src/gdbmopen.c
@@ -704,7 +704,7 @@ gdbm_fd_open (int fd, const char *file_name, int block_size,
not exist, create a new one. If FLAGS is GDBM_NEWDB, the user want a
new database created, regardless of whether one existed, and wants read
and write access to the new database. Any error detected will cause a
- return value of null and an approprate value will be in gdbm_errno. If
+ return value of null and an appropriate value will be in gdbm_errno. If
no errors occur, a pointer to the "gdbm file descriptor" will be
returned. */
diff --git a/src/gdbmshell.c b/src/gdbmshell.c
index 6e4d8ff..06a0d0c 100644
--- a/src/gdbmshell.c
+++ b/src/gdbmshell.c
@@ -36,7 +36,7 @@ static GDBM_FILE gdbm_file = NULL; /* Database to operate upon */
static datum key_data; /* Current key */
static datum return_data; /* Current data */
-/* Return values for hanlders: */
+/* Return values for handlers: */
enum
{
GDBMSHELL_OK, /* Success */
diff --git a/src/mmap.c b/src/mmap.c
index 778cf46..0e92473 100644
--- a/src/mmap.c
+++ b/src/mmap.c
@@ -42,7 +42,7 @@
/* Translate current offset in the mapped region into the absolute position */
# define _GDBM_MMAPPED_POS(dbf) ((dbf)->mapped_off + (dbf)->mapped_pos)
-/* Return true if the absolute offset OFF lies within the currentlty mmapped
+/* Return true if the absolute offset OFF lies within the currently mmapped
region */
# define _GDBM_IN_MAPPED_REGION_P(dbf, off) \
((off) >= (dbf)->mapped_off \
@@ -127,7 +127,7 @@ _gdbm_internal_remap (GDBM_FILE dbf, size_t size)
If the file is opened with write permissions, FLAG controls how
it is expanded. The value _REMAP_DEFAULT truncates SIZE to the
actual file size. The value _REMAP_EXTEND extends the file, if
- necessary, to accomodate max(SIZE,dbf->header->next_block) bytes.
+ necessary, to accommodate max(SIZE,dbf->header->next_block) bytes.
Finally, the value _REMAP_END instructs the function to use
max(SIZE, file_size) as the upper bound of the mapped region.
diff --git a/src/systems.h b/src/systems.h
index d96f21f..2413af5 100644
--- a/src/systems.h
+++ b/src/systems.h
@@ -1,4 +1,4 @@
-/* systems.h - Most of the system dependant code and defines are here. */
+/* systems.h - Most of the system dependent code and defines are here. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1990-2021 Free Software Foundation, Inc.

Return to:

Send suggestions and report system problems to the System administrator.