/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | sdt.c | 105 sdt_probe_t *sdp, *old; in sdt_provide_module() local 167 old = dtrace_probe_arg(prov->sdtp_id, id); in sdt_provide_module() 168 ASSERT(old != NULL); in sdt_provide_module() 170 sdp->sdp_next = old->sdp_next; in sdt_provide_module() 172 old->sdp_next = sdp; in sdt_provide_module() 194 sdt_probe_t *sdp = parg, *old, *last, *hash; in sdt_destroy() local 206 old = sdp; in sdt_destroy() 229 kmem_free(old, sizeof (sdt_probe_t)); in sdt_destroy()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | klpd.c | 167 klpd_reg_t *old = *listp; in klpd_link() local 171 ASSERT(old == NULL || *old->klpd_refp == old); in klpd_link() 175 if (old != NULL) { in klpd_link() 178 old->klpd_refp = NULL; in klpd_link() 179 return (old); in klpd_link() 709 klpd_reg_t *old; in crklpd_setreg() local 713 old = crk->crkl_reg; in crklpd_setreg() 714 if (old != NULL) in crklpd_setreg() 715 klpd_unlink(old); in crklpd_setreg() 721 if (old != NULL) in crklpd_setreg() [all …]
|
H A D | errorq.c | 524 errorq_elem_t *eep, *old; in errorq_dispatch() local 554 old = eqp->eq_pend; in errorq_dispatch() 555 eep->eqe_prev = old; in errorq_dispatch() 558 if (atomic_cas_ptr(&eqp->eq_pend, old, eep) == old) in errorq_dispatch() 910 errorq_elem_t *old; in errorq_commit() local 918 old = eqp->eq_pend; in errorq_commit() 919 eqep->eqe_prev = old; in errorq_commit() 922 if (atomic_cas_ptr(&eqp->eq_pend, old, eqep) == old) in errorq_commit()
|
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 246 our ($old, $new); 258 $oldpat = '"' . $old . '/'; 288 print "replacing $old with $new in /etc/path_to_inst\n"; 324 $targ =~ s/$old/$new/; 336 $oldpat = "/devices" . $old; 348 ($old, $new) = @_;
|
/illumos-gate/usr/src/lib/librstp/common/ |
H A D | stp_in.c | 706 UID_STP_CFG_T old; in STP_IN_stpm_set_cfg() local 709 if (0 != STP_IN_stpm_get_cfg (vlan_id, &old)) { in STP_IN_stpm_set_cfg() 710 STP_OUT_get_init_stpm_cfg (vlan_id, &old); in STP_IN_stpm_set_cfg() 719 old.max_age = uid_cfg->max_age; in STP_IN_stpm_set_cfg() 723 old.hello_time = uid_cfg->hello_time; in STP_IN_stpm_set_cfg() 727 old.forward_delay = uid_cfg->forward_delay; in STP_IN_stpm_set_cfg() 731 old.force_version = uid_cfg->force_version; in STP_IN_stpm_set_cfg() 734 rc = _check_stpm_config (&old); in STP_IN_stpm_set_cfg() 769 this->BrId.prio = old.bridge_priority; in STP_IN_stpm_set_cfg() 779 this->BrTimes.MaxAge = old.max_age; in STP_IN_stpm_set_cfg() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_nisdbquery.c | 128 cloneQuery(db_query *old, int numComps) { in cloneQuery() argument 133 if (old == 0) in cloneQuery() 140 if (old->components.components_len > numComps) in cloneQuery() 141 numComps = old->components.components_len; in cloneQuery() 157 old->components.components_val[i].which_index; in cloneQuery() 163 old->components.components_val[i].index_value-> in cloneQuery() 174 old->components.components_val[i].which_index; in cloneQuery() 727 __nis_value_t *tmpval, *old; in createNisPlusEntry() local 766 old = lval; in createNisPlusEntry() 767 lval = concatenateValues(old, tmpval); in createNisPlusEntry() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | util.c | 113 add_string(char *old, char *str) in add_string() argument 117 if (old) { in add_string() 125 if ((_str = strstr(old, str)) != NULL) { in add_string() 126 if (((_str == old) || in add_string() 131 return (old); in add_string() 134 len = strlen(old) + strlen(str) + 2; in add_string() 137 (void) snprintf(new, len, MSG_ORIG(MSG_FMT_COLPATH), old, str); in add_string()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_io.c | 338 krb5_rc_iostuff *old) in krb5_rc_io_move() argument 367 offset = lseek(old->fd, 0, SEEK_CUR); in krb5_rc_io_move() 376 old_fn = old->fn; in krb5_rc_io_move() 377 old->fn = NULL; in krb5_rc_io_move() 378 close(old->fd); in krb5_rc_io_move() 379 old->fd = -1; in krb5_rc_io_move() 401 if (rename(old->fn, new1->fn) == -1) /* MUST be atomic! */ in krb5_rc_io_move() 407 new1->fd = dup(old->fd); in krb5_rc_io_move()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | zalloc_malloc.c | 172 size_t old; in Realloc() local 178 old = g->ga_Bytes - MALLOCALIGN; in Realloc() 179 if (old < size) in Realloc() 180 bcopy(ptr, res, old); in Realloc()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_rename.c | 36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new) in pr_rename() argument 44 return (rename(old, new)); in pr_rename() 55 adp->arg_object = (void *)old; in pr_rename() 58 adp->arg_size = strlen(old) + 1; in pr_rename()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_param_limit.c | 135 struct smatch_state *state, *old; in print_return_value_param() local 156 old = get_state_stree(start_states, SMATCH_EXTRA, tmp->name, tmp->sym); in print_return_value_param() 157 if (old && rl_equiv(estate_rl(old), estate_rl(state))) in print_return_value_param()
|
H A D | flow.c | 30 struct basic_block *old, in rewrite_branch() argument 33 if (*ptr != old || new == old || !bb->ep) in rewrite_branch() 40 replace_bb_in_list(&bb->children, old, new, 1); in rewrite_branch() 41 remove_bb_from_list(&old->parents, bb, 1); in rewrite_branch() 597 static int rewrite_parent_branch(struct basic_block *bb, struct basic_block *old, struct basic_bloc… in rewrite_parent_branch() argument 606 if (old == new) in rewrite_parent_branch() 611 changed |= rewrite_branch(bb, &insn->bb_false, old, new); in rewrite_parent_branch() 614 changed |= rewrite_branch(bb, &insn->bb_true, old, new); in rewrite_parent_branch() 620 changed |= rewrite_branch(bb, &jmp->target, old, new); in rewrite_parent_branch()
|
H A D | ptrlist.c | 226 int old = head->nr, nr = old / 2; in split_ptr_list_head() local 230 old -= nr; in split_ptr_list_head() 231 head->nr = old; in split_ptr_list_head() 237 memcpy(newlist->list, head->list + old, nr * sizeof(void *)); in split_ptr_list_head() 238 memset(head->list + old, 0xf0, nr * sizeof(void *)); in split_ptr_list_head()
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 301 if (old == NULL) { in realloc() 311 tp = BLOCK(old); in realloc() 329 return (old); in realloc() 396 return (old); in realloc() 434 return (old); in realloc() 453 old = DATA(np); in realloc() 478 realfree(void *old) in realfree() argument 487 tp = BLOCK(old); in realfree() 1074 free(void *old) in free() argument 1085 if (old != NULL) in free_unlocked() [all …]
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_engine.c | 377 engine_state_t *old = est; in engine_source() local 384 est->sc_repo_pid = old->sc_repo_pid; in engine_source() 385 if (old->sc_repo_filename != NULL) in engine_source() 386 est->sc_repo_filename = safe_strdup(old->sc_repo_filename); in engine_source() 387 if (old->sc_repo_doordir != NULL) in engine_source() 388 est->sc_repo_doordir = safe_strdup(old->sc_repo_doordir); in engine_source() 389 if (old->sc_repo_doorname != NULL) in engine_source() 391 if (old->sc_repo_server != NULL) in engine_source() 392 est->sc_repo_server = safe_strdup(old->sc_repo_server); in engine_source() 449 if (est->sc_repo_pid != old->sc_repo_pid) in engine_source() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/ |
H A D | apply_return_fixes.sh | 17 while read func old new ; do 18 …echo "update return_states set return = '$new' where function = '$func' and return = '$old';" | sq…
|
/illumos-gate/usr/src/uts/common/io/ppm/ |
H A D | ppm.c | 1081 int old, new, ret, kmflag; in ppm_manage_cpus() local 1133 if (new < old) { in ppm_manage_cpus() 1143 if (new > old) { in ppm_manage_cpus() 1174 p->ppd_old_level = old; in ppm_manage_cpus() 1521 int new, old, cmpt; in ppm_manage_fet() local 1565 ASSERT(old == ppmd->level); in ppm_manage_fet() 1607 if (old == 0) { in ppm_manage_fet() 1943 int old, new, cmpt; in ppm_manage_pci() local 2011 if (old == 0) { in ppm_manage_pci() 2086 int old, new, cmpt; in ppm_manage_pcie() local [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | fc-fabric | 40 if [ -s /etc/cfg/fp/fabric_WWN_map.old ] 43 -f /etc/cfg/fp/fabric_WWN_map.old
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | conf.sh | 555 *VERSION*)old=${old}_${standard}${part} ;; 557 old=${old}_${name} 558 eval x='$'CONF_name_$old 560 ?*) eval CONF_name_$old= 561 eval flags='$'flags'$'CONF_flags_$old 562 eval values='$'CONF_values_$old 563 eval script='$'CONF_script_$old 564 eval args='$'CONF_args_$old 565 eval headers='$'CONF_headers_$old 616 old=${old}_${name} [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | signalfd.c | 47 int old = errno; in signalfd() local 49 errno = old; in signalfd()
|
/illumos-gate/usr/src/uts/common/io/urf/ |
H A D | urf_usbgem.c | 383 uint8_t old; in urf_set_media() local 394 IN(dp, MSR, &old, &err, usberr); in urf_set_media() 398 new = old & ~(MSR_TXFCE | MSR_RXFCE); in urf_set_media() 417 if (new != old) { in urf_set_media() 681 uint8_t old; in urf_attach_chip() local 690 IN(dp, URF_EEPROM_BASE + 9, &old, &err, usberr); in urf_attach_chip() 692 DPRINTF(0, (CE_CONT, "!%s: eeprom offset 9: %02x", dp->name, old)); in urf_attach_chip() 696 new = old | 0x04; in urf_attach_chip() 699 new = old & ~0x04; in urf_attach_chip() 701 if (new != old) { in urf_attach_chip()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | pci_mech2.c | 56 uint8_t old; in pci_mech2_config_enable() local 59 old = inb(PCI_CSE_PORT); in pci_mech2_config_enable() 65 return (old); in pci_mech2_config_enable()
|
/illumos-gate/usr/src/uts/common/io/comstar/port/fct/ |
H A D | fct.c | 1871 uint32_t old, new; in fct_alloc_cmd_slot() local 1962 uint32_t old, new; in fct_scsi_data_xfer_done() local 1979 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old); in fct_scsi_data_xfer_done() 2012 uint32_t old, new; in fct_send_response_done() local 2025 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old); in fct_send_response_done() 2092 old, new) != old); in fct_cmd_free() 2166 uint32_t old, new; in fct_scsi_abort() local 2181 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old); in fct_scsi_abort() 2902 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old); in fct_queue_scsi_task_for_termination() 3070 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old); in fct_q_for_termination_lock_held() [all …]
|
/illumos-gate/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalppm.c | 917 int old, new, ret, kmflag; in xcppm_manage_cpus() local 935 old = reqp->req.ppm_set_power_req.old_level; in xcppm_manage_cpus() 970 if (new < old) { in xcppm_manage_cpus() 980 if (new > old) { in xcppm_manage_cpus() 1011 p->ppd_old_level = old; in xcppm_manage_cpus() 1040 int new, old, cmpt, incr = 0; in xcppm_manage_fet() local 1068 str, ppmd->path, old, new)); in xcppm_manage_fet() 1070 ASSERT(old == ppmd->level); in xcppm_manage_fet() 1082 if (old == 0) { in xcppm_manage_fet() 1265 int new, old, cmpt; in xcppm_manage_1394() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | variables.sh | 72 old=$PWD 74 if [[ $OLDPWD != $old ]] 75 then err_exit "OLDPWD variable failed -- expected '$old', got '$OLDPWD'" 77 cd $old || err_exit cd failed 503 VAR=old 507 [[ $VAR == old ]] || err_exit "previously set local variable changed after script, expected 'old', … 509 export VAR=old 513 [[ $VAR == old ]] || err_exit "previously set environment variable changed after script, expected '…
|