Lines Matching refs:status

90     apr_status_t status;
127 if ((status = apr_file_open(&db->dirf, dirname, flags, perms, p))
131 if ((status = apr_file_open(&db->pagf, pagname, flags, perms, p))
135 if ((status = apr_sdbm_lock(db, (db->flags & SDBM_RDONLY)
149 if ((status = apr_sdbm_unlock(db)) != APR_SUCCESS)
168 return status;
189 apr_status_t status;
194 if ((status = apr_sdbm_lock(db, APR_FLOCK_SHARED)) != APR_SUCCESS)
195 return status;
197 if ((status = getpage(db, exhash(key), 0, 1)) == APR_SUCCESS) {
204 return status;
209 apr_status_t status;
212 if ((status = apr_file_seek(db->pagf, APR_SET, &off)) == APR_SUCCESS)
213 status = apr_file_write_full(db->pagf, buf, PBLKSIZ, NULL);
215 return status;
221 apr_status_t status;
228 if ((status = apr_sdbm_lock(db, APR_FLOCK_EXCLUSIVE)) != APR_SUCCESS)
229 return status;
231 if ((status = getpage(db, exhash(key), 0, 1)) == APR_SUCCESS) {
234 status = APR_EGENERAL;
236 status = write_page(db, db->pagbuf, db->pagbno);
241 return status;
249 apr_status_t status;
262 if ((status = apr_sdbm_lock(db, APR_FLOCK_EXCLUSIVE)) != APR_SUCCESS)
263 return status;
265 if ((status = getpage(db, (hash = exhash(key)), 0, 1)) == APR_SUCCESS) {
274 status = APR_EEXIST;
281 if ((status = makroom(db, hash, need)) != APR_SUCCESS)
289 status = write_page(db, db->pagbuf, db->pagbno);
295 return status;
310 apr_status_t status;
331 if ((status = write_page(db, db->pagbuf, db->pagbno))
333 return status;
339 if ((status = write_page(db, new, newp)) != APR_SUCCESS)
340 return status;
343 if ((status = setdbit(db, db->curbit)) != APR_SUCCESS)
344 return status;
360 if ((status = write_page(db, db->pagbuf, db->pagbno))
362 return status;
387 apr_status_t status;
389 if ((status = apr_file_seek(f, APR_SET, &off)) != APR_SUCCESS ||
390 ((status = apr_file_read_full(f, buf, len, NULL)) != APR_SUCCESS)) {
392 if (status == APR_EOF && create) {
394 status = APR_SUCCESS;
398 return status;
408 apr_status_t status;
410 if ((status = apr_sdbm_lock(db, APR_FLOCK_SHARED)) != APR_SUCCESS)
411 return status;
416 if ((status = getpage(db, 0, 1, 1)) == APR_SUCCESS) {
419 status = getnext(key, db);
424 return status;
430 apr_status_t status;
432 if ((status = apr_sdbm_lock(db, APR_FLOCK_SHARED)) != APR_SUCCESS)
433 return status;
435 status = getnext(key, db);
439 return status;
447 apr_status_t status;
478 if ((status = read_from(db->pagf, db->pagbuf,
481 return status;
519 apr_status_t status;
526 if ((status = read_from(db->dirf, db->dirbuf,
529 return status;
542 if ((status = apr_file_seek(db->dirf, APR_SET, &off)) == APR_SUCCESS)
543 status = apr_file_write_full(db->dirf, db->dirbuf, DBLKSIZ, NULL);
545 return status;
554 apr_status_t status;
569 if ((status = getpage(db, db->blkptr, 1, 0)) != APR_SUCCESS)
570 return status;