Lines Matching refs:ret
42 int ar_cnt, nalloc, next, maxpin, ret, wrote;
66 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
67 return (ret);
82 ret = 0;
84 ret = DB_INCOMPLETE;
171 ret = mp->lsn_cnt ? DB_INCOMPLETE : 0;
198 ret = __memp_bhwrite(dbmp, mfp, bharray[next], NULL, &wrote);
204 if (ret != 0 || !wrote) {
210 if (ret == 0) {
214 ret = EPERM;
222 ret = mp->lsn_cnt != 0 ||
243 return (ret);
289 int ret;
305 ret = dbmfp->fd == -1 ? __memp_fsync(dbmfp) : 0;
307 return ((*fdp = dbmfp->fd) == -1 ? ENOENT : ret);
322 int ar_cnt, incomplete, nalloc, next, ret, wrote;
324 ret = 0;
341 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
342 return (ret);
400 ret = __memp_pgwrite(dbmfp, bharray[next], NULL, &wrote);
406 if (ret != 0) {
432 if (ret == 0)
434 return (ret);
451 int ret, wrote;
498 if ((ret = __memp_bhwrite(dbmp, mfp, bhp, NULL, &wrote)) != 0)
509 ret = EPERM;
520 ret = 0;
523 return (ret);