diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2021-11-18 14:25:42 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2021-11-18 14:25:42 +0200 |
commit | cdc6b5fca3860a5f0466fc646fd99372e50af9f4 (patch) | |
tree | 88146de4fc0eb03d900a58fb289c6ac93b8edd4d /src | |
parent | c6c8162e6d81fdd5994007f4407de4305f4778bf (diff) | |
download | gdbm-cdc6b5fca3860a5f0466fc646fd99372e50af9f4.tar.gz gdbm-cdc6b5fca3860a5f0466fc646fd99372e50af9f4.tar.bz2 |
Fix typos
Diffstat (limited to 'src')
-rw-r--r-- | src/falloc.c | 2 | ||||
-rw-r--r-- | src/findkey.c | 2 | ||||
-rw-r--r-- | src/gdbm.h.in | 2 | ||||
-rw-r--r-- | src/gdbmdefs.h | 4 | ||||
-rw-r--r-- | src/gdbmerrno.c | 2 | ||||
-rw-r--r-- | src/gdbmexists.c | 2 | ||||
-rw-r--r-- | src/gdbmimp.c | 2 | ||||
-rw-r--r-- | src/gdbmopen.c | 2 | ||||
-rw-r--r-- | src/gdbmshell.c | 2 | ||||
-rw-r--r-- | src/mmap.c | 4 | ||||
-rw-r--r-- | src/systems.h | 2 |
11 files changed, 13 insertions, 13 deletions
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 */ @@ -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. |