Home
last modified time | relevance | path

Searched refs:rl (Results 1 – 25 of 160) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libc/port/locale/
H A Drune.c57 _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 Dsetrunelocale.c101 _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 Dilb_rules.c100 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 Dsmatch_mtag_data.c33 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 Dsmatch_math.c105 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 Dsmatch_common_functions.c28 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 Dsmatch_array_values.c27 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 Dsmatch_buf_size.c120 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 Dcheck_kernel.c38 *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 Dsmatch_type_val.c67 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 Dsmatch_strlen.c63 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 Dsmatch_ranges.c400 *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 Dsmatch_kernel_user_data.c91 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 Dsmatch_real_absolute.c47 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 Dsmatch_extra.h52 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 Dsmatch_address.c152 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/lib/libc/port/stdio/
H A Dflockf.c57 rmutex_t *rl = IOB_LCK(iop); in _flockget() local
59 if (rl != NULL) in _flockget()
60 cancel_safe_mutex_lock(rl); in _flockget()
61 return (rl); in _flockget()
67 rmutex_t *rl = IOB_LCK(iop); in ftrylockfile() local
69 if (rl != NULL) in ftrylockfile()
70 return (mutex_trylock(rl)); in ftrylockfile()
79 if (rl != NULL) in flockfile()
80 (void) mutex_lock(rl); in flockfile()
88 if (rl != NULL) in funlockfile()
[all …]
/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcb_stat.c189 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/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_rules.c134 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 Dctype.c260 _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 Drec_utils.c70 RLEAF *rl; local
99 rl = GETRLEAF(e->page, e->index);
100 if (rl->flags & P_BIGDATA) {
101 if (__ovfl_get(t, rl->bytes,
107 if (rl->dsize + 1 > t->bt_rdata.size) {
109 malloc(rl->dsize + 1) :
114 t->bt_rdata.size = rl->dsize + 1;
116 memmove(t->bt_rdata.data, rl->bytes, rl->dsize);
117 data->size = rl->dsize;
120 data->size = rl->dsize;
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_rlock.c126 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 Dldap.c720 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 D64.rv64a.s28 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 Dtst.rv32a.s28 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 …]

1234567