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/mmap.c | |
parent | c6c8162e6d81fdd5994007f4407de4305f4778bf (diff) | |
download | gdbm-cdc6b5fca3860a5f0466fc646fd99372e50af9f4.tar.gz gdbm-cdc6b5fca3860a5f0466fc646fd99372e50af9f4.tar.bz2 |
Fix typos
Diffstat (limited to 'src/mmap.c')
-rw-r--r-- | src/mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |