Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/titanic_41/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c67 evConn *new; in evListen() local
70 OKNEW(new); in evListen()
71 new->flags = EV_CONN_LISTEN; in evListen()
72 OKFREE(mode = fcntl(fd, F_GETFL, NULL), new); /*%< side effect: validate fd. */ in evListen()
83 OKFREE(ioctl(fd, FIONBIO, (char *)&on), new); in evListen()
85 OKFREE(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK), new); in evListen()
87 new->flags |= EV_CONN_BLOCK; in evListen()
89 OKFREE(listen(fd, maxconn), new); in evListen()
90 if (evSelectFD(opaqueCtx, fd, EV_READ, listener, new, &new->file) < 0){ in evListen()
93 FREE(new); in evListen()
[all …]
H A Dev_waits.c55 evWait *new; in evWaitFor() local
58 OKNEW(new); in evWaitFor()
59 new->func = func; in evWaitFor()
60 new->uap = uap; in evWaitFor()
61 new->tag = tag; in evWaitFor()
62 new->next = NULL; in evWaitFor()
64 wl->last->next = new; in evWaitFor()
66 wl->first = new; in evWaitFor()
67 wl->last = new; in evWaitFor()
69 id->opaque = new; in evWaitFor()
[all …]
H A Dev_streams.c61 evStream *new; in evWrite() local
64 OKNEW(new); in evWrite()
65 new->func = func; in evWrite()
66 new->uap = uap; in evWrite()
67 new->fd = fd; in evWrite()
68 new->flags = 0; in evWrite()
69 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
71 if (copyvec(new, iov, iocnt) < 0) in evWrite()
73 new->prevDone = NULL; in evWrite()
74 new->nextDone = NULL; in evWrite()
[all …]
/titanic_41/usr/src/cmd/diff3/
H A Ddiff3prog.c59 struct diff {struct range old, new; }; member
222 dd[i].new.from = c; in readin()
223 dd[i].new.to = d; in readin()
226 dd[i].new.from = dd[i-1].new.to; in readin()
289 d1->new.from, d1->new.to, in merge()
291 d2->new.from, d2->new.to); in merge()
295 if (!t2 || t1 && d1->new.to < d2->new.from) { in merge()
300 keep(2, &d1->new); in merge()
301 change(3, &d1->new, 0); in merge()
308 if (!t1 || t2 && d2->new.to < d1->new.from) { in merge()
[all …]
/titanic_41/usr/src/cmd/powertop/common/
H A Dsuggestions.c68 sugg_t *new, *n, *pos = NULL; in pt_sugg_add() local
80 if ((new = calloc(1, sizeof (sugg_t))) == NULL) in pt_sugg_add()
84 new->sb_msg = strdup(sb_msg); in pt_sugg_add()
87 new->text = strdup(text); in pt_sugg_add()
89 new->weight = weight; in pt_sugg_add()
90 new->key = key; in pt_sugg_add()
91 new->func = func; in pt_sugg_add()
92 new->slice = 0; in pt_sugg_add()
94 sugg = new; in pt_sugg_add()
95 new->prev = NULL; in pt_sugg_add()
[all …]
/titanic_41/usr/src/cmd/sendmail/src/
H A Drecipient.c455 recipient(new, sendq, aliaslevel, e) in recipient() argument
456 register ADDRESS *new; in recipient()
479 initialdontsend = QS_IS_DEAD(new->q_state);
480 e->e_to = new->q_paddr;
481 m = new->q_mailer;
484 new->q_flags |= QPRIMARY;
488 printaddr(sm_debug_file(), new, false);
492 if (new->q_alias == NULL)
495 e->e_origrcpt = new->q_paddr;
496 else if (e->e_origrcpt != new->q_paddr)
[all …]
/titanic_41/usr/src/lib/libresolv2/common/sunw/
H A Dsunw_updrec.c46 old2new(ns_updrec *old, __ISC_ns_updrec *new) { in old2new() argument
49 if ((new->r_dname = strdup(old->r_dname)) == 0) in old2new()
52 new->r_dname = 0; in old2new()
55 new->r_glink.prev = in old2new()
56 new->r_glink.next = in old2new()
57 new->r_link.prev = in old2new()
58 new->r_link.next = 0; in old2new()
60 new->r_section = old->r_section; in old2new()
61 new->r_class = old->r_class; in old2new()
62 new->r_type = old->r_type; in old2new()
[all …]
/titanic_41/usr/src/lib/libidmap/common/
H A Didmap_cache.c804 sid2uid_gid_t *new; in idmap_cache_add_sid2uid() local
818 new = malloc(sizeof (sid2uid_gid_t)); in idmap_cache_add_sid2uid()
819 if (new == NULL) in idmap_cache_add_sid2uid()
821 new->sid_prefix = strdup(sid_prefix); in idmap_cache_add_sid2uid()
822 if (new->sid_prefix == NULL) { in idmap_cache_add_sid2uid()
823 free(new); in idmap_cache_add_sid2uid()
826 new->rid = rid; in idmap_cache_add_sid2uid()
827 new->uid = uid; in idmap_cache_add_sid2uid()
828 new->uid_ttl = ttl; in idmap_cache_add_sid2uid()
829 new->gid = UNDEF_GID; in idmap_cache_add_sid2uid()
[all …]
/titanic_41/usr/src/lib/libcurses/screen/
H A Ddupwin.c60 WINDOW *new; in dupwin() local
69 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in dupwin()
72 (void) memcpy(new, win, sizeof (WINDOW)); in dupwin()
76 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL) in dupwin()
81 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
87 free((char *)new->_firstch); in dupwin()
89 free((char *)new); in dupwin()
93 if (_image(new) == ERR) { in dupwin()
106 newcp = new->_y; in dupwin()
139 (void) memcpy((char *)new->_firstch, (char *)win->_firstch, in dupwin()
[all …]
/titanic_41/usr/src/uts/common/avs/ns/solaris/
H A Dnsc_list.c60 ls_ins_after(ls_elt_t *old, ls_elt_t *new) in ls_ins_after() argument
62 new->ls_next = old->ls_next; in ls_ins_after()
63 new->ls_prev = old; in ls_ins_after()
64 new->ls_next->ls_prev = new; in ls_ins_after()
65 new->ls_prev->ls_next = new; in ls_ins_after()
79 ls_ins_before(ls_elt_t *old, ls_elt_t *new) in ls_ins_before() argument
81 new->ls_prev = old->ls_prev; in ls_ins_before()
82 new->ls_next = old; in ls_ins_before()
83 new->ls_prev->ls_next = new; in ls_ins_before()
84 new->ls_next->ls_prev = new; in ls_ins_before()
H A Dnsc_ddi.c313 nsc_ddi_ls_ins_before(ls_elt_t *old, ls_elt_t *new) in nsc_ddi_ls_ins_before() argument
316 ls_ins_before(ls_elt_t *old, ls_elt_t *new) in nsc_ddi_ls_ins_before()
319 new->ls_prev = old->ls_prev; in nsc_ddi_ls_ins_before()
320 new->ls_next = old; in nsc_ddi_ls_ins_before()
321 new->ls_prev->ls_next = new; in nsc_ddi_ls_ins_before()
322 new->ls_next->ls_prev = new; in nsc_ddi_ls_ins_before()
335 nsc_ddi_ls_ins_after(ls_elt_t *old, ls_elt_t *new) in nsc_ddi_ls_ins_after() argument
338 ls_ins_after(ls_elt_t *old, ls_elt_t *new) in nsc_ddi_ls_ins_after()
341 new->ls_next = old->ls_next; in nsc_ddi_ls_ins_after()
342 new->ls_prev = old; in nsc_ddi_ls_ins_after()
[all …]
/titanic_41/usr/src/lib/libresolv2/include/
H A Dprobe_ipv6.sh12 new=new_${target}.h
34 cat > ${new} <<EOF
45 echo "#define HAS_INET6_STRUCTS" >> ${new}
50 echo "#define in6_addr in_addr6" >> ${new}
54 echo "#define HAVE_SIN6_SCOPE_ID" >> ${new}
56 echo "#undef HAVE_SIN6_SCOPE_ID" >> ${new}
59 echo "#undef HAS_INET6_STRUCTS" >> ${new}
61 echo >> ${new}
62 echo "#endif" >> ${new}
64 if cmp -s ${new} ${old} ; then
[all …]
/titanic_41/usr/src/lib/libprtdiag/common/
H A Dmemory.c225 memory_bank_t *new, *bank; in add_bank_node() local
229 if ((new = malloc(sizeof (memory_bank_t))) == NULL) { in add_bank_node()
234 new->portid = portid; in add_bank_node()
235 new->id = id++; in add_bank_node()
236 new->valid = (mc_decode >> 63); in add_bank_node()
237 new->uk = MC_UK(mc_decode); in add_bank_node()
238 new->um = MC_UM(mc_decode); in add_bank_node()
239 new->lk = MC_LK(mc_decode); in add_bank_node()
240 new->lm = MC_LM(mc_decode); in add_bank_node()
242 seg_size = ((((uint64_t)new->uk & MEM_UK_SIZE_MASK) + 1) << 26); in add_bank_node()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dzfs_rlock.c104 zfs_range_lock_writer(znode_t *zp, rl_t *new) in zfs_range_lock_writer() argument
110 uint64_t off = new->r_off; in zfs_range_lock_writer()
111 uint64_t len = new->r_len; in zfs_range_lock_writer()
130 if (new->r_type == RL_APPEND) in zfs_range_lock_writer()
131 new->r_off = zp->z_size; in zfs_range_lock_writer()
138 end_size = MAX(zp->z_size, new->r_off + len); in zfs_range_lock_writer()
141 new->r_off = 0; in zfs_range_lock_writer()
142 new->r_len = UINT64_MAX; in zfs_range_lock_writer()
150 new->r_type = RL_WRITER; /* convert to writer */ in zfs_range_lock_writer()
151 avl_add(tree, new); in zfs_range_lock_writer()
[all …]
/titanic_41/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_wr.c76 kmdb_wr_t *new = arg; in kmdb_wr_debugger_notify() local
79 new->wn_next = new->wn_prev = NULL; in kmdb_wr_debugger_notify()
91 mdb.m_dbgwrtail = new; in kmdb_wr_debugger_notify()
93 mdb.m_dbgwrhead = new; in kmdb_wr_debugger_notify()
103 new->wn_prev = curtail; in kmdb_wr_debugger_notify()
106 (uintptr_t)new) != (uintptr_t)curtail); in kmdb_wr_debugger_notify()
159 kmdb_wr_t *new = arg; in kmdb_wr_driver_notify() local
166 new->wn_next = new->wn_prev = NULL; in kmdb_wr_driver_notify()
167 mdb.m_drvwrhead = mdb.m_drvwrtail = new; in kmdb_wr_driver_notify()
169 mdb.m_drvwrtail->wn_next = new; in kmdb_wr_driver_notify()
[all …]
/titanic_41/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dvid_puts.c200 attr_t new = attr; in turn_off() local
204 new = WA_NORMAL; in turn_off()
209 new &= ~WA_UNDERLINE; in turn_off()
215 new &= ~WA_STANDOUT; in turn_off()
221 new &= ~WA_ALTCHARSET; in turn_off()
225 return new; in turn_off()
231 attr_t new = attr; in turn_on() local
236 new |= WA_ALTCHARSET; in turn_on()
241 new |= WA_BLINK; in turn_on()
246 new |= WA_BOLD; in turn_on()
[all …]
/titanic_41/usr/src/uts/common/idmap/
H A Didmap_cache.c490 sid2pid_t *new; in kidmap_cache_add_sid2uid() local
504 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
505 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
506 new->rid = rid; in kidmap_cache_add_sid2uid()
507 new->uid = uid; in kidmap_cache_add_sid2uid()
508 new->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
509 new->gid = UNDEF_GID; in kidmap_cache_add_sid2uid()
510 new->gid_ttl = 0; in kidmap_cache_add_sid2uid()
511 new->is_user = UNDEF_ISUSER; /* Unknown */ in kidmap_cache_add_sid2uid()
514 list_insert(&cache->sid2pid.head, new); in kidmap_cache_add_sid2uid()
[all …]
/titanic_41/usr/src/common/atomic/
H A Datomic.c362 atomic_cas_8(volatile uint8_t *target, uint8_t cmp, uint8_t new) in atomic_cas_8() argument
366 *target = new; in atomic_cas_8()
371 atomic_cas_uchar(volatile uchar_t *target, uchar_t cmp, uchar_t new) in atomic_cas_uchar() argument
375 *target = new; in atomic_cas_uchar()
380 atomic_cas_16(volatile uint16_t *target, uint16_t cmp, uint16_t new) in atomic_cas_16() argument
384 *target = new; in atomic_cas_16()
389 atomic_cas_ushort(volatile ushort_t *target, ushort_t cmp, ushort_t new) in atomic_cas_ushort() argument
393 *target = new; in atomic_cas_ushort()
398 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t new) in atomic_cas_32() argument
402 *target = new; in atomic_cas_32()
[all …]
/titanic_41/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dvid_puts.c186 attr_t new = attr; in turn_off() local
190 new = WA_NORMAL; in turn_off()
195 new &= ~WA_UNDERLINE; in turn_off()
201 new &= ~WA_STANDOUT; in turn_off()
207 new &= ~WA_ALTCHARSET; in turn_off()
211 return (new); in turn_off()
217 attr_t new = attr; in turn_on() local
222 new |= WA_ALTCHARSET; in turn_on()
228 new |= WA_BLINK; in turn_on()
234 new |= WA_BOLD; in turn_on()
[all …]
H A Dscr_dump.c76 WINDOW *new; in scr_replace() local
81 new = getwin(fp); in scr_replace()
84 if (new == NULL) in scr_replace()
87 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) { in scr_replace()
88 (void) delwin(new); in scr_replace()
96 new->_flags &= ~W_CLEAR_WINDOW; /* Removed default clear command */ in scr_replace()
97 *w = *new; in scr_replace()
105 new->_base = NULL; in scr_replace()
106 new->_line = NULL; in scr_replace()
107 new->_first = NULL; in scr_replace()
[all …]
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c194 struct groupnode *new; in newgroup() local
197 new = exmalloc(sizeof (*new)); in newgroup()
201 new->gr_name = newname; in newgroup()
202 new->gr_next = NULL; in newgroup()
203 *tail = new; in newgroup()
204 return (&new->gr_next); in newgroup()
211 struct exportnode *new; in newexport() local
214 new = exmalloc(sizeof (*new)); in newexport()
218 new->ex_dir = newname; in newexport()
219 new->ex_groups = grplist; in newexport()
[all …]
/titanic_41/usr/src/cmd/stat/common/
H A Dwalkers.c40 cpu_walk(struct snapshot *old, struct snapshot *new, in cpu_walk() argument
47 for (i = 0; i < new->s_nr_cpus; i++) { in cpu_walk()
49 struct cpu_snapshot *newcpu = &new->s_cpus[i]; in cpu_walk()
62 if ((new->s_types & SNAP_PSETS) && in cpu_walk()
73 pset_walk(struct snapshot *old, struct snapshot *new, in pset_walk() argument
80 while (old && i < old->s_nr_psets && j < new->s_nr_psets) { in pset_walk()
81 if (old->s_psets[i].ps_id < new->s_psets[j].ps_id) { in pset_walk()
85 } else if (old->s_psets[i].ps_id > new->s_psets[j].ps_id) { in pset_walk()
86 cb(NULL, &new->s_psets[j], data); in pset_walk()
90 cb(&old->s_psets[i], &new->s_psets[j], data); in pset_walk()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_013_pos.ksh49 if datasetexists $TESTPOOL/$TESTCTR@snap-new ; then
50 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap-new
57 if datasetexists $TESTPOOL@snap-new ; then
58 log_must $ZFS destroy -f $TESTPOOL@snap-new
72 log_must $ZFS rename -r $TESTPOOL/$TESTCTR@snap $TESTPOOL/$TESTCTR@snap-new
73 log_must datasetexists $TESTPOOL/$TESTCTR@snap-new
76 log_must $ZFS rename -r $TESTPOOL@snap $TESTPOOL@snap-new
77 log_must datasetexists $TESTPOOL/$TESTCTR@snap-new
78 log_must datasetexists $TESTPOOL@snap-new
80 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap-new
[all …]
/titanic_41/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_hash.c441 _sd_hash_replace(_sd_hash_hd_t *old, _sd_hash_hd_t *new, in _sd_hash_replace() argument
447 if ((old->hh_cd != new->hh_cd) || (old->hh_blk_num != new->hh_blk_num)) in _sd_hash_replace()
449 (void *)old, (void *)new); in _sd_hash_replace()
450 if (new->hh_hashed) in _sd_hash_replace()
452 (void *)new); in _sd_hash_replace()
455 hptr = _sd_hash_insert(new->hh_cd, new->hh_blk_num, new, table); in _sd_hash_replace()
473 hptr = _sd_hash_insert(new->hh_cd, new->hh_blk_num, new, table); in _sd_hash_replace()
480 new->hh_hashed = 1; in _sd_hash_replace()
481 new->hh_prev = old->hh_prev; in _sd_hash_replace()
482 new->hh_next = old->hh_next; in _sd_hash_replace()
[all …]
/titanic_41/usr/src/cmd/truss/
H A Dhtbl.c123 hentry_t *new; in add_fcall() local
148 new = (hentry_t *)my_malloc(sizeof (hentry_t), NULL); in add_fcall()
149 new->key = strdup(key); in add_fcall()
150 if (new->key == NULL) in add_fcall()
152 new->lib = strdup(lib); in add_fcall()
153 if (new->lib == NULL) in add_fcall()
155 new->count = cnt; in add_fcall()
156 new->prev = NULL; in add_fcall()
157 new->next = cur->first; in add_fcall()
158 tmp = new->next; in add_fcall()
[all …]

12345678910>>...43