/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_wait_for_common.c | 26 if (!expr_unsigned(expr->left)) in match_wait_for_common() 28 name = expr_to_str(expr->left); in match_wait_for_common()
|
H A D | smatch_helper.c | 158 type = get_type(expr->left); in get_array_expr() 162 return expr->left; in get_array_expr() 168 return expr->left; in get_array_expr() 170 return expr->left; in get_array_expr() 538 char *left, *right; in reorder_expr_alphabetically() local 545 left = expr_to_var(expr->left); in reorder_expr_alphabetically() 548 if (!left || !right) in reorder_expr_alphabetically() 550 if (strcmp(left, right) <= 0) in reorder_expr_alphabetically() 555 free_string(left); in reorder_expr_alphabetically() 660 type = get_type(expr->left); in is_array() [all …]
|
H A D | pre-process.c | 517 strcpy(p, show_token(left)); in combine() 562 left->pos.noexpand = 0; in merge() 567 left->number = xstrdup(buffer); in merge() 575 left->special = n; in merge() 583 token_type(left) = res; in merge() 584 left->pos.noexpand = 0; in merge() 585 left->string = right->string; in merge() 589 token_type(left) = res; in merge() 590 left->pos.noexpand = 0; in merge() 1590 name = left->ident; in do_handle_define() [all …]
|
H A D | smatch_constraints.c | 350 static void handle_comparison(struct expression *left, int op, struct expression *right) in handle_comparison() argument 360 if (get_value(left, &sval) || get_value(right, &sval)) in handle_comparison() 373 constraints = get_constraints(left); in handle_comparison() 380 set_true_false_states_expr(my_id, left, state, NULL); in handle_comparison() 382 set_true_false_states_expr(my_id, left, NULL, state); in handle_comparison() 394 handle_comparison(expr->left, expr->op, expr->right); in match_condition() 395 handle_comparison(expr->right, flip_comparison(expr->op), expr->left); in match_condition()
|
H A D | smatch_type_links.c | 54 if (!is_void_pointer(expr->left)) in match_assign() 64 sql_insert_data_info(expr->left, TYPE_LINK, type_to_str(type)); in match_assign()
|
H A D | smatch_assigned_expr.c | 80 if (expr->left == ignored_expr) in match_assignment() 84 ignored_expr = expr->left; in match_assignment() 86 left_name = expr_to_var_sym(expr->left, &left_sym); in match_assignment()
|
H A D | allocate.c | 101 if (!blob || blob->left < size) { in allocate() 114 blob->left = chunking - offset; in allocate() 119 blob->left -= size; in allocate()
|
H A D | check_allocating_enough_data.c | 35 left_type = get_pointer_type(expr->left); in db_returns_buf_size() 47 str = expr_to_str(expr->left); in db_returns_buf_size()
|
H A D | check_cast_assign.c | 41 type = get_cast_type(expr->left); in match_overflow() 46 ptr = strip_expr(expr->left->unop); in match_overflow()
|
H A D | check_logical_instead_of_bitwise.c | 45 if (!get_value(expr->left, &sval)) in match_logic() 62 if (is_bitshift(right->left) || is_bitshift(right->right)) in match_assign()
|
H A D | check_input_free_device.c | 34 if (get_state_expr(my_id, expr->left)) { in match_assign() 35 set_state_expr(my_id, expr->left, &ok); in match_assign()
|
H A D | check_arm64_tagged.c | 33 left_name = expr_to_var_sym(expr->left, &left_sym); in match_assign() 209 if (expr_has_memory_addr(expr->left)) in match_condition() 219 val = expr->left; in match_condition()
|
H A D | smatch_flow.c | 246 __split_expr(right->left); in handle_comma_assigns() 258 struct expression *left, *fake_left; in handle_postop_assigns() local 261 left = strip_expr(expr->left); in handle_postop_assigns() 262 if (left->type != EXPR_PREOP || left->op != '*') in handle_postop_assigns() 264 left = strip_expr(left->unop); in handle_postop_assigns() 265 if (left->type != EXPR_POSTOP) in handle_postop_assigns() 272 __split_expr(expr->left); in handle_postop_assigns() 408 expr_set_parent_expr(expr->left, expr); in __split_expr() 415 expr_set_parent_expr(expr->left, expr); in __split_expr() 423 __split_expr(expr->left); in __split_expr() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_subr.c | 251 ssize_t left; in topo_fmristr_build() local 256 if (buflen == 0 || (left = buflen - *sz) < 0) in topo_fmristr_build() 257 left = 0; in topo_fmristr_build() 259 if (buf != NULL && left != 0) in topo_fmristr_build() 263 *sz += snprintf(buf, left, "%s", str); in topo_fmristr_build() 265 *sz += snprintf(buf, left, "%s%s", prepend, str); in topo_fmristr_build() 267 *sz += snprintf(buf, left, "%s%s", str, append); in topo_fmristr_build() 269 *sz += snprintf(buf, left, "%s%s%s", prepend, str, append); in topo_fmristr_build()
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | parser.y | 63 %left XSCON SCON NEWE 64 %left '/' 69 %left '$' '^' 70 %left '|' 71 %left CHAR CCL NCCL '(' '.' STR NULLS 72 %left ITER 73 %left CAT 74 %left '*' '+' '?' 337 i = treesize*(sizeof(*name)+sizeof(*left)+ 347 left = (int *)myalloc(treesize,sizeof(*left)); [all …]
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | inflate.c | 462 left = strm->avail_out; \ 634 out = left; in inflate() 901 if (copy > left) copy = left; in inflate() 906 left -= copy; in inflate() 1150 copy = out - left; in inflate() 1163 if (copy > left) copy = left; in inflate() 1185 if (copy > left) copy = left; in inflate() 1186 left -= copy; in inflate() 1196 left--; in inflate() 1202 out -= left; in inflate() [all …]
|
H A D | deflate.c | 958 left -= copy; 962 s->pending += left; 1748 if (left) { 1749 if (left > len) 1750 left = len; 1752 s->strm->next_out += left; 1755 s->block_start += left; 1756 len -= left; 1848 if (left >= min_block || 1851 len = MIN(left, have); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | mamake.c | 497 if (root->left && (cmp = strcmp(name, root->left->name)) <= 0) in search() 508 root = root->left; in search() 509 right->left = 0; in search() 519 if (left) in search() 523 left = root; in search() 525 left->right = 0; in search() 534 if (left) in search() 535 left->right = root->left; in search() 549 root->left = lroot; in search() 554 if (left) in search() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strlcat.c | 42 size_t left = dstsize; in strlcat() local 47 while (left-- != 0 && *df != '\0') in strlcat()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftpsubs.c | 236 size_t left = count; in write_behind() local 238 while (left > 0) { in write_behind() 241 written = fwrite(buf, sizeof (char), left, file); in write_behind() 251 left -= written; in write_behind()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softSSL.c | 226 uint_t left = resultlen; in P_MD5() local 252 while (left > 0) { in P_MD5() 265 if (left > MD5_HASH_SIZE) { in P_MD5() 275 left -= MD5_HASH_SIZE; in P_MD5() 279 for (i = 0; i < left; i++) { in P_MD5() 284 bcopy(md5_hmac, res, left); in P_MD5() 306 uint_t left = resultlen; in P_SHA1() local 332 while (left > 0) { in P_SHA1() 346 if (left > SHA1_HASH_SIZE) { in P_SHA1() 356 left -= SHA1_HASH_SIZE; in P_SHA1() [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | e.y | 42 %left OVER SQRT 46 %left LEFT RIGHT 106 | left eqn right { paren($1, $2, $3); } 146 left : LEFT text { $$ = ((char *)$2)[0]; }
|
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | libpcp.c | 1378 int left = size; in vldc_write() local 1393 if ((res = write(fd, bufp, left)) <= 0) { in vldc_write() 1399 left -= res; in vldc_write() 1401 } while (left > 0); in vldc_write() 1406 return (size - left); in vldc_write() 1416 int left = size; in vldc_read() local 1428 while (left > 0) { in vldc_read() 1429 res = read(fd, bufp, left); in vldc_read() 1445 left -= res; in vldc_read() 1449 return (size - left); in vldc_read()
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | tree.c | 283 tree_free(root->u.expr.left); in tree_free() 292 tree_free(root->u.expr.left); in tree_free() 388 if (tree_treecmp(np1->u.expr.left, np2->u.expr.left, t, in tree_treecmp() 407 return (tree_treecmp(np1->u.expr.left, np2->u.expr.left, t, in tree_treecmp() 485 (left) ? left->file : right->file, in tree_expr() 486 (left) ? left->line : right->line); in tree_expr() 488 ret->u.expr.left = left; in tree_expr() 858 make_explicit(np->u.expr.left, eventonly); in make_explicit() 962 ASSERTeq(np->u.expr.left->t, T_NAME, in nvpair2lut() 966 np->u.expr.left->u.name.s, np->u.expr.right); in nvpair2lut() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regdecomp.c | 94 if (decomp(e->re.group.expr.binary.left, sp, type, delimiter, flags)) in decomp() 332 if (decomp(e->re.group.expr.binary.left, sp, type, delimiter, flags)) in decomp() 359 …if (e->re.group.expr.binary.left && decomp(e->re.group.expr.binary.left, sp, type, delimiter, flag… in decomp() 364 …if (q->re.group.expr.binary.left && decomp(q->re.group.expr.binary.left, sp, type, delimiter, flag… in decomp()
|