/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathfind.c | 89 char tmp[PATH_MAX]; in pathfind() local 138 sfsprintf(tmp, sizeof(tmp), "%s/%s", dp->dir, name); in pathfind() 139 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) in pathfind() 143 sfsprintf(tmp, sizeof(tmp), "%s/%s.%s", dp->dir, name, type); in pathfind() 144 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) in pathfind() 157 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name); in pathfind() 158 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) in pathfind() 162 sfsprintf(tmp, sizeof(tmp), "lib/%s/%s.%s", lib, name, type); in pathfind() 163 if (pathpath(tmp, "", PATH_REGULAR, buf, size)) in pathfind()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | unssa.c | 37 static int simplify_phi_node(struct instruction *phi, pseudo_t tmp) in simplify_phi_node() argument 56 use_pseudo(pu->insn, tmp, pu->userp); in simplify_phi_node() 65 pseudo_t tmp; in replace_phi_node() local 68 tmp = alloc_pseudo(NULL); in replace_phi_node() 69 tmp->type = phi->target->type; in replace_phi_node() 70 tmp->ident = phi->target->ident; in replace_phi_node() 71 tmp->def = NULL; // defined by all the phisrc in replace_phi_node() 74 simplify_phi_node(phi, tmp); in replace_phi_node() 87 def->target = tmp; in replace_phi_node() 99 insn->target = tmp; in replace_phi_node() [all …]
|
H A D | smatch_stored_conditions.c | 47 struct expression *tmp; in alloc_link_state() local 57 name = expr_to_str(tmp); in alloc_link_state() 65 } END_FOR_EACH_PTR(tmp); in alloc_link_state() 86 struct expression *tmp; in insert_expression() local 88 FOR_EACH_PTR(*list, tmp) { in insert_expression() 89 if (tmp == expr) in insert_expression() 91 } END_FOR_EACH_PTR(tmp); in insert_expression() 128 struct expression *tmp; in match_link_modify() local 134 name = expr_to_str(tmp); in match_link_modify() 137 } END_FOR_EACH_PTR(tmp); in match_link_modify() [all …]
|
H A D | check_param_mapper.c | 38 struct expression *tmp; in match_call() local 49 FOR_EACH_PTR(expr->args, tmp) { in match_call() 51 tmp = strip_expr(tmp); in match_call() 52 if (tmp->type != EXPR_SYMBOL) in match_call() 54 if (param_was_set(tmp)) in match_call() 56 arg_num = get_param_num_from_sym(tmp->symbol); in match_call() 60 } END_FOR_EACH_PTR(tmp); in match_call()
|
H A D | smatch_helper.c | 33 char *tmp; in alloc_string() local 38 strcpy(tmp, str); in alloc_string() 39 return tmp; in alloc_string() 44 char *tmp; in alloc_string_newline() local 52 return tmp; in alloc_string_newline() 271 char tmp[10]; in __get_variable_from_expr() local 291 char tmp[25]; in __get_variable_from_expr() local 302 char tmp[25]; in __get_variable_from_expr() local 342 char tmp[25]; in __get_variable_from_expr() local 580 *sym = tmp; in expr_to_chunk_helper() [all …]
|
H A D | smatch_constraints.c | 60 if (tmp->op == '<') in add_constraint() 77 } END_FOR_EACH_PTR(tmp); in add_constraint() 88 struct constraint *tmp; in merge_constraint_lists() local 91 FOR_EACH_PTR(one, tmp) { in merge_constraint_lists() 92 add_constraint(&ret, tmp->op, tmp->id); in merge_constraint_lists() 93 } END_FOR_EACH_PTR(tmp); in merge_constraint_lists() 95 FOR_EACH_PTR(two, tmp) { in merge_constraint_lists() 96 add_constraint(&ret, tmp->op, tmp->id); in merge_constraint_lists() 97 } END_FOR_EACH_PTR(tmp); in merge_constraint_lists() 105 struct constraint *tmp; in clone_constraint_list() local [all …]
|
H A D | smatch_scope.c | 41 struct statement *tmp; in match_end_of_block() local 47 FOR_EACH_PTR(stmt->stmts, tmp) { in match_end_of_block() 48 if (tmp->type != STMT_DECLARATION) in match_end_of_block() 51 FOR_EACH_PTR(tmp->declaration, sym) { in match_end_of_block() 56 } END_FOR_EACH_PTR(tmp); in match_end_of_block() 82 struct statement *tmp; in match_stmt() local 93 FOR_EACH_PTR(stmt_list, tmp) { in match_stmt() 94 match_end_of_block(tmp); in match_stmt() 95 } END_FOR_EACH_PTR(tmp); in match_stmt()
|
H A D | smatch_implied.c | 213 struct sm_state *tmp; in add_pool() local 231 struct sm_state *tmp; in pool_in_pools() local 234 if (!tmp->pool) in pool_in_pools() 244 struct sm_state *tmp; in remove_pool() local 329 struct sm_state *tmp; in is_checked() local 332 if (tmp == sm) in is_checked() 393 struct sm_state *tmp; in separate_pools() local 434 if (is_merged(tmp)) in sm_in_keep_leafs() 593 struct sm_state *tmp; in filter_stack() local 606 if (!tmp->merged || sm_in_keep_leafs(tmp, keep_stack)) in filter_stack() [all …]
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | symprof.pl | 662 $tmp = ''; 672 $tmp = 1059 $tmp = $1; 1068 $tmp = $1; 1118 ($tmp, $tmp2) = split(/\s+/, $tmp, 2); 1470 my $tmp; 1475 $tmp = $_; 1482 chomp($tmp); 1484 $tmp = $1; 1489 $tmp = $t; [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tiget.ed | 16 …ool/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $2, i++}' | sort > ./tmp/tiget.tmp 17 .r !cat ./tmp/tiget.tmp 25 …num/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $2, i++}' | sort > ./tmp/tiget.tmp 26 .r !cat ./tmp/tiget.tmp 34 …str/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $2, i++}' | sort > ./tmp/tiget.tmp 35 .r !cat ./tmp/tiget.tmp 36 !rm ./tmp/tiget.tmp
|
H A D | tifget.ed | 16 …ol/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp 17 .r !cat ./tmp/tifget.tmp 25 …um/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp 26 .r !cat ./tmp/tifget.tmp 34 …tr/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp 35 .r !cat ./tmp/tifget.tmp 36 !rm ./tmp/tifget.tmp
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | gen_unwind_functions.sh | 18 tmp=$(mktemp /tmp/smatch.XXXX) 19 tmp2=$(mktemp /tmp/smatch.XXXX) 23 grep "is unwind function" $file | cut -d ' ' -f 2 | cut -d '(' -f 1 >> $tmp 24 cat $tmp | sort -u > $tmp2 25 mv $tmp2 $tmp 26 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 27 rm $tmp
|
H A D | gen_sizeof_param.sh | 14 tmp=$(mktemp /tmp/smatch.XXXX) 15 tmp2=$(mktemp /tmp/smatch.XXXX) 22 sort -u | sed -e "s/'//g" > $tmp 24 sort -u | sed -e "s/'//g" >> $tmp 25 grep -f $remove $tmp >> $tmp2 2> /dev/null 26 cat $tmp $tmp2 2> /dev/null | sort | uniq -u >> $outfile 27 rm $tmp
|
H A D | gen_no_return_funcs.sh | 15 tmp=$(mktemp /tmp/smatch.XXXX) 16 tmp2=$(mktemp /tmp/smatch.XXXX) 23 grep no_return_funcs $file | cut -d ' ' -f 2 | cut -d '(' -f 1 > $tmp 25 cat $tmp | sort -u > $tmp2 26 mv $tmp2 $tmp 27 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 28 rm $tmp
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Handle.cc | 206 Handle *tmp = NULL; in findHandle() local 214 return (tmp); in findHandle() 232 Handle *tmp = NULL; in findHandle() local 239 return (tmp); in findHandle() 242 tmp = NULL; in findHandle() 245 if (tmp == NULL) { in findHandle() 248 return (tmp); in findHandle() 303 HBA_HANDLE tmp; in getHandle() local 308 return (tmp); in getHandle() 423 uint64_t tmp; in getPortAttributes() local [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/s1394/ |
H A D | s1394.c | 138 char str[512], tmp[512]; in print_node_info() local 155 (void) mdb_snprintf(tmp, sizeof (tmp), " %2d ", i); in print_node_info() 156 (void) strcat(str, tmp); in print_node_info() 163 (void) mdb_snprintf(tmp, sizeof (tmp), "----"); in print_node_info() 164 (void) strcat(str, tmp); in print_node_info() 181 (void) mdb_snprintf(tmp, sizeof (tmp), " %3d", in print_node_info() 183 (void) strcat(str, tmp); in print_node_info() 193 (void) mdb_snprintf(tmp, sizeof (tmp), in print_node_info() 195 (void) strcat(str, tmp); in print_node_info()
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/ |
H A D | fill_db_type_size.pl | 62 foreach my $tmp (@$union) { 64 push @return_union, $tmp; 68 if ($range{max} < $tmp->{min}) { 70 push @return_union, $tmp; 72 } elsif ($range{min} <= $tmp->{min}) { 73 if ($range{max} <= $tmp->{max}) { 74 $range{max} = $tmp->{max}; 79 if ($range{max} <= $tmp->{max}) { 80 push @return_union, $tmp; 83 $range{min} = $tmp->{min}; [all …]
|
H A D | fill_db_type_value.pl | 61 foreach my $tmp (@$union) { 63 push @return_union, $tmp; 67 if ($range{max} < $tmp->{min}) { 69 push @return_union, $tmp; 71 } elsif ($range{min} <= $tmp->{min}) { 72 if ($range{max} <= $tmp->{max}) { 73 $range{max} = $tmp->{max}; 78 if ($range{max} <= $tmp->{max}) { 79 push @return_union, $tmp; 82 $range{min} = $tmp->{min}; [all …]
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | display.c | 177 (void) snprintf(tmp, sizeof (tmp), "%s", reason); in print_statistics() 180 (void) snprintf(tmp, sizeof (tmp), "%llu", count); in print_statistics() 181 fill_space_left(tmp, WIDTH_COUNT, sizeof (tmp)); in print_statistics() 188 tmp, sizeof (tmp), WIDTH_AVG)); in print_statistics() 193 tmp, sizeof (tmp), WIDTH_MAX)); in print_statistics() 196 (void) snprintf(tmp, sizeof (tmp), "%.1f %%", in print_statistics() 200 (void) snprintf(tmp, sizeof (tmp), "--- "); in print_statistics() 203 fill_space_left(tmp, WIDTH_PCT, sizeof (tmp)); in print_statistics() 327 tmp, sizeof (tmp), 12)); in print_process() 526 tmp, sizeof (tmp), 12)); in print_thread() [all …]
|
H A D | dwrapper.c | 306 char *tmp; in aggwalk() local 315 if (tmp == NULL || strcmp(tmp, "lt") != 0) { in aggwalk() 319 tmp = strtok(NULL, "_"); in aggwalk() 321 if (tmp == NULL) { in aggwalk() 333 tmp = strtok(NULL, "_"); in aggwalk() 335 if (tmp == NULL) { in aggwalk() 375 FILE *tmp = NULL; in copy_tmp_file() local 389 (void) fclose(tmp); in copy_tmp_file() 405 char tmp[64]; in lt_dtrace_init() local 449 (void) snprintf(tmp, sizeof (tmp), "TRACE_PID=%u", in lt_dtrace_init() [all …]
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fchba.c | 96 uint64_t tmp; in wwnConversion() local 360 for (tmp = head; tmp->next != NULL; tmp = tmp->next) { } in add_path() 365 for (tmp = head; tmp != NULL; tmp = tmp->next) { in is_duplicate_path() 375 for (tmp = head; tmp != NULL; ) { in free_path_list() 377 free(tmp); in free_path_list() 455 char *tmp; in match_mappings() local 630 for (tmp = head; tmp != NULL; tmp = tmp->next) { in fchba_non_encl_probe() 780 if ((tmp != NULL) && (strncmp(physical, tmp, in fchba_inquiry() 1456 for (tmp = head; tmp != NULL; tmp = tmp->next_lun) { in add_lun_path() 1486 for (tmp = head; tmp->next_lun != NULL; tmp = tmp->next_lun) {} in add_lun_path() [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | progerr.c | 133 void *tmp; in xmalloc() local 135 if ((tmp = (void *) malloc(size)) == NULL) { in xmalloc() 139 return (tmp); in xmalloc() 159 void *tmp; in xrealloc() local 161 if ((tmp = (void *)realloc(ptr, size)) == (void *)NULL) { in xrealloc() 165 return (tmp); in xrealloc() 183 char *tmp; in xstrdup() local 188 if ((tmp = strdup(str)) == NULL) { in xstrdup() 192 return (tmp); in xstrdup()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_008_neg.ksh | 65 if [[ -e /tmp/$file ]]; then 66 rm -f /tmp/$file 68 if [[ -d /tmp/$dir ]]; then 69 rm -rf /tmp/$dir 110 mkdir /tmp/$dir 111 touch /tmp/$file 112 log_must zfs create -o mountpoint=/tmp/$dir $fs1 114 cd /tmp 137 log_must mount -F zfs $fs1 /tmp/$dir 141 umount /tmp/$dir
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | options.sh | 37 trap "cd /; rm -rf $tmp" EXIT 55 env=$tmp/.env 57 rc=$tmp/.kshrc 157 rm -rf $tmp/.kshrc 160 then cd $tmp 184 cd $tmp 223 rm -rf $tmp/.profile 410 do if pipe $tmp 418 > $tmp/.profile 436 histfile=$tmp/history [all …]
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | opl_olympus_asm.S | 581 mov tmp, sfsr ;\ 584 mov sfsr, tmp ;\ 586 rdpr %tl, tmp ;\ 588 rdpr %tt, tmp ;\ 590 mov sfsr, tmp ;\ 594 mov sfsr, tmp ;\ 672 or tmp, %lo(opl_clr_freg), tmp ;\ 784 ld [tmp + %lo(nwin_minus_one)], tmp ;\ 787 sub tmp, 1, tmp ;\ 819 RESET_WINREG(tmp) [all …]
|