aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmstore.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-30 12:45:21 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-30 12:45:21 +0300
commitb8d5da4c426b21ca0e56fc1cd6f75b49c0668e95 (patch)
tree26cbb1b04cd9febcdd37237c9576ea1c5eff3926 /src/gdbmstore.c
parenta14a6881538229cd938282bd56c7f0d12a089be6 (diff)
downloadgdbm-b8d5da4c426b21ca0e56fc1cd6f75b49c0668e95.tar.gz
gdbm-b8d5da4c426b21ca0e56fc1cd6f75b49c0668e95.tar.bz2
Namespace cleanup
Rename: __read to gdbm_file_read __write to gdbm_file_write __lseek to gdbm_file_seek __fsync to gdbm_file_sync
Diffstat (limited to 'src/gdbmstore.c')
-rw-r--r--src/gdbmstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 6b498b2..b8a1e66 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -157,13 +157,13 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
157 /* Update current bucket data pointer and sizes. */ 157 /* Update current bucket data pointer and sizes. */
158 dbf->bucket->h_table[elem_loc].data_pointer = file_adr; 158 dbf->bucket->h_table[elem_loc].data_pointer = file_adr;
159 dbf->bucket->h_table[elem_loc].key_size = key.dsize; 159 dbf->bucket->h_table[elem_loc].key_size = key.dsize;
160 dbf->bucket->h_table[elem_loc].data_size = content.dsize; 160 dbf->bucket->h_table[elem_loc].data_size = content.dsize;
161 161
162 /* Write the data to the file. */ 162 /* Write the data to the file. */
163 file_pos = __lseek (dbf, file_adr, SEEK_SET); 163 file_pos = gdbm_file_seek (dbf, file_adr, SEEK_SET);
164 if (file_pos != file_adr) 164 if (file_pos != file_adr)
165 { 165 {
166 GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR, 166 GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
167 "%s: lseek: %s", dbf->name, strerror (errno)); 167 "%s: lseek: %s", dbf->name, strerror (errno));
168 GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE); 168 GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE);
169 _gdbm_fatal (dbf, _("lseek error")); 169 _gdbm_fatal (dbf, _("lseek error"));

Return to:

Send suggestions and report system problems to the System administrator.