/illumos-gate/usr/src/cmd/newtask/ |
H A D | utils.c | 124 char *tmp_cp, *ret_str = NULL; in getdefault() local 128 return (ret_str); in getdefault() 175 ret_str = safe_malloc(tlen); in getdefault() 176 (void) snprintf(ret_str, tlen, "%s%s", in getdefault() 180 ret_str = safe_malloc(tlen); in getdefault() 181 (void) snprintf(ret_str, tlen, "%s", tmp_cp); in getdefault() 187 return (ret_str); in getdefault()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_function_hooks.c | 365 char *ret_str; member 382 static void store_return_state(struct db_callback_info *db_info, const char *ret_str, struct smatch… in store_return_state() argument 384 db_info->ret_str = alloc_sname(ret_str), in store_return_state() 492 db_info->ret_str = NULL; in set_fresh_mtag_returns() 504 if (!fake_a_param_assignment(db_info->expr, db_info->ret_str, state)) in set_return_assign_state() 508 db_info->ret_str = NULL; in set_return_assign_state() 522 db_info->ret_str = NULL; in set_other_side_state() 651 char *ret_str, *key, *value; in db_compare_callback() local 661 ret_str = argv[1]; in db_compare_callback() 694 call_results_to_rl(db_info->expr, get_type(strip_expr(db_info->expr)), ret_str, &ret_range); in db_compare_callback() [all …]
|
H A D | check_locking.c | 863 char *ret_str; in get_param_lock_name() local 865 ret_str = expr_to_str_sym(expr, &ret_sym); in get_param_lock_name() 866 if (ret_str && ret_sym == sm->sym) { in get_param_lock_name() 867 param_name = state_name_to_param_name(sm->name, ret_str); in get_param_lock_name() 869 free_string(ret_str); in get_param_lock_name() 874 free_string(ret_str); in get_param_lock_name()
|
H A D | smatch_comparison.c | 2004 char *ret_str = NULL; in range_comparison_to_param_helper() local 2030 ret_str = alloc_sname(buf); in range_comparison_to_param_helper() 2035 if (!ret_str) in range_comparison_to_param_helper() 2038 return ret_str; in range_comparison_to_param_helper() 2042 ret_str = get_mask_comparison(expr, ignore); in range_comparison_to_param_helper() 2043 return ret_str; in range_comparison_to_param_helper() 2085 char *ret_str = NULL; in expr_param_comparison() local 2105 ret_str = alloc_sname(buf); in expr_param_comparison() 2111 return ret_str; in expr_param_comparison()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 283 set_msg(char **ret_str, ...) in set_msg() argument 289 va_start(valist, ret_str); in set_msg() 291 total_len = (*ret_str == NULL) ? 0 : strlen(*ret_str); in set_msg() 295 char *old_str = *ret_str; in set_msg() 297 *ret_str = (char *)realloc(*ret_str, total_len + len + 1); in set_msg() 298 if (*ret_str == NULL) { in set_msg() 306 (void) strcpy(*ret_str + total_len, str); in set_msg()
|
/illumos-gate/usr/src/common/elfcap/ |
H A D | elfcap.c | 538 const elfcap_str_t **ret_str) in get_str_desc() argument 542 *ret_str = &cdp->c_full; in get_str_desc() 545 *ret_str = &cdp->c_uc; in get_str_desc() 548 *ret_str = &cdp->c_lc; in get_str_desc()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 345 ib_set_msg(char **ret_str, ...) in ib_set_msg() argument 351 va_start(valist, ret_str); in ib_set_msg() 353 total_len = (*ret_str == NULL) ? 0 : strlen(*ret_str); in ib_set_msg() 357 char *old_str = *ret_str; in ib_set_msg() 360 *ret_str = (char *)realloc(*ret_str, ret_str_len); in ib_set_msg() 361 if (*ret_str == NULL) { in ib_set_msg() 368 (void) strlcpy(*ret_str + total_len, str, ret_str_len); in ib_set_msg()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 416 set_msg(char **ret_str, ...) in set_msg() argument 422 va_start(valist, ret_str); in set_msg() 424 total_len = (*ret_str == NULL) ? 0 : strlen(*ret_str); in set_msg() 428 char *old_str = *ret_str; in set_msg() 430 *ret_str = (char *)realloc(*ret_str, total_len + len + 1); in set_msg() 431 if (*ret_str == NULL) { in set_msg() 438 (void) strcpy(*ret_str + total_len, str); in set_msg()
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | interceptor.c | 165 generate_i_declarations(char *errname, int voidfunc, char *ret_str) in generate_i_declarations() argument 182 (void) fprintf(Bodyfp, " %s;\n", ret_str); in generate_i_declarations()
|