Home
last modified time | relevance | path

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

12345678910>>...42

/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c61 evConn *new; in evListen() local
64 OKNEW(new); in evListen()
65 new->flags = EV_CONN_LISTEN; in evListen()
66 OKFREE(mode = fcntl(fd, F_GETFL, NULL), new); /*%< side effect: validate fd. */ in evListen()
77 OKFREE(ioctl(fd, FIONBIO, (char *)&on), new); in evListen()
79 OKFREE(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK), new); in evListen()
81 new->flags |= EV_CONN_BLOCK; in evListen()
83 OKFREE(listen(fd, maxconn), new); in evListen()
84 if (evSelectFD(opaqueCtx, fd, EV_READ, listener, new, &new->file) < 0){ in evListen()
87 FREE(new); in evListen()
[all …]
H A Dev_waits.c51 evWait *new; in evWaitFor() local
54 OKNEW(new); in evWaitFor()
55 new->func = func; in evWaitFor()
56 new->uap = uap; in evWaitFor()
57 new->tag = tag; in evWaitFor()
58 new->next = NULL; in evWaitFor()
60 wl->last->next = new; in evWaitFor()
62 wl->first = new; in evWaitFor()
63 wl->last = new; in evWaitFor()
65 id->opaque = new; in evWaitFor()
[all …]
H A Dev_streams.c57 evStream *new; in evWrite() local
60 OKNEW(new); in evWrite()
61 new->func = func; in evWrite()
62 new->uap = uap; in evWrite()
63 new->fd = fd; in evWrite()
64 new->flags = 0; in evWrite()
65 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
67 if (copyvec(new, iov, iocnt) < 0) in evWrite()
69 new->prevDone = NULL; in evWrite()
70 new->nextDone = NULL; in evWrite()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Drecipient.c453 recipient(new, sendq, aliaslevel, e) in recipient() argument
454 register ADDRESS *new; in recipient()
477 initialdontsend = QS_IS_DEAD(new->q_state);
478 e->e_to = new->q_paddr;
479 m = new->q_mailer;
482 new->q_flags |= QPRIMARY;
486 printaddr(sm_debug_file(), new, false);
490 if (new->q_alias == NULL)
493 e->e_origrcpt = new->q_paddr;
494 else if (e->e_origrcpt != new->q_paddr)
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.c807 sid2uid_gid_t *new; in idmap_cache_add_sid2uid() local
821 new = malloc(sizeof (sid2uid_gid_t)); in idmap_cache_add_sid2uid()
822 if (new == NULL) in idmap_cache_add_sid2uid()
824 new->sid_prefix = strdup(sid_prefix); in idmap_cache_add_sid2uid()
825 if (new->sid_prefix == NULL) { in idmap_cache_add_sid2uid()
826 free(new); in idmap_cache_add_sid2uid()
829 new->rid = rid; in idmap_cache_add_sid2uid()
830 new->uid = uid; in idmap_cache_add_sid2uid()
831 new->uid_ttl = ttl; in idmap_cache_add_sid2uid()
832 new->gid = UNDEF_GID; in idmap_cache_add_sid2uid()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Ddupwin.c58 WINDOW *new; in dupwin() local
67 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in dupwin()
70 (void) memcpy(new, win, sizeof (WINDOW)); in dupwin()
74 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL) in dupwin()
79 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
85 free((char *)new->_firstch); in dupwin()
87 free((char *)new); in dupwin()
91 if (_image(new) == ERR) { in dupwin()
104 newcp = new->_y; in dupwin()
137 (void) memcpy((char *)new->_firstch, (char *)win->_firstch, in dupwin()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dmemory.c223 memory_bank_t *new, *bank; in add_bank_node() local
227 if ((new = malloc(sizeof (memory_bank_t))) == NULL) { in add_bank_node()
232 new->portid = portid; in add_bank_node()
233 new->id = id++; in add_bank_node()
234 new->valid = (mc_decode >> 63); in add_bank_node()
235 new->uk = MC_UK(mc_decode); in add_bank_node()
236 new->um = MC_UM(mc_decode); in add_bank_node()
237 new->lk = MC_LK(mc_decode); in add_bank_node()
238 new->lm = MC_LM(mc_decode); in add_bank_node()
240 seg_size = ((((uint64_t)new->uk & MEM_UK_SIZE_MASK) + 1) << 26); in add_bank_node()
[all …]
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_cache.c576 sid2pid_t *new; in kidmap_cache_add_sid2uid() local
592 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
593 new->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
594 new->rid = rid; in kidmap_cache_add_sid2uid()
595 new->uid = uid; in kidmap_cache_add_sid2uid()
596 new->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
597 new->gid = UNDEF_GID; in kidmap_cache_add_sid2uid()
598 new->gid_ttl = 0; in kidmap_cache_add_sid2uid()
599 new->is_user = UNDEF_ISUSER; /* Unknown */ in kidmap_cache_add_sid2uid()
602 list_insert(&sid2pid_hb->head, new); in kidmap_cache_add_sid2uid()
[all …]
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dprobe_ipv6.sh11 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 …]
/illumos-gate/usr/src/common/atomic/
H A Datomic.c360 atomic_cas_8(volatile uint8_t *target, uint8_t cmp, uint8_t new) in atomic_cas_8() argument
364 *target = new; in atomic_cas_8()
369 atomic_cas_uchar(volatile uchar_t *target, uchar_t cmp, uchar_t new) in atomic_cas_uchar() argument
373 *target = new; in atomic_cas_uchar()
378 atomic_cas_16(volatile uint16_t *target, uint16_t cmp, uint16_t new) in atomic_cas_16() argument
382 *target = new; in atomic_cas_16()
387 atomic_cas_ushort(volatile ushort_t *target, ushort_t cmp, ushort_t new) in atomic_cas_ushort() argument
391 *target = new; in atomic_cas_ushort()
396 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t new) in atomic_cas_32() argument
400 *target = new; in atomic_cas_32()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dvid_puts.c198 attr_t new = attr; in turn_off() local
202 new = WA_NORMAL; in turn_off()
207 new &= ~WA_UNDERLINE; in turn_off()
213 new &= ~WA_STANDOUT; in turn_off()
219 new &= ~WA_ALTCHARSET; in turn_off()
223 return new; in turn_off()
229 attr_t new = attr; in turn_on() local
234 new |= WA_ALTCHARSET; in turn_on()
239 new |= WA_BLINK; in turn_on()
244 new |= WA_BOLD; in turn_on()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_wr.c74 kmdb_wr_t *new = arg; in kmdb_wr_debugger_notify() local
77 new->wn_next = new->wn_prev = NULL; in kmdb_wr_debugger_notify()
89 mdb.m_dbgwrtail = new; in kmdb_wr_debugger_notify()
91 mdb.m_dbgwrhead = new; in kmdb_wr_debugger_notify()
101 new->wn_prev = curtail; in kmdb_wr_debugger_notify()
104 (uintptr_t)new) != (uintptr_t)curtail); in kmdb_wr_debugger_notify()
157 kmdb_wr_t *new = arg; in kmdb_wr_driver_notify() local
164 new->wn_next = new->wn_prev = NULL; in kmdb_wr_driver_notify()
165 mdb.m_drvwrhead = mdb.m_drvwrtail = new; in kmdb_wr_driver_notify()
167 mdb.m_drvwrtail->wn_next = new; in kmdb_wr_driver_notify()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dvid_puts.c184 attr_t new = attr; in turn_off() local
188 new = WA_NORMAL; in turn_off()
193 new &= ~WA_UNDERLINE; in turn_off()
199 new &= ~WA_STANDOUT; in turn_off()
205 new &= ~WA_ALTCHARSET; in turn_off()
209 return (new); in turn_off()
215 attr_t new = attr; in turn_on() local
220 new |= WA_ALTCHARSET; in turn_on()
226 new |= WA_BLINK; in turn_on()
232 new |= WA_BOLD; in turn_on()
[all …]
H A Dscr_dump.c74 WINDOW *new; in scr_replace() local
79 new = getwin(fp); in scr_replace()
82 if (new == NULL) in scr_replace()
85 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) { in scr_replace()
86 (void) delwin(new); in scr_replace()
94 new->_flags &= ~W_CLEAR_WINDOW; /* Removed default clear command */ in scr_replace()
95 *w = *new; in scr_replace()
103 new->_base = NULL; in scr_replace()
104 new->_line = NULL; in scr_replace()
105 new->_first = NULL; in scr_replace()
[all …]
/illumos-gate/usr/src/cmd/stat/common/
H A Dwalkers.c38 cpu_walk(struct snapshot *old, struct snapshot *new, in cpu_walk() argument
45 for (i = 0; i < new->s_nr_cpus; i++) { in cpu_walk()
47 struct cpu_snapshot *newcpu = &new->s_cpus[i]; in cpu_walk()
60 if ((new->s_types & SNAP_PSETS) && in cpu_walk()
71 pset_walk(struct snapshot *old, struct snapshot *new, in pset_walk() argument
78 while (old && i < old->s_nr_psets && j < new->s_nr_psets) { in pset_walk()
79 if (old->s_psets[i].ps_id < new->s_psets[j].ps_id) { in pset_walk()
83 } else if (old->s_psets[i].ps_id > new->s_psets[j].ps_id) { in pset_walk()
84 cb(NULL, &new->s_psets[j], data); in pset_walk()
88 cb(&old->s_psets[i], &new->s_psets[j], data); in pset_walk()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_rlock.c141 rangelock_enter_writer(rangelock_t *rl, locked_range_t *new) in rangelock_enter_writer() argument
146 uint64_t orig_off = new->lr_offset; in rangelock_enter_writer()
147 uint64_t orig_len = new->lr_length; in rangelock_enter_writer()
148 rangelock_type_t orig_type = new->lr_type; in rangelock_enter_writer()
157 rl->rl_cb(new, rl->rl_arg); in rangelock_enter_writer()
164 ASSERT3U(new->lr_type, ==, RL_WRITER); in rangelock_enter_writer()
170 avl_add(tree, new); in rangelock_enter_writer()
177 lr = avl_find(tree, new, &where); in rangelock_enter_writer()
183 lr->lr_offset < new->lr_offset + new->lr_length) in rangelock_enter_writer()
188 lr->lr_offset + lr->lr_length > new->lr_offset) in rangelock_enter_writer()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c192 struct groupnode *new; in newgroup() local
195 new = exmalloc(sizeof (*new)); in newgroup()
199 new->gr_name = newname; in newgroup()
200 new->gr_next = NULL; in newgroup()
201 *tail = new; in newgroup()
202 return (&new->gr_next); in newgroup()
209 struct exportnode *new; in newexport() local
212 new = exmalloc(sizeof (*new)); in newexport()
216 new->ex_dir = newname; in newexport()
217 new->ex_groups = grplist; in newexport()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_val.c47 __nis_mapping_format_t *new; in cloneMappingFormat() local
57 new = am(myself, nf * sizeof (new[0])); in cloneMappingFormat()
58 if (new == 0) in cloneMappingFormat()
62 memcpy(new, m, nf * sizeof (new[0])); in cloneMappingFormat()
68 new[i].match.string = sdup(myself, T, in cloneMappingFormat()
70 if (new[i].match.string == 0 && m[i].match.string != 0) in cloneMappingFormat()
74 new[i].match.single.lo = in cloneMappingFormat()
76 sizeof (new[i].match.single.lo[0])); in cloneMappingFormat()
77 new[i].match.single.hi = in cloneMappingFormat()
79 sizeof (new[i].match.single.hi[0])); in cloneMappingFormat()
[all …]
H A Dldap_attr.c121 char *new; in appendBase() local
137 new = sdup(myself, T, base); in appendBase()
138 if (new == 0) in appendBase()
140 return (new); in appendBase()
145 new = sdup(myself, T, item); in appendBase()
146 if (new == 0) in appendBase()
150 return (new); in appendBase()
157 new = sdup(myself, T, base); in appendBase()
158 if (new == 0) in appendBase()
162 return (new); in appendBase()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.c121 hentry_t *new; in add_fcall() local
146 new = (hentry_t *)my_malloc(sizeof (hentry_t), NULL); in add_fcall()
147 new->key = strdup(key); in add_fcall()
148 if (new->key == NULL) in add_fcall()
150 new->lib = strdup(lib); in add_fcall()
151 if (new->lib == NULL) in add_fcall()
153 new->count = cnt; in add_fcall()
154 new->prev = NULL; in add_fcall()
155 new->next = cur->first; in add_fcall()
156 tmp = new->next; in add_fcall()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/installf/
H A Dremovef.c48 struct cfextra *new; in removef() local
99 new = calloc(1, sizeof (struct cfextra)); in removef()
100 if (new == NULL) { in removef()
104 new->cf_ent.ftype = '-'; in removef()
106 (void) eval_path(&(new->server_path), &(new->client_path), in removef()
107 &(new->map_path), path); in removef()
109 new->cf_ent.path = new->client_path; in removef()
111 extlist[eptnum++] = new; in removef()

12345678910>>...42