Home
last modified time | relevance | path

Searched refs:new (Results 76 – 100 of 1043) sorted by relevance

12345678910>>...42

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c496 if (org == new || strcmp(torg, new) == 0 || in check_format()
497 strchr(new, '%') == NULL) in check_format()
498 return ((char *)new); in check_format()
511 nsz = strlen(new) * FORMAT_SIZE; in check_format()
518 nlen = extract_format(new, nfmt, nsz, strict); in check_format()
525 torg, new); in check_format()
535 torg, new); in check_format()
543 return ((char *)new); in check_format()
562 "\"%.100s\" -> \"%s\"", torg, new); in check_format()
569 return ((char *)new); in check_format()
[all …]
H A Dset_constraint_handler_s.c54 constraint_handler_t *new, *old, ret; in set_constraint_handler_s() local
56 new = malloc(sizeof (constraint_handler_t)); in set_constraint_handler_s()
57 if (new == NULL) in set_constraint_handler_s()
59 *new = handler; in set_constraint_handler_s()
62 _ch = new; in set_constraint_handler_s()
/illumos-gate/usr/src/uts/common/os/
H A Dmem_cage.c436 new->base = base; in kcage_range_add_internal()
437 new->lim = lim; in kcage_range_add_internal()
440 new->curr = new->lim; in kcage_range_add_internal()
442 new->curr = new->base; in kcage_range_add_internal()
456 *lpp = new; in kcage_range_add_internal()
588 new = vmem_alloc(kcage_arena, sizeof (*new), VM_NOSLEEP); in kcage_glist_alloc()
595 new = kmem_zalloc(sizeof (*new), KM_NOSLEEP); in kcage_glist_alloc()
598 if (new != NULL) in kcage_glist_alloc()
599 bzero(new, sizeof (*new)); in kcage_glist_alloc()
601 return (new); in kcage_glist_alloc()
[all …]
H A Dkdi.c115 kdi_dtrace_state_t new, cur; in kdi_dtrace_set() local
126 new = KDI_DTSTATE_DTRACE_ACTIVE; in kdi_dtrace_set()
133 new = KDI_DTSTATE_IDLE; in kdi_dtrace_set()
140 new = KDI_DTSTATE_KMDB_BPT_ACTIVE; in kdi_dtrace_set()
147 new = KDI_DTSTATE_IDLE; in kdi_dtrace_set()
152 } while (atomic_cas_32((uint_t *)&kdi_dtrace_state, cur, new) != cur); in kdi_dtrace_set()
H A Dlabelsys.c394 TNRHC_HOLD(new); in tnrh_hash_add()
422 if ((new = kmem_zalloc(sizeof (*new), KM_NOSLEEP)) == NULL) { in tnrh_load()
440 TNRHC_HOLD(new); in tnrh_load()
442 TNRHC_RELE(new); in tnrh_load()
1148 if ((new = kmem_zalloc(sizeof (*new), in find_rhc()
1162 rh = new; in find_rhc()
1235 new = kmem_zalloc(sizeof (*new), KM_SLEEP); in tsol_create_i_tnrh()
1245 rh = new; in tsol_create_i_tnrh()
1246 new = NULL; in tsol_create_i_tnrh()
1263 if (new != NULL) in tsol_create_i_tnrh()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/sol_ofs/
H A Dsol_ofs_common.h147 static inline void __llist_add(llist_head_t *new, llist_head_t *prv, in __llist_add() argument
150 nxt->prv = new; in __llist_add()
151 new->nxt = nxt; in __llist_add()
152 new->prv = prv; in __llist_add()
153 prv->nxt = new; in __llist_add()
155 static inline void llist_add(llist_head_t *new, llist_head_t *head) in llist_add() argument
157 __llist_add(new, head, head->nxt); in llist_add()
160 static inline void llist_add_tail(llist_head_t *new, llist_head_t *head) in llist_add_tail() argument
162 __llist_add(new, head->prv, head); in llist_add_tail()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drdisc.c353 struct rt_spare new; in rdisc_age() local
402 (void) memset(&new, 0, sizeof (new)); in rdisc_age()
407 new.rts_time = now.tv_sec; in rdisc_age()
421 (void) memset(&new, 0, sizeof (new)); in rdisc_age()
426 new.rts_time = now.tv_sec; in rdisc_age()
427 new.rts_origin = RO_RDISC; in rdisc_age()
576 struct rt_spare new, *rts; in rdisc_sort() local
713 (void) memset(&new, 0, sizeof (new)); in rdisc_sort()
718 new.rts_time = now.tv_sec; in rdisc_sort()
719 new.rts_origin = RO_RDISC; in rdisc_sort()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dds_drv.c541 if (new == NULL) { in ds_log_entry_alloc()
546 ASSERT(new); in ds_log_entry_alloc()
548 return (new); in ds_log_entry_alloc()
579 new->prev = new; in ds_log_add()
580 new->next = new; in ds_log_add()
587 new->next = head; in ds_log_add()
588 new->prev = tail; in ds_log_add()
589 tail->next = new; in ds_log_add()
590 head->prev = new; in ds_log_add()
598 new->datasz, DS_LOG_ENTRY_SZ(new)); in ds_log_add()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_eventq.c121 hrtime_t new, delta; in fmd_eventqstat_dispatch() local
126 new = gethrtime(); in fmd_eventqstat_dispatch()
127 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64; in fmd_eventqstat_dispatch()
128 eqs->eqs_wlastupdate.fmds_value.ui64 = new; in fmd_eventqstat_dispatch()
239 hrtime_t new, delta; in fmd_eventq_delete() local
283 new = gethrtime(); in fmd_eventq_delete()
286 eqs->eqs_wlastupdate.fmds_value.ui64 = new; in fmd_eventq_delete()
287 eqs->eqs_dlastupdate.fmds_value.ui64 = new; in fmd_eventq_delete()
313 hrtime_t new, delta; in fmd_eventq_done() local
317 new = gethrtime(); in fmd_eventq_done()
[all …]
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp_parse_helper.c242 sdp_list_t *new = NULL; in add_value_to_list() local
245 new = malloc(sizeof (sdp_list_t)); in add_value_to_list()
246 if (new == NULL) in add_value_to_list()
248 new->next = NULL; in add_value_to_list()
253 if (new->value == NULL) { in add_value_to_list()
254 free(new); in add_value_to_list()
258 (void) strncpy(new->value, value, len); in add_value_to_list()
261 len), new->value) != 0) { in add_value_to_list()
262 sdp_free_list(new); in add_value_to_list()
267 *list = new; in add_value_to_list()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcompile-i386.c1283 return new; in emit_compare()
1297 return new; in emit_value()
1339 return new; in emit_divide()
1435 return new; in emit_binop()
1580 return new; in emit_conditional_expr()
1609 return new; in emit_select_expr()
1625 new->pseudo, new->pseudo * 4); in emit_symbol_expr_init()
1646 return new; in emit_string_expr()
1669 return new; in emit_cast_expr()
1703 return new; in emit_regular_preop()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_proc.c417 mon_entry *new, *found; in insert_mon() local
441 free(new); in insert_mon()
453 free(new); in insert_mon()
459 (int)new, new->id.mon_id.mon_name, *((int *)new->id.priv)); in insert_mon()
490 new->nxt = new->prev = NULL; in insert_mon()
528 free(new); in insert_mon()
547 new->nxt = found->nxt; in insert_mon()
548 new->prev = found; in insert_mon()
550 found->nxt->prev = new; in insert_mon()
551 found->nxt = new; in insert_mon()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_funcs.c135 Prop *new; in dump_node() local
170 if ((new->name.opp.oprom_array = in dump_node()
178 new->name.opp.holds_array = 1; in dump_node()
192 new->value.opp.oprom_node[i] = in dump_node()
195 new->value.opp.holds_array = 0; in dump_node()
197 if ((new->value.opp.oprom_array = in dump_node()
217 new->value.opp.holds_array = 1; in dump_node()
220 new->size = temp->size; in dump_node()
224 node->props = new; in dump_node()
226 prop->next = new; in dump_node()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_map.c146 __nis_obj_attr_t *new; in cloneObjAttr() local
152 new = am(myself, sizeof (*new)); in cloneObjAttr()
153 if (new == 0) in cloneObjAttr()
171 return (new); in cloneObjAttr()
640 new = old; in map1qToLDAP()
698 if (new != 0) { in map1qToLDAP()
889 (new == 0 || new[iq] == 0)) in mapToLDAP()
923 (new != 0) ? new[iq] : 0, in mapToLDAP()
1012 (new != 0 && new[i/maxMatches] != 0) ? in mapToLDAP()
1018 if ((new != 0 && new[i/maxMatches] != 0) || delPerDbId) { in mapToLDAP()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_rename.c36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new) in pr_rename() argument
44 return (rename(old, new)); in pr_rename()
69 adp->arg_object = (void *)new; in pr_rename()
72 adp->arg_size = strlen(new) + 1; in pr_rename()
87 pr_link(struct ps_prochandle *Pr, const char *existing, const char *new) in pr_link() argument
95 return (link(existing, new)); in pr_link()
120 adp->arg_object = (void *)new; in pr_link()
123 adp->arg_size = strlen(new) + 1; in pr_link()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dresult.c704 new->lm_ber = ber;
727 *result = new;
753 *result = new;
762 new->lm_msgid, new->lm_msgtype, msgid );
765 POST( ld, new->lm_msgid, new );
771 new->lm_msgid, new->lm_msgtype, msgid );
812 l = new;
825 tmp->lm_chain = new;
831 new->lm_chain = tmp;
842 l = new;
[all …]
/illumos-gate/usr/src/cmd/stat/common/
H A Dacquire_iodevs.c48 new->is_id.id = cid; in make_controller()
51 (void) snprintf(new->is_name, sizeof (new->is_name), "c%d", cid); in make_controller()
53 return (new); in make_controller()
229 new->is_prev = new->is_next = NULL; in insert_before()
230 *list = new; in insert_before()
231 ix_new_list(new); in insert_before()
235 new->is_next = pos; in insert_before()
240 *list = new; in insert_before()
251 new->is_prev = new->is_next = NULL; in insert_after()
252 *list = new; in insert_after()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_008_pos.ksh53 if datasetexists ${datasets[$i]}@snap-new ; then
54 log_must zfs destroy ${datasets[$i]}@snap-new
78 log_must zfs rename -r ${TESTPOOL}@snap ${TESTPOOL}@snap-new
81 log_must datasetexists ${datasets[$i]}@snap-new
86 log_must zfs destroy -rf ${TESTPOOL}@snap-new
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c78 struct snapshot *new = NULL; in main() local
174 old = new; in main()
178 snapshot_report_changes(old, new); in main()
181 if (snapshot_has_changed(old, new)) { in main()
186 show_cpu_usage(old, new, display_agg); in main()
367 kstat_t *new = NULL; in get_nr_ticks() local
379 new = &p2->ps_cpus[i]->cs_sys; in get_nr_ticks()
384 if (old == NULL && new == NULL) in get_nr_ticks()
387 if (new == NULL) { in get_nr_ticks()
388 new = old; in get_nr_ticks()
[all …]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dsetgrp.c119 struct setgrp_elem *new; in cpc_setgrp_newset() local
128 if ((new = realloc(sgrp->sets, (1 + sgrp->nelem) * sizeof (*new))) in cpc_setgrp_newset()
135 sgrp->sets = new; in cpc_setgrp_newset()
215 cpc_setgrp_t *new; in cpc_setgrp_clone() local
218 new = emalloc(sizeof (*new)); in cpc_setgrp_clone()
221 new->nelem = old->nelem; in cpc_setgrp_clone()
222 new->current = old->current; in cpc_setgrp_clone()
223 new->cpc = old->cpc; in cpc_setgrp_clone()
224 new->sets = newa; in cpc_setgrp_clone()
225 new->smt = old->smt; in cpc_setgrp_clone()
[all …]
/illumos-gate/usr/src/uts/common/contract/
H A Dprocess.c149 ctmpl_process_t *new; in ctmpl_process_dup() local
155 new->ctp_ctmpl.ctmpl_data = new; in ctmpl_process_dup()
158 if (new->ctp_subsume) in ctmpl_process_dup()
171 return (&new->ctp_ctmpl); in ctmpl_process_dup()
441 ctmpl_process_t *new; in contract_process_default() local
444 ctmpl_init(&new->ctp_ctmpl, &ctmpl_process_ops, process_type, new); in contract_process_default()
446 new->ctp_subsume = NULL; in contract_process_default()
447 new->ctp_params = 0; in contract_process_default()
451 new->ctp_svc_fmri = NULL; in contract_process_default()
452 new->ctp_svc_aux = NULL; in contract_process_default()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c211 evEvent_p *new; in evGetNext() local
228 OKNEW(new); in evGetNext()
229 new->type = Accept; in evGetNext()
238 OKNEW(new); in evGetNext()
239 new->type = Stream; in evGetNext()
250 OKNEW(new); in evGetNext()
251 new->type = Wait; in evGetNext()
351 OKNEW(new); in evGetNext()
390 OKNEW(new); in evGetNext()
391 new->type = Timer; in evGetNext()
[all …]
/illumos-gate/usr/src/uts/common/io/urf/
H A Durf_usbgem.c382 uint8_t new; in urf_set_media() local
405 new |= MSR_TXFCE; in urf_set_media()
409 new |= MSR_RXFCE; in urf_set_media()
417 if (new != old) { in urf_set_media()
435 mblk_t *new; in urf_tx_make_packet() local
458 new->b_wptr = new->b_rptr + len; in urf_tx_make_packet()
459 bp = new->b_rptr; in urf_tx_make_packet()
471 mp = new; in urf_tx_make_packet()
682 uint_t new; in urf_attach_chip() local
701 if (new != old) { in urf_attach_chip()
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dtrigger3.test23 WHEN (new.a = 4) THEN RAISE(IGNORE) END;
27 WHEN (new.a = 1) THEN RAISE(ABORT, 'Trigger abort')
28 WHEN (new.a = 2) THEN RAISE(FAIL, 'Trigger fail')
29 WHEN (new.a = 3) THEN RAISE(ROLLBACK, 'Trigger rollback') END;
124 INSERT INTO tbl2 VALUES (new.a, new.b, new.c);
139 SELECT CASE WHEN (new.a = 1) THEN RAISE(ROLLBACK, 'View rollback')
140 WHEN (new.a = 2) THEN RAISE(IGNORE)
141 WHEN (new.a = 3) THEN RAISE(ABORT, 'View abort') END;
/illumos-gate/usr/src/cmd/look/
H A Dlook.c176 canon(char *old, char *new) in canon() argument
182 *new = c = *old++; in canon()
184 *new = 0; in canon()
193 *new += 'a' - 'A'; in canon()
195 new++; in canon()
198 *new = 0; in canon()

12345678910>>...42