/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | gen_rosenberg_funcs.sh | 18 tmp=$(mktemp /tmp/smatch.XXXX) 19 tmp2=$(mktemp /tmp/smatch.XXXX) 23 ${bin_dir}/trace_params.pl $file copy_to_user 1 >> $tmp 24 ${bin_dir}/trace_params.pl $file rds_info_copy 1 >> $tmp 25 ${bin_dir}/trace_params.pl $file nla_put 3 >> $tmp 27 ${bin_dir}/trace_params.pl $file __send_signal 1 >> $tmp 28 ${bin_dir}/trace_params.pl $file usb_bulk_msg 2 >> $tmp 30 cat $tmp | sort -u > $tmp2 31 mv $tmp2 $tmp 32 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile [all …]
|
H A D | gen_dma_funcs.sh | 18 tmp=$(mktemp /tmp/smatch.XXXX) 19 tmp2=$(mktemp /tmp/smatch.XXXX) 23 ${bin_dir}/trace_params.pl $file usb_control_msg 6 >> $tmp 24 ${bin_dir}/trace_params.pl $file usb_fill_bulk_urb 3 >> $tmp 25 ${bin_dir}/trace_params.pl $file dma_map_single 1 >> $tmp 26 cat $tmp | sort -u > $tmp2 27 mv $tmp2 $tmp 28 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 29 rm $tmp
|
H A D | gen_gfp_flags.sh | 18 tmp=$(mktemp /tmp/smatch.XXXX) 19 tmp2=$(mktemp /tmp/smatch.XXXX) 23 ${bin_dir}/trace_params.pl $file kmalloc 1 >> $tmp 24 ${bin_dir}/trace_params.pl $file kzalloc 1 >> $tmp 25 ${bin_dir}/trace_params.pl $file kcalloc 2 >> $tmp 26 cat $tmp | sort -u > $tmp2 27 mv $tmp2 $tmp 28 cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile 29 rm $tmp
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_stats.c | 344 uint32_t tmp; in hermon_kstat_cntr_update() local 422 tmp = sm_perfcntr.portrcv; in hermon_kstat_cntr_update() 443 tmp = sm_perfcntr.symerr; in hermon_kstat_cntr_update() 458 tmp = 0; /* XXX */ in hermon_kstat_cntr_update() 466 tmp = tmp - oldval; in hermon_kstat_cntr_update() 467 ksi->hki_pic0 += tmp; in hermon_kstat_cntr_update() 519 tmp = sm_perfcntr.symerr; in hermon_kstat_cntr_update() 534 tmp = 0; /* XXX */ in hermon_kstat_cntr_update() 542 tmp = tmp - oldval; in hermon_kstat_cntr_update() 543 ksi->hki_pic1 += tmp; in hermon_kstat_cntr_update() [all …]
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | table.c | 174 char *tmp; in parse_config_cmd() local 186 *tmp != '\0' && !isspace(*tmp); in parse_config_cmd() 187 ++tmp) { in parse_config_cmd() 190 *tmp = '\0'; in parse_config_cmd() 235 char *tmp; in parse_sym_trans() local 247 begin = tmp; in parse_sym_trans() 272 *tmp != '\0' && !isspace(*tmp); in parse_sym_trans() 273 ++tmp) { in parse_sym_trans() 280 *tmp = '\0'; in parse_sym_trans() 379 *tmp != '\0' && !isspace(*tmp); in parse_dmacro() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | fenv_inlines.h | 322 double tmp; in sse_sqrtss() local 347 double tmp; in sse_cvtss2sd() local 359 double tmp; in sse_cvtsi2ss() local 371 int tmp; in sse_cvttss2si() local 383 int tmp; in sse_cvtss2si() local 396 double tmp; in sse_cvtsi2ssq() local 535 double tmp; in sse_sqrtsd() local 559 double tmp; in sse_cvtsd2ss() local 571 double tmp; in sse_cvtsi2sd() local 582 int tmp; in sse_cvttsd2si() local [all …]
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | qdivrem.c | 83 union uu tmp; in ___qdivrem() local 97 tmp.ul[H] = tmp.ul[L] = 1 / zero; in ___qdivrem() 100 return (tmp.q); in ___qdivrem() 124 tmp.uq = uq; in ___qdivrem() 126 u[1] = HHALF(tmp.ul[H]); in ___qdivrem() 127 u[2] = LHALF(tmp.ul[H]); in ___qdivrem() 128 u[3] = HHALF(tmp.ul[L]); in ___qdivrem() 130 tmp.uq = vq; in ___qdivrem() 160 return (tmp.q); in ___qdivrem() 268 *arq = tmp.q; in ___qdivrem() [all …]
|
/illumos-gate/usr/src/stand/lib/sock/ |
H A D | sock_test.c | 371 char *tmp; in st_set_addr() local 375 if (tmp == NULL) { in st_set_addr() 393 char *tmp; in st_set_netmask() local 415 char *tmp; in st_set_router() local 441 char *tmp; in st_get_addr_and_port() local 492 char *tmp; in st_listen() local 629 char *tmp; in st_recv() local 665 char *tmp; in st_recvfrom() local 710 char *tmp; in st_echo() local 810 char *tmp; in st_setsockopt() local [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_common.kshlib | 56 runat $FILE1 cat $XATTR_NAME > /tmp/file1.$$ 57 runat $FILE2 cat $XATTR_NAME > /tmp/file2.$$ 59 log_must diff /tmp/file1.$$ /tmp/file2.$$ 60 log_must rm /tmp/file1.$$ /tmp/file2.$$ 70 log_must diff $XATTR_CONTENTS /tmp/$XATTR_NAME.$$ 71 rm /tmp/$XATTR_NAME.$$ 90 log_must dd if=/etc/passwd of=/tmp/passwd_dd.$$ 91 log_must diff /tmp/passwd_dd.$$ /tmp/$XATTR_NAME.$$ 92 log_must rm /tmp/passwd_dd.$$ /tmp/$XATTR_NAME.$$
|
H A D | xattr_004_pos.ksh | 53 if [ $( ismounted /tmp/ufs.$$ ufs ) ] 55 log_must umount /tmp/ufs.$$ 56 log_must rm -rf /tmp/ufs.$$ 67 log_must mkdir /tmp/ufs.$$ 71 log_must touch /tmp/ufs.$$/ufs-file.$$ 72 log_must touch /tmp/tmpfs-file.$$ 74 log_must runat /tmp/ufs.$$/ufs-file.$$ cp /etc/passwd . 75 log_must runat /tmp/tmpfs-file.$$ cp /etc/group . 78 log_must cp -@ /tmp/ufs.$$/ufs-file.$$ $TESTDIR 79 log_must cp -@ /tmp/tmpfs-file.$$ $TESTDIR [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_check_deref.c | 51 struct sm_state *tmp; in check_dereference() local 67 if (tmp->state == &merged) in check_dereference() 69 if (tmp->state == &ok) in check_dereference() 71 if (tmp->state == &null) { in check_dereference() 73 tmp->name, tmp->line); in check_dereference() 77 } END_FOR_EACH_PTR(tmp); in check_dereference() 83 struct sm_state *tmp; in check_dereference_name_sym() local 94 if (tmp->state == &merged) in check_dereference_name_sym() 96 if (tmp->state == &ok) in check_dereference_name_sym() 100 tmp->name, tmp->line); in check_dereference_name_sym() [all …]
|
H A D | smatch_function_hooks.c | 202 (tmp->u.call_back)(fn, expr, tmp->info); in call_call_backs() 217 (tmp->u.ranged)(fn, call_expr, assign_expr, tmp->info); in call_ranged_call_backs() 282 rl = alloc_rl(tmp->range->min, tmp->range->max); in assign_ranged_funcs() 330 (tmp->u.ranged)(fn, expr, NULL, tmp->info); in call_implies_callbacks() 343 (tmp->u.ranged)(fn, expr, NULL, tmp->info); in call_implies_callbacks() 433 if (tmp) in fake_a_param_assignment() 434 arg = tmp; in fake_a_param_assignment() 900 range_rl = alloc_rl(tmp->range->min, tmp->range->max); in call_ranged_return_hooks() 903 (tmp->u.ranged)(fn, expr, db_info->expr, tmp->info); in call_ranged_return_hooks() 1214 if (expr == tmp || expr_get_parent_expr(expr) == tmp) in is_condition_call() [all …]
|
H A D | smatch_address.c | 26 struct symbol *tmp; in is_non_null_array() local 53 if (!tmp->ident) in is_non_null_array() 60 } END_FOR_EACH_PTR(tmp); in is_non_null_array() 67 struct symbol *type, *tmp; in matches_anonymous_union() local 76 if (tmp->ident && in matches_anonymous_union() 80 } END_FOR_EACH_PTR(tmp); in matches_anonymous_union() 87 struct symbol *tmp; in get_member_offset() local 97 if (bits_to_bytes(bits + type_bits(tmp)) > tmp->ctype.alignment) { in get_member_offset() 102 if (tmp->ident && in get_member_offset() 108 if (!(type_bits(tmp) % 8) && type_bits(tmp) / 8 == type_bytes(tmp)) in get_member_offset() [all …]
|
H A D | check_puts_argument.c | 51 struct expression *tmp; in match_put() local 55 tmp = get_argument_from_call_expr(expr->args, 0); in match_put() 56 tmp = strip_expr(tmp); in match_put() 57 name = expr_to_var_sym(tmp, &sym); in match_put() 67 struct sm_state *tmp; in match_return() local 75 FOR_EACH_MY_SM(my_id, stree, tmp) { in match_return() 76 if (tmp->state == &putted) in match_return() 77 add_tracker(&putted_args, my_id, tmp->name, in match_return() 78 tmp->sym); in match_return() 79 } END_FOR_EACH_SM(tmp); in match_return() [all …]
|
H A D | check_deref.c | 67 struct sm_state *tmp; in check_dereference() local 83 if (tmp->state == &merged) in check_dereference() 85 if (tmp->state == &ok) in check_dereference() 88 if (tmp->state == &null) { in check_dereference() 99 tmp->name, tmp->state->name); in check_dereference() 101 } END_FOR_EACH_PTR(tmp); in check_dereference() 107 struct sm_state *tmp; in check_dereference_name_sym() local 120 if (tmp->state == &merged) in check_dereference_name_sym() 122 if (tmp->state == &ok) in check_dereference_name_sym() 136 tmp->name, tmp->state->name); in check_dereference_name_sym() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 145 tmp = libc_malloc(sizeof (*tmp)); in __priv_parse_info() 147 if (tmp == NULL) in __priv_parse_info() 150 (void) memset(tmp, 0, sizeof (*tmp)); in __priv_parse_info() 168 if (parseninfo(na, &tmp->pd_setnames, &tmp->pd_nsets)) in __priv_parse_info() 172 if (parseninfo(na, &tmp->pd_privnames, &tmp->pd_nprivs)) in __priv_parse_info() 179 tmp->pd_setsort = libc_malloc(tmp->pd_nprivs * in __priv_parse_info() 209 return (tmp); in __priv_parse_info() 214 libc_free(tmp); in __priv_parse_info() 263 if (tmp == NULL) in refresh_data() 346 tmp->pd_zoneset = __priv_allocset(tmp); in __priv_getdata() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/libstand/ |
H A D | ctime.c | 35 struct tm *tmp; in localtime() local 43 tmp = &tm; in localtime() 59 if (tmp->tm_wday < 0) in localtime() 60 tmp->tm_wday += DAYS_PER_WEEK; in localtime() 83 tmp->tm_year = y - TM_YEAR_BASE; in localtime() 84 tmp->tm_yday = (int)days; in localtime() 86 for (tmp->tm_mon = 0; days >= (long)ip[tmp->tm_mon]; ++(tmp->tm_mon)) in localtime() 87 days = days - (long)ip[tmp->tm_mon]; in localtime() 88 tmp->tm_mday = (int)(days + 1); in localtime() 89 tmp->tm_isdst = 0; in localtime() [all …]
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_util.c | 243 uint8_t tmp, lo; in ipmi_decode_string() local 281 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 285 tmp = (tmp << 2) | lo; in ipmi_decode_string() 286 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 290 tmp = (tmp << 4) | lo; in ipmi_decode_string() 291 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 294 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 299 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 303 *buf++ = (char)(tmp + 32); in ipmi_decode_string() 307 tmp = (tmp << 2) | lo; in ipmi_decode_string() [all …]
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | time.c | 93 struct tm *tmp; in gmtime() local 100 tmp = &result; in gmtime() 116 if (tmp->tm_wday < 0) in gmtime() 117 tmp->tm_wday += DAYS_PER_WEEK; in gmtime() 132 tmp->tm_year = y - TM_YEAR_BASE; in gmtime() 133 tmp->tm_yday = days; in gmtime() 135 for (tmp->tm_mon = 0; days >= ip[tmp->tm_mon]; ++(tmp->tm_mon)) in gmtime() 136 days = days - ip[tmp->tm_mon]; in gmtime() 137 tmp->tm_mday = (days + 1); in gmtime() 138 tmp->tm_isdst = 0; in gmtime() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | sha256.c | 48 zio_cksum_t tmp; in abd_checksum_SHA256() local 52 SHA2Final(&tmp, &ctx); in abd_checksum_SHA256() 61 zcp->zc_word[0] = BE_64(tmp.zc_word[0]); in abd_checksum_SHA256() 62 zcp->zc_word[1] = BE_64(tmp.zc_word[1]); in abd_checksum_SHA256() 63 zcp->zc_word[2] = BE_64(tmp.zc_word[2]); in abd_checksum_SHA256() 64 zcp->zc_word[3] = BE_64(tmp.zc_word[3]); in abd_checksum_SHA256() 84 zio_cksum_t tmp; in abd_checksum_SHA512_byteswap() local 87 zcp->zc_word[0] = BSWAP_64(tmp.zc_word[0]); in abd_checksum_SHA512_byteswap() 88 zcp->zc_word[1] = BSWAP_64(tmp.zc_word[1]); in abd_checksum_SHA512_byteswap() 89 zcp->zc_word[2] = BSWAP_64(tmp.zc_word[2]); in abd_checksum_SHA512_byteswap() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/pf_key/ |
H A D | acquire-compare.sh | 57 MONITOR_LOG=/tmp/ipseckey-monitor.$$ 145 $MONITOR_LOG > /tmp/egrep.$$ 146 grep $CURL_DST4_LPORT $MONITOR_LOG > /tmp/grep.$$ || { 150 diff /tmp/grep.$$ /tmp/egrep.$$ 160 mkdir /tmp/raw.$$ 162 cd /tmp/raw.$$ 169 egrep "DST:|SRC:|INS:|IND:" /tmp/raw.$$/0 > /tmp/extended-addresses.$$ 170 egrep "DST:|SRC:|INS:|IND:" /tmp/raw.$$/1 > /tmp/regular-addresses.$$ 174 diff /tmp/extended-addresses.$$ /tmp/regular-addresses.$$ 182 /bin/rm -rf /tmp/*-addresses.$$ /tmp/raw.$$ [all …]
|
/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm_event.c | 202 while (tmp->next) { in add_door_result() 203 tmp = tmp->next; in add_door_result() 220 while (tmp && tmp->seq_num != num) { in free_door_result() 221 prev = tmp; in free_door_result() 222 tmp = tmp->next; in free_door_result() 225 if (tmp == NULL) { in free_door_result() 239 free(tmp->data); in free_door_result() 240 free(tmp); in free_door_result() 395 while (tmp) { in revoke_event_service() 397 free(tmp->data); in revoke_event_service() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_xaction.c | 275 tmp = (sip_xaction_t *)obj; in sip_xaction_match() 281 SIP_XACTION_REFCNT_INCR(tmp); in sip_xaction_match() 294 sip_xaction_t *tmp; in sip_xaction_find() local 319 return (tmp); in sip_xaction_find() 490 tmp = (sip_xaction_t *)obj; in sip_xaction_remove() 495 if (tmp->sip_xaction_ref_cnt != 0) { in sip_xaction_remove() 511 free(tmp->sip_xaction_branch_id); in sip_xaction_remove() 514 tmp->sip_xaction_last_msg = NULL; in sip_xaction_remove() 518 tmp->sip_xaction_orig_msg = NULL; in sip_xaction_remove() 522 (void *)tmp); in sip_xaction_remove() [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vc_pow.c | 41 int stridey, float * restrict z, int stridez, float * restrict tmp) in __vc_pow() argument 46 __vc_log(n, x, stridex, tmp, 1); in __vc_pow() 51 r = y[j] * tmp[k] - y[j+1] * tmp[k+1]; in __vc_pow() 52 tmp[k+1] = y[j+1] * tmp[k] + y[j] * tmp[k+1]; in __vc_pow() 53 tmp[k] = r; in __vc_pow() 55 __vc_exp(n, tmp, 1, z, stridez, tmp + n + n); in __vc_pow()
|
H A D | __vz_pow.c | 41 int stridey, double * restrict z, int stridez, double * restrict tmp) in __vz_pow() argument 46 __vz_log(n, x, stridex, tmp, 1); in __vz_pow() 51 r = y[j] * tmp[k] - y[j+1] * tmp[k+1]; in __vz_pow() 52 tmp[k+1] = y[j+1] * tmp[k] + y[j] * tmp[k+1]; in __vz_pow() 53 tmp[k] = r; in __vz_pow() 55 __vz_exp(n, tmp, 1, z, stridez, tmp + n + n); in __vz_pow()
|