Lines Matching refs:rv

71 	int rv;  in bi_getn()  local
73 if (!(rv = getn(as, ai))) in bi_getn()
75 return (rv); in bi_getn()
502 int rv = 0, optc, fcflags; in c_whence() local
537 while ((vflag || rv == 0) && (id = *wp++) != NULL) { in c_whence()
623 rv = 1; in c_whence()
630 if (vflag || !rv) in c_whence()
633 return (rv); in c_whence()
838 int rv = 0; in c_typeset() local
849 rv = 1; in c_typeset()
866 return (rv); in c_typeset()
1023 int rv = 0, prefix = 0; in c_alias() local
1132 rv = 1; in c_alias()
1162 return (rv); in c_alias()
1170 int optc, rv = 0; in c_unalias() local
1202 rv = 1; in c_unalias()
1224 return (rv); in c_unalias()
1230 int rv = 1; in c_let() local
1240 rv = 2; in c_let()
1243 rv = val == 0; in c_let()
1244 return (rv); in c_let()
1250 int optc, flag = 0, nflag = 0, rv = 0; in c_jobs() local
1273 rv = 1; in c_jobs()
1277 rv = 1; in c_jobs()
1279 return (rv); in c_jobs()
1287 int rv = 0; in c_fgbg() local
1298 rv = j_resume(*wp, bg); in c_fgbg()
1300 rv = j_resume("%%", bg); in c_fgbg()
1301 return (bg ? 0 : rv); in c_fgbg()
1325 int i, n, rv, sig; in c_kill() local
1407 rv = 0; in c_kill()
1412 rv = 1; in c_kill()
1416 rv = 1; in c_kill()
1420 rv = 1; in c_kill()
1424 return (rv); in c_kill()
1439 int argc, optc, rv; in c_getopts() local
1515 rv = 0; in c_getopts()
1520 rv = 2; in c_getopts()
1524 return (optc < 0 ? 1 : rv); in c_getopts()
1531 int optc, rv = 0; in c_bind() local
1562 rv = x_bind(NULL, NULL, in c_bind()
1580 rv = 1; in c_bind()
1584 return (rv); in c_bind()
1796 int rv = 0, sig; in c_wait() local
1804 rv = sig; in c_wait()
1807 rv = waitfor(*wp, &sig); in c_wait()
1808 if (rv < 0) in c_wait()
1810 rv = sig ? sig : 127; in c_wait()
1812 return (rv); in c_wait()
1820 int c, fd = 0, rv = 0; in c_read() local
1949 rv = 1; in c_read()
1958 rv = 1; in c_read()
1962 rv = 2; in c_read()
1977 rv = 2; in c_read()
1988 rv = 1; in c_read()
1998 rv = 1; in c_read()
2005 rv = 1; in c_read()
2016 rv = 1; in c_read()
2060 if (rv == 1) { in c_read()
2065 rv = 0; in c_read()
2080 rv = 2; in c_read()
2217 return (rv); in c_read()
2226 int rv; in c_eval() local
2269 rv = shell(s, false); in c_eval()
2275 rv = 0; in c_eval()
2276 return (rv); in c_eval()
2474 int optc, rv = 0; in c_unset() local
2511 rv = 1; in c_unset()
2517 return (rv); in c_unset()
2562 int rv = 0, tf = 0; in timex() local
2580 rv = execute(t->left, f | XTIME, xerrok); in timex()
2624 return (rv); in timex()
2691 int argc, optc, rv = 0; in c_mknod() local
2760 rv = 1; in c_mknod()
2765 return (rv); in c_mknod()
2801 int argc, rv, invert = 0; in c_test() local
2846 rv = test_eval(&te, op, *te.pos.wp++, NULL, true); in c_test()
2848 return ((invert & 1) ? rv : !rv); in c_test()
2859 rv = test_eval(&te, op, lhs, *te.pos.wp++, true); in c_test()
3209 int rv; in test_parse() local
3211 rv = test_oexpr(te, 1); in test_parse()
3216 return ((te->flags & TEF_ERROR) ? T_ERR_EXIT : !rv); in test_parse()
3222 int rv; in test_oexpr() local
3224 if ((rv = test_aexpr(te, do_eval))) in test_oexpr()
3227 return (test_oexpr(te, do_eval) || rv); in test_oexpr()
3228 return (rv); in test_oexpr()
3234 int rv; in test_aexpr() local
3236 if (!(rv = test_nexpr(te, do_eval))) in test_aexpr()
3239 return (test_aexpr(te, do_eval) && rv); in test_aexpr()
3240 return (rv); in test_aexpr()
3255 int rv; in test_primary() local
3261 rv = test_oexpr(te, do_eval); in test_primary()
3268 return (rv); in test_primary()
3321 Test_op rv; in ptest_isa() local
3327 rv = test_isop(meta, *te->pos.wp); in ptest_isa()
3329 rv = TO_NONOP; in ptest_isa()
3331 rv = !strcmp(*te->pos.wp, tokens[(int)meta]) ? in ptest_isa()
3335 if (rv != TO_NONOP) in ptest_isa()
3338 return (rv); in ptest_isa()
3552 int rv = 1; in c_rename() local
3565 else if ((rv = rename(wp[0], wp[1])) != 0) { in c_rename()
3566 rv = errno; in c_rename()
3567 bi_errorf("%s: %s", "failed", cstrerror(rv)); in c_rename()
3570 return (rv); in c_rename()
3576 int rv = 1; in c_realpath() local
3589 rv = errno; in c_realpath()
3590 bi_errorf("%s: %s", wp[0], cstrerror(rv)); in c_realpath()
3591 if ((unsigned int)rv > 255) in c_realpath()
3592 rv = 255; in c_realpath()
3596 rv = 0; in c_realpath()
3599 return (rv); in c_realpath()
3605 int fd = STDIN_FILENO, rv, eno; in c_cat() local
3612 while ((rv = ksh_getopt(wp, &builtin_opt, "u")) != -1) { in c_cat()
3613 switch (rv) { in c_cat()
3623 rv = 0; in c_cat()
3638 rv = 1; in c_cat()
3654 rv = 1; in c_cat()
3671 rv = 1; in c_cat()
3686 return (rv); in c_cat()
3694 int rv = 1; in c_sleep() local
3733 rv = 0; in c_sleep()
3741 return (rv); in c_sleep()