/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | rune.c | 57 _RuneLocale *rl; in _Read_RuneMagi() local 156 rl->__variable = rl + 1; in _Read_RuneMagi() 158 (void) memcpy(rl->__magic, _RUNE_MAGIC_1, sizeof (rl->__magic)); in _Read_RuneMagi() 172 rl->__runetype_ext.__ranges = (_RuneEntry *)rl->__variable; in _Read_RuneMagi() 173 rl->__variable = rl->__runetype_ext.__ranges + in _Read_RuneMagi() 176 rl->__maplower_ext.__ranges = (_RuneEntry *)rl->__variable; in _Read_RuneMagi() 177 rl->__variable = rl->__maplower_ext.__ranges + in _Read_RuneMagi() 180 rl->__mapupper_ext.__ranges = (_RuneEntry *)rl->__variable; in _Read_RuneMagi() 181 rl->__variable = rl->__mapupper_ext.__ranges + in _Read_RuneMagi() 221 (void) memcpy(rl->__variable, variable, rl->__variable_len); in _Read_RuneMagi() [all …]
|
H A D | setrunelocale.c | 101 _RuneLocale *rl; in __lc_ctype_load() local 115 if ((rl = _Read_RuneMagi(path)) == NULL) { in __lc_ctype_load() 120 ldata->l_data[1] = rl; in __lc_ctype_load() 127 lct->lc_ctype_mask = rl->__runetype; in __lc_ctype_load() 128 lct->lc_trans_upper = rl->__mapupper; in __lc_ctype_load() 129 lct->lc_trans_lower = rl->__maplower; in __lc_ctype_load() 134 if ((strncmp(rl->__encoding, encodings[i].e_name, l) == 0) && in __lc_ctype_load() 135 (rl->__encoding[l] == '\0' || rl->__encoding[l] == '@')) { in __lc_ctype_load()
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_rules.c | 100 ilb_rule_info_t *rl; in ilb_create_rule() local 114 (void) strlcpy(rl->rl_name, rd->r_name, sizeof (rl->rl_name)); in ilb_create_rule() 115 (void) strlcpy(rl->rl_sgname, rd->r_sgname, sizeof (rl->rl_sgname)); in ilb_create_rule() 116 (void) strlcpy(rl->rl_hcname, rd->r_hcname, sizeof (rl->rl_hcname)); in ilb_create_rule() 117 rl->rl_flags = rd->r_flags; in ilb_create_rule() 118 rl->rl_proto = rd->r_proto; in ilb_create_rule() 125 rl->rl_algo = rd->r_algo; in ilb_create_rule() 126 rl->rl_topo = rd->r_topo; in ilb_create_rule() 264 rd.r_flags = rl->rl_flags; in i_ilb_walk_one_rule() 268 rd.r_algo = rl->rl_algo; in i_ilb_walk_one_rule() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_mtag_data.c | 33 unsigned long *rl = _rl; in save_rl() local 45 return rl; in select_orig() 125 rl = clone_rl_permanent(rl); in insert_mtag_data() 254 if (db_info->rl) in get_vals() 255 db_info->rl = rl_union(db_info->rl, tmp); in get_vals() 257 db_info->rl = tmp; in get_vals() 279 *rl = cached_results[i].rl; in get_rl_from_mtag_offset() 291 if (!db_info.rl || is_whole_rl(db_info.rl)) { in get_rl_from_mtag_offset() 292 db_info.rl = NULL; in get_rl_from_mtag_offset() 297 *rl = db_info.rl; in get_rl_from_mtag_offset() [all …]
|
H A D | smatch_math.c | 105 if (rl) { in handle_address() 178 return rl && sval_is_min(rl_min(rl)); in untrusted_type_min() 580 if (!rl) in handle_left_shift() 657 if (rl) { in handle_binop_rl_helper() 1352 rl = rl_binop(rl, '*', alloc_rl(sval, sval)); in get_offset_from_down() 1724 if (*rl) in get_implied_rl_var_sym() 1733 if (!get_rl_helper(expr, RL_HARD, &rl) || !rl) in get_hard_max() 1744 if (!get_rl_helper(expr, RL_FUZZY, &rl) || !rl) in get_fuzzy_min() 1758 if (!get_rl_helper(expr, RL_FUZZY, &rl) || !rl) in get_fuzzy_max() 1777 if (rl) in get_absolute_min() [all …]
|
H A D | smatch_common_functions.c | 28 if (get_implied_strlen(str, rl) && sval_is_positive(rl_min(*rl))) { in match_strlen() 29 *rl = cast_rl(&ulong_ctype, *rl); in match_strlen() 35 *rl = alloc_rl(sval_type_val(&ulong_ctype, 0), in match_strlen() 39 *rl = alloc_rl(sval_type_val(&ulong_ctype, 0), in match_strlen() 52 match_strlen(call, NULL, rl); in match_strnlen() 58 if (rl_to_sval(*rl, &fixed) && sval_cmp(fixed, bound) >= 0) { in match_strnlen() 59 *rl = alloc_rl(bound, bound); in match_strnlen() 64 *rl = remove_range(*rl, bound, ulong_max); in match_strnlen() 77 *rl = alloc_whole_rl(&ulong_ctype); in match_sprintf() 79 *rl = alloc_rl(ll_to_sval(min), ll_to_sval(max)); in match_sprintf() [all …]
|
H A D | smatch_array_values.c | 27 struct range_list *rl; member 33 struct range_list *rl; in get_vals() local 35 str_to_rl(db_info->type, argv[0], &rl); in get_vals() 36 db_info->rl = rl_union(db_info->rl, rl); in get_vals() 138 *rl = db_info.rl; in get_array_rl() 148 return db_info.rl; in get_saved_rl() 162 struct range_list *orig_rl, *rl; in match_assign() local 180 rl = cast_rl(type, rl); in match_assign() 182 get_absolute_rl(expr->right, &rl); in match_assign() 183 rl = cast_rl(type, rl); in match_assign() [all …]
|
H A D | smatch_buf_size.c | 120 if (!rl || is_whole_rl(rl)) in set_param_buf_size() 263 if (rl) in size_from_db() 264 return rl; in size_from_db() 279 rl = cast_rl(&int_ctype, rl); in db_returns_buf_size() 561 if (!rl) in get_array_size_bytes_max() 578 if (!rl) in get_array_size_bytes_min() 627 if (rl && !is_whole_rl(rl)) in info_record_alloction() 639 rl = clone_rl(rl); // FIXME!!! in store_alloc() 640 if (!rl) in store_alloc() 730 rl = cast_rl(&int_ctype, rl); in match_alloc() [all …]
|
H A D | check_kernel.c | 38 *rl = cast_rl(get_type(call), *rl); in implied_err_cast_return() 87 struct range_list *rl; in match_param_valid_ptr() local 93 rl = remove_range(rl, null_ptr, null_ptr); in match_param_valid_ptr() 94 rl = remove_range(rl, err_ptr_min, err_ptr_max); in match_param_valid_ptr() 118 rl = rl_intersection(pre, rl); in match_param_err_or_null() 119 rl = cast_rl(get_type(arg), rl); in match_param_err_or_null() 129 struct range_list *rl; in match_not_err() local 136 rl = cast_rl(get_type(arg), rl); in match_not_err() 150 if (!rl) in match_err() 152 rl = rl_intersection(rl, alloc_rl(err_ptr_min, err_ptr_max)); in match_err() [all …]
|
H A D | smatch_type_val.c | 67 struct range_list *rl; member 81 *rl = clone_rl(cached_results[i].rl); in get_cached() 121 *rl = tmp; in get_db_type_rl() 464 struct range_list *rl; in match_assign_value() local 501 rl = cast_rl(type, rl); in match_assign_value() 523 struct range_list *rl; in match_assign_pointer() local 543 struct range_list *rl; in match_global_assign() local 553 rl = cast_rl(type, rl); in match_global_assign() 560 struct range_list *rl; in unop_expr() local 578 struct range_list *rl; in asm_expr() local [all …]
|
H A D | smatch_strlen.c | 63 struct range_list *rl; in match_string_assignment() local 230 *rl = alloc_rl(sval, sval); in get_strlen_from_string() 242 *rl = estate_rl(state); in get_strlen_from_state() 264 *rl = NULL; in get_implied_strlen() 279 struct range_list *rl; in get_size_from_strlen() local 284 max = rl_max(rl); in get_size_from_strlen() 293 struct range_list *rl = NULL; in set_param_strlen() local 303 if (!rl || is_whole_rl(rl)) in set_param_strlen() 305 state = alloc_estate_rl(rl); in set_param_strlen() 312 struct range_list *rl; in match_call() local [all …]
|
H A D | smatch_ranges.c | 400 *rl = cast_rl(rl_type(*rl), ret_rl); in filter_by_comparison() 637 rl = rl_intersection(rl, math_rl); in str_to_dinfo() 641 rl = rl_intersection(rl, math_rl); in str_to_dinfo() 652 rl = filter_by_comparison_call(c, call, &c, rl); in str_to_dinfo() 655 rl = cast_rl(type, rl); in str_to_dinfo() 775 if (!rl) in rl_to_sval() 788 if (!rl) in rl_type() 1405 rl = rl_filter(rl, filter); in filter_top_rl() 1415 if (!rl) in rl_truncate_cast() 1500 if (!rl) in cast_rl() [all …]
|
H A D | smatch_kernel_user_data.c | 91 struct range_list *rl; in pre_merge_hook() local 597 rl = cast_rl(get_type(expr->left), rl); in handle_op_assign() 642 rl = cast_rl(get_type(expr->left), rl); in match_assign() 693 if (!rl) in strip_negatives() 696 if (type_unsigned(rl_type(rl)) && type_bits(rl_type(rl)) > 31) in strip_negatives() 1012 *rl = NULL; in get_user_rl() 1014 return !!*rl; in get_user_rl() 1043 rl = cast_rl(type, rl); in get_user_rl_str() 1045 show_rl(rl), in get_user_rl_str() 1101 if (!rl) in struct_member_callback() [all …]
|
H A D | smatch_real_absolute.c | 47 struct range_list *rl; in extra_mod_hook() local 52 rl = rl_intersection(estate_rl(abs), estate_rl(state)); in extra_mod_hook() 53 set_state(my_id, name, sym, alloc_estate_rl(clone_rl(rl))); in extra_mod_hook() 59 struct range_list *rl; in pre_merge_hook() local 68 rl = rl_intersection(estate_rl(cur->state), estate_rl(extra)); in pre_merge_hook() 100 struct range_list *rl; in match_assign() local 111 get_real_absolute_rl(expr->right, &rl); in match_assign() 120 rl = cast_rl(type, rl); in match_assign() 121 if (is_whole_rl(rl) && !get_state_expr(my_id, expr->left)) in match_assign() 124 if (rl_to_sval(rl, &sval) && !get_state_expr(my_id, expr->left)) in match_assign() [all …]
|
H A D | smatch_extra.h | 52 int rl_fits_in_type(struct range_list *rl, struct symbol *type); 75 int rl_has_sval(struct range_list *rl, sval_t sval); 81 int is_whole_rl(struct range_list *rl); 82 int is_unknown_ptr(struct range_list *rl); 83 int is_whole_rl_non_zero(struct range_list *rl); 86 sval_t rl_min(struct range_list *rl); 87 sval_t rl_max(struct range_list *rl); 88 int rl_to_sval(struct range_list *rl, sval_t *sval); 89 struct symbol *rl_type(struct range_list *rl); 110 struct range_list **rl); [all …]
|
H A D | smatch_address.c | 152 struct range_list *orig = *rl; in add_offset_to_pointer() 187 *rl = alloc_rl(min, max); in add_offset_to_pointer() 202 *rl = rl_binop(orig, '+', alloc_rl(sval, sval)); in add_offset_to_pointer() 228 *rl = alloc_rl(valid_ptr_min_sval, valid_ptr_max_sval); in handle_fn_address() 260 if (handle_fn_address(expr, rl)) in get_address_rl() 278 *rl = where_allocated_rl(expr->symbol); in get_address_rl() 304 *rl = res; in get_address_rl() 310 *rl = alloc_rl(valid_ptr_min_sval, valid_ptr_max_sval); in get_address_rl() 329 *rl = unop_rl; in get_address_rl() 330 add_offset_to_pointer(rl, offset); in get_address_rl() [all …]
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_stat.c | 189 for (s = rl = inf[rtype].rmtinfo; rl; rl = rl->next) { in rpcbs_rmtcall() 190 if ((rl->prog == prog) && (rl->vers == vers) && in rpcbs_rmtcall() 191 (rl->proc == proc) && (strcmp(rl->netid, netid) == 0)) { in rpcbs_rmtcall() 216 if (rl == NULL) { in rpcbs_rmtcall() 220 rl->prog = prog; in rpcbs_rmtcall() 221 rl->vers = vers; in rpcbs_rmtcall() 222 rl->proc = proc; in rpcbs_rmtcall() 225 rl->failure = 1; in rpcbs_rmtcall() 226 rl->success = 0; in rpcbs_rmtcall() 228 rl->failure = 0; in rpcbs_rmtcall() [all …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | flockf.c | 55 rmutex_t *rl = IOB_LCK(iop); in _flockget() local 57 if (rl != NULL) in _flockget() 58 cancel_safe_mutex_lock(rl); in _flockget() 59 return (rl); in _flockget() 65 rmutex_t *rl = IOB_LCK(iop); in ftrylockfile() local 67 if (rl != NULL) in ftrylockfile() 68 return (mutex_trylock(rl)); in ftrylockfile() 77 if (rl != NULL) in flockfile() 78 (void) mutex_lock(rl); in flockfile() 86 if (rl != NULL) in funlockfile() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_rules.c | 134 ilbd_rule_t *rl; in i_check_srv2rules() local 145 for (rl = list_head(rlist); rl != NULL; rl = list_next(rlist, rl)) { in i_check_srv2rules() 259 rl = calloc(sizeof (*rl), 1); in i_alloc_ilbd_rule() 263 return (rl); in i_alloc_ilbd_rule() 274 strncmp(rl->irl_name, name, sizeof (rl->irl_name)) != 0) { in i_find_rule_byname() 275 rl = list_next(&ilbd_rule_hlist, rl); in i_find_rule_byname() 278 return (rl); in i_find_rule_byname() 309 (void) strlcpy(rl->rl_name, kcmd.name, sizeof (rl->rl_name)); in ilb_get_krule() 1128 " servergroup name %s", rl->rl_name, rl->rl_sgname); in ilbd_create_rule() 1268 for (rl = list_head(rlist); rl != NULL; rl = list_next(rlist, rl)) { in i_add_srv2krules() [all …]
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | ctype.c | 260 _FileRuneLocale rl; in dump_ctype() local 267 (void) memset(&rl, 0, sizeof (rl)); in dump_ctype() 276 (void) strlcpy(rl.encoding, get_wide_encoding(), sizeof (rl.encoding)); in dump_ctype() 282 rl.maplower[wc] = wc; in dump_ctype() 283 rl.mapupper[wc] = wc; in dump_ctype() 371 rl.runetype[wc] = ctn->ctype; in dump_ctype() 373 rl.maplower[wc] = ctn->tolower; in dump_ctype() 383 rl.runetype_ext_nranges++; in dump_ctype() 400 rl.maplower_ext_nranges++; in dump_ctype() 418 rl.mapupper_ext_nranges++; in dump_ctype() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_utils.c | 68 RLEAF *rl; local 97 rl = GETRLEAF(e->page, e->index); 98 if (rl->flags & P_BIGDATA) { 99 if (__ovfl_get(t, rl->bytes, 105 if (rl->dsize + 1 > t->bt_rdata.size) { 107 malloc(rl->dsize + 1) : 112 t->bt_rdata.size = rl->dsize + 1; 114 memmove(t->bt_rdata.data, rl->bytes, rl->dsize); 115 data->size = rl->dsize; 118 data->size = rl->dsize; [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_rlock.c | 126 rl->rl_cb = cb; in rangelock_init() 127 rl->rl_arg = arg; in rangelock_init() 134 avl_destroy(&rl->rl_tree); in rangelock_fini() 156 if (rl->rl_cb != NULL) { in rangelock_enter_writer() 157 rl->rl_cb(new, rl->rl_arg); in rangelock_enter_writer() 457 new->lr_rangelock = rl; in rangelock_enter() 468 mutex_enter(&rl->rl_lock); in rangelock_enter() 479 mutex_exit(&rl->rl_lock); in rangelock_enter() 563 mutex_enter(&rl->rl_lock); in rangelock_exit() 567 mutex_exit(&rl->rl_lock); in rangelock_exit() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | ldap.c | 720 if (rl == NULL) 1067 rl->lr_done = true; 1071 rl->lr_ludp = NULL; 1075 free(rl->lr_attrs); 1173 if (rl->lr_done) 1183 rl->lr_search, 1196 rl->lr_search, 1244 rl->lr_attrs[i] = rl->lr_ludp->lud_attrs[i]; 1264 rl->lr_attrs, 1314 rl->lr_done = true; [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/ |
H A D | 64.rv64a.s | 28 lr.d.rl s2, (s3) 32 sc.d.rl s2, s4, (s1) 36 amoswap.d.rl t2, t3, (t4) 40 amoadd.d.rl t2, t3, (t4) 44 amoxor.d.rl t2, t3, (t4) 48 amoand.d.rl t2, t3, (t4) 52 amoor.d.rl t2, t3, (t4) 56 amomin.d.rl t2, t3, (t4) 60 amomax.d.rl t2, t3, (t4) 64 amominu.d.rl t2, t3, (t4) [all …]
|
H A D | tst.rv32a.s | 28 lr.w.rl s2, (s3) 32 sc.w.rl s2, s4, (s1) 36 amoswap.w.rl t2, t3, (t4) 40 amoadd.w.rl t2, t3, (t4) 44 amoxor.w.rl t2, t3, (t4) 48 amoand.w.rl t2, t3, (t4) 52 amoor.w.rl t2, t3, (t4) 56 amomin.w.rl t2, t3, (t4) 60 amomax.w.rl t2, t3, (t4) 64 amominu.w.rl t2, t3, (t4) [all …]
|