aboutsummaryrefslogtreecommitdiff
path: root/src/bucket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bucket.c')
-rw-r--r--src/bucket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bucket.c b/src/bucket.c
index 2289594..e17019c 100644
--- a/src/bucket.c
+++ b/src/bucket.c
@@ -109,13 +109,13 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index)
109 } 109 }
110 } 110 }
111 111
112 /* It is not in the cache, read it from the disk. */ 112 /* It is not in the cache, read it from the disk. */
113 113
114 /* Position the file pointer */ 114 /* Position the file pointer */
115 file_pos = __lseek (dbf, bucket_adr, SEEK_SET); 115 file_pos = gdbm_file_seek (dbf, bucket_adr, SEEK_SET);
116 if (file_pos != bucket_adr) 116 if (file_pos != bucket_adr)
117 { 117 {
118 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE); 118 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE);
119 _gdbm_fatal (dbf, _("lseek error")); 119 _gdbm_fatal (dbf, _("lseek error"));
120 return -1; 120 return -1;
121 } 121 }
@@ -184,13 +184,13 @@ _gdbm_read_bucket_at (GDBM_FILE dbf, off_t off, hash_bucket *bucket,
184 memcpy (bucket, dbf->bucket_cache[i].ca_bucket, size); 184 memcpy (bucket, dbf->bucket_cache[i].ca_bucket, size);
185 return 0; 185 return 0;
186 } 186 }
187 } 187 }
188 188
189 /* Read the bucket. */ 189 /* Read the bucket. */
190 file_pos = __lseek (dbf, off, SEEK_SET); 190 file_pos = gdbm_file_seek (dbf, off, SEEK_SET);
191 if (file_pos != off) 191 if (file_pos != off)
192 { 192 {
193 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE); 193 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE);
194 return -1; 194 return -1;
195 } 195 }
196 if (_gdbm_full_read (dbf, bucket, size)) 196 if (_gdbm_full_read (dbf, bucket, size))
@@ -429,13 +429,13 @@ _gdbm_split_bucket (GDBM_FILE dbf, int next_insert)
429int 429int
430_gdbm_write_bucket (GDBM_FILE dbf, cache_elem *ca_entry) 430_gdbm_write_bucket (GDBM_FILE dbf, cache_elem *ca_entry)
431{ 431{
432 int rc; 432 int rc;
433 off_t file_pos; /* The return value for lseek. */ 433 off_t file_pos; /* The return value for lseek. */
434 434
435 file_pos = __lseek (dbf, ca_entry->ca_adr, SEEK_SET); 435 file_pos = gdbm_file_seek (dbf, ca_entry->ca_adr, SEEK_SET);
436 if (file_pos != ca_entry->ca_adr) 436 if (file_pos != ca_entry->ca_adr)
437 { 437 {
438 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE); 438 GDBM_SET_ERRNO (dbf, GDBM_FILE_SEEK_ERROR, TRUE);
439 _gdbm_fatal (dbf, _("lseek error")); 439 _gdbm_fatal (dbf, _("lseek error"));
440 return -1; 440 return -1;
441 } 441 }

Return to:

Send suggestions and report system problems to the System administrator.