Lines Matching defs:rv
223 int fd, rv, flg;
267 rv = fstat(fd, &sbuf);
272 rv = ftruncate(fd, sz);
275 if (rv == -1 || sz < HDR_LEN) {
276 if (rv != -1)
292 rv = invalid_db(hdp, sz, page_sz);
294 rv = init_hdr(hdp, page_sz, count);
297 if (rv) {
666 int i, rv;
754 rv = close_db(hdp);
756 if (rv != 0 || DB_ERR(hdp) || rename(tmp, file) != 0) {
758 rv ? "close_db" : "DB or rename", strerror(errno));
1011 int i, rv = 0;
1031 rv += msync(DB_SEG(hdp, i), sz, MS_SYNC);
1039 rv += msync((caddr_t)DB_HDR(hdp), HDR_LEN, MS_SYNC);
1047 return (rv ? -1 : 0);
2048 int rv;
2070 rv = -1;
2075 rv = walk_db(hdp, &linkd);
2077 rv = walk_dev(hdp, &linkd);
2085 return (rv ? -1 : 0);
2536 int i, rv = DI_WALK_CONTINUE;
2587 rv = do_recurse(cur, hdp, rp, retp);
2589 rv = rp->fcn(hdp, rp->data, cur);
2602 if (rv != DI_WALK_CONTINUE)
2608 return (rv);
3079 int rv;
3137 rv = fcntl(fd, F_SETLKW, &lock);
3138 if ((rv != -1) || (errno != EINTR))
3142 if (rv != -1) {
3232 int rv;
3234 if ((rv = readlink(link, buf, blen)) == -1)
3237 if (rv >= blen && buf[blen - 1] != '\0') {
3240 } else if (rv < blen) {
3241 buf[rv] = '\0';
3503 int rv, i = 0;
3518 rv = do_exec(DEVFSADMD_PATH, argv);
3522 return (rv);