Lines Matching refs:opnd1

2932 test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2,  in test_eval()  argument
2979 return (*opnd1 != '\0'); in test_eval()
2983 return (*opnd1 == '\0'); in test_eval()
2987 if ((i = *opnd1) == '!' || i == '?') in test_eval()
2988 opnd1++; in test_eval()
2989 if ((k = option(opnd1)) == (size_t)-1) in test_eval()
2996 return (access(opnd1, R_OK) == 0); in test_eval()
3001 return (access(opnd1, W_OK) == 0); in test_eval()
3005 return (ksh_access(opnd1, X_OK) == 0); in test_eval()
3011 return (stat(opnd1, &b1) == 0); in test_eval()
3015 return (stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode)); in test_eval()
3019 return (stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode)); in test_eval()
3023 return (stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode)); in test_eval()
3027 return (stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode)); in test_eval()
3031 return (stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode)); in test_eval()
3038 return (lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode)); in test_eval()
3043 return (stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode)); in test_eval()
3061 nv = shf_smprintf("%s+", opnd1); in test_eval()
3072 return (stat(opnd1, &b1) == 0 && in test_eval()
3077 return (stat(opnd1, &b1) == 0 && in test_eval()
3083 return (stat(opnd1, &b1) == 0 && in test_eval()
3091 return (stat(opnd1, &b1) == 0 && (off_t)b1.st_size > (off_t)0); in test_eval()
3095 if (opnd1 && !bi_getn(opnd1, &i)) { in test_eval()
3099 i = isatty(opnd1 ? i : 0); in test_eval()
3104 return (stat(opnd1, &b1) == 0 && (uid_t)b1.st_uid == ksheuid); in test_eval()
3108 return (stat(opnd1, &b1) == 0 && (gid_t)b1.st_gid == getegid()); in test_eval()
3117 return (gmatchx(opnd1, opnd2, false)); in test_eval()
3118 return (strcmp(opnd1, opnd2) == 0); in test_eval()
3123 return (!gmatchx(opnd1, opnd2, false)); in test_eval()
3124 return (strcmp(opnd1, opnd2) != 0); in test_eval()
3128 return (strcmp(opnd1, opnd2) < 0); in test_eval()
3132 return (strcmp(opnd1, opnd2) > 0); in test_eval()
3146 if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR, false) || in test_eval()
3177 return (stat(opnd1, &b1) == 0 && in test_eval()
3188 (((s = stat(opnd1, &b1)) == 0 && in test_eval()
3193 return (stat (opnd1, &b1) == 0 && stat (opnd2, &b2) == 0 && in test_eval()
3254 const char *opnd1, *opnd2; in test_primary() local
3278 opnd1 = (*te->getopnd)(te, op, do_eval); in test_primary()
3279 if (!opnd1) { in test_primary()
3284 return ((*te->eval)(te, op, opnd1, NULL, do_eval)); in test_primary()
3287 opnd1 = (*te->getopnd)(te, TO_NONOP, do_eval); in test_primary()
3288 if (!opnd1) { in test_primary()
3300 return ((*te->eval)(te, op, opnd1, opnd2, do_eval)); in test_primary()
3302 return ((*te->eval)(te, TO_STNZE, opnd1, NULL, do_eval)); in test_primary()