Home
last modified time | relevance | path

Searched refs:new (Results 26 – 50 of 1043) sorted by relevance

12345678910>>...42

/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dscr_dump.c76 WINDOW *new; local
81 new = getwin(fp);
84 if (new == (WINDOW *) 0)
87 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) {
88 (void) delwin(new);
96 *w = *new;
104 new->_base = (cchar_t *) 0;
105 new->_line = (cchar_t **) 0;
106 new->_first = (short *) 0;
107 (void) delwin(new);
/illumos-gate/usr/src/uts/sun4u/io/
H A Dppm_xgsubr.c211 ppm_db_t *new; in ppm_create_db() local
249 new = kmem_zalloc(sizeof (*new), KM_SLEEP); in ppm_create_db()
260 new->plen = (wild - new->name); in ppm_create_db()
340 new = kmem_zalloc(sizeof (*new), KM_SLEEP); in ppm_add_dev()
343 new->domp = domp; in ppm_add_dev()
344 new->dip = dip; in ppm_add_dev()
345 new->cmpt = cmpt; in ppm_add_dev()
349 domp->devlist = new; in ppm_add_dev()
352 new->path, domp->name, (void *)new)); in ppm_add_dev()
355 ASSERT(new != NULL); in ppm_add_dev()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_007_pos.ksh96 log_must zfs rename $fs ${fs}-new
101 obj=$(target_obj ${fs}-new)
103 obj=$(target_obj ${fsclone}-new)
108 log_must zfs rename ${fs}-new $fs
109 log_must zfs rename $snap ${snap}-new
110 log_must zfs clone ${snap}-new $fsclone
129 log_must zfs rename $vol ${vol}-new
133 obj=$(target_obj ${vol}-new)
136 obj=$(target_obj ${volclone}-new)
141 log_must zfs rename ${vol}-new $vol
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.c201 if (!new) in add_pkg()
213 new->next = head; in add_pkg()
214 head = new; in add_pkg()
215 new = NULL; in add_pkg()
222 new = NULL; in add_pkg()
230 new->next = cur; in add_pkg()
231 cur = new; in add_pkg()
232 new = NULL; in add_pkg()
236 prev->next = new; in add_pkg()
237 new->next = cur; in add_pkg()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dhook.c890 if (new == NULL) in hook_family_add()
929 hook_wait_init(&new->hfi_waiter, &new->hfi_lock); in hook_family_add()
933 *store = new; in hook_family_add()
945 return (new); in hook_family_add()
1135 return (new); in hook_family_copy()
1320 if (new == NULL) in hook_event_add()
1361 hook_wait_init(&new->hei_waiter, &new->hei_lock); in hook_event_add()
1373 return (new); in hook_event_add()
1659 return (new); in hook_event_copy()
2299 new = (hook_int_t *)kmem_zalloc(sizeof (*new), KM_SLEEP); in hook_copy()
[all …]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c135 struct mnttab *new; in mntdup() local
137 new = (struct mnttab *)malloc(sizeof (*new)); in mntdup()
138 if (new == NULL) in mntdup()
141 new->mnt_special = NULL; in mntdup()
142 new->mnt_mountp = NULL; in mntdup()
143 new->mnt_fstype = NULL; in mntdup()
148 tsol_mnt_free(new); in mntdup()
153 tsol_mnt_free(new); in mntdup()
158 tsol_mnt_free(new); in mntdup()
163 tsol_mnt_free(new); in mntdup()
[all …]
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_list.c26 __list_add(struct mlist_head *new, struct mlist_head *prev, in __list_add() argument
29 next->prev = new; in __list_add()
30 new->next = next; in __list_add()
31 new->prev = prev; in __list_add()
32 prev->next = new; in __list_add()
44 mlist_add(struct mlist_head *new, struct mlist_head *head) in mlist_add() argument
46 __list_add(new, head, head->next); in mlist_add()
58 mlist_add_tail(struct mlist_head *new, struct mlist_head *head) in mlist_add_tail() argument
60 __list_add(new, head->prev, head); in mlist_add_tail()
/illumos-gate/usr/src/cmd/filesync/
H A Drename.c150 inum = new->f_info[side].f_ino; in find_oldname()
151 maj = new->f_info[side].f_d_maj; in find_oldname()
152 min = new->f_info[side].f_d_min; in find_oldname()
153 size = new->f_info[side].f_size; in find_oldname()
169 if (fp->f_info[OPT_BASE].f_type != new->f_info[side].f_type) in find_oldname()
218 note_rename(struct file *dirp, struct file *new, in note_rename() argument
225 dir = new->f_info[side].f_type == S_IFDIR; in note_rename()
230 dirp->f_name, old->f_name, dirp->f_name, new->f_name, in note_rename()
239 new->f_srcdiffs |= D_RENAME_TO; in note_rename()
242 new->f_dstdiffs |= D_RENAME_TO; in note_rename()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dtoken_store.c44 struct token *new; in copy_token() local
46 new = __alloc_perm_token(0); in copy_token()
47 memcpy(new, token, sizeof(*token)); in copy_token()
48 new->next = NULL; in copy_token()
49 return new; in copy_token()
78 *current = new; in insert_into_line()
82 if (new->pos.pos < (*current)->pos.pos) { in insert_into_line()
83 new->next = *current; in insert_into_line()
84 *current = new; in insert_into_line()
88 if (new->pos.pos == (*current)->pos.pos) in insert_into_line()
[all …]
H A Dshow-parse.c804 return new; in show_binop()
812 return new; in show_slice()
830 return new; in show_regular_preop()
847 return new; in show_load_gen()
959 return new; in show_symbol_expr()
998 return new; in show_cast_expr()
1007 return new; in show_value()
1016 return new; in show_fvalue()
1024 return new; in show_string_expr()
1031 return new; in show_label_expr()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Drwlock.c330 new = old | lock_wait; in rw_enter_sleep()
331 } while (old != new && casip(&lp->rw_wwwh, old, new) != old); in rw_enter_sleep()
408 uintptr_t old, new, lock_value; in rw_exit_wakeup() local
438 new = old - lock_value; in rw_exit_wakeup()
487 new |= RW_HAS_WAITERS; in rw_exit_wakeup()
489 new |= RW_WRITE_WANTED; in rw_exit_wakeup()
490 lp->rw_wwwh = new; in rw_exit_wakeup()
509 new |= RW_HAS_WAITERS; in rw_exit_wakeup()
511 new |= RW_WRITE_WANTED; in rw_exit_wakeup()
512 lp->rw_wwwh = new; in rw_exit_wakeup()
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_list.c41 ipmi_list_append(ipmi_list_t *lp, void *new) in ipmi_list_append() argument
44 ipmi_list_t *q = new; /* q = new list element */ in ipmi_list_append()
60 ipmi_list_prepend(ipmi_list_t *lp, void *new) in ipmi_list_prepend() argument
62 ipmi_list_t *p = new; /* p = new list element */ in ipmi_list_prepend()
79 ipmi_list_insert_before(ipmi_list_t *lp, void *before_me, void *new) in ipmi_list_insert_before() argument
82 ipmi_list_t *q = new; in ipmi_list_insert_before()
85 ipmi_list_prepend(lp, new); in ipmi_list_insert_before()
96 ipmi_list_insert_after(ipmi_list_t *lp, void *after_me, void *new) in ipmi_list_insert_after() argument
99 ipmi_list_t *q = new; in ipmi_list_insert_after()
102 ipmi_list_append(lp, new); in ipmi_list_insert_after()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_list.c48 fmd_list_append(fmd_list_t *lp, void *new) in fmd_list_append() argument
51 fmd_list_t *q = new; /* q = new list element */ in fmd_list_append()
67 fmd_list_prepend(fmd_list_t *lp, void *new) in fmd_list_prepend() argument
69 fmd_list_t *p = new; /* p = new list element */ in fmd_list_prepend()
86 fmd_list_insert_before(fmd_list_t *lp, void *before_me, void *new) in fmd_list_insert_before() argument
89 fmd_list_t *q = new; in fmd_list_insert_before()
92 fmd_list_prepend(lp, new); in fmd_list_insert_before()
103 fmd_list_insert_after(fmd_list_t *lp, void *after_me, void *new) in fmd_list_insert_after() argument
106 fmd_list_t *q = new; in fmd_list_insert_after()
109 fmd_list_append(lp, new); in fmd_list_insert_after()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_callb.c42 mdb_callb_t *new = mdb_zalloc(sizeof (mdb_callb_t), UM_SLEEP); in mdb_callb_add() local
46 new->cb_mod = m; in mdb_callb_add()
47 new->cb_class = class; in mdb_callb_add()
48 new->cb_func = fp; in mdb_callb_add()
49 new->cb_arg = arg; in mdb_callb_add()
52 mdb_list_prepend(&mdb.m_cblist, new); in mdb_callb_add()
54 mdb_list_insert(&mdb.m_cblist, m->mod_cb, new); in mdb_callb_add()
56 m->mod_cb = new; in mdb_callb_add()
59 return (new); in mdb_callb_add()
/illumos-gate/usr/src/lib/libxcurses/src/libc/i18n/
H A Dm_text.c61 char *new = strdup(s); in xlate() local
65 if (new == NULL) in xlate()
70 lastmsg = new; in xlate()
73 if (*new == '!') in xlate()
74 new++; in xlate()
77 for ( ; *new != '\0'; new++) in xlate()
78 *new = M_UNVARIANT(*new); in xlate()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_common.h40 #define cmp(old, new) \ argument
41 (((old)->cusec == (new)->cusec) && \
42 ((old)->ctime == (new)->ctime) && \
43 (strcmp((old)->client, (new)->client) == 0) && \
44 (strcmp((old)->server, (new)->server) == 0) ? CMP_REPLAY : CMP_HOHUM)
50 #define alive(context, new, t, time) \ argument
51 (((new)->ctime + (t)) < (time) ? CMP_EXPIRED : CMP_HOHUM)
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dmach_cpu_module.c570 atomic_cas_8(volatile uint8_t *target, uint8_t cmp, uint8_t new) in atomic_cas_8() argument
610 atomic_cas_ptr(volatile void *target, void *cmp, void *new) in atomic_cas_ptr() argument
615 atomic_swap_8(volatile uint8_t *target, uint8_t new) in atomic_swap_8() argument
620 atomic_swap_char(volatile uchar_t *target, uchar_t new) in atomic_swap_char() argument
625 atomic_swap_16(volatile uint16_t *target, uint16_t new) in atomic_swap_16() argument
630 atomic_swap_ushort(volatile ushort_t *target, ushort_t new) in atomic_swap_ushort() argument
635 atomic_swap_32(volatile uint32_t *target, uint32_t new) in atomic_swap_32() argument
640 atomic_swap_uint(volatile uint_t *target, uint_t new) in atomic_swap_uint() argument
645 atomic_swap_64(volatile uint64_t *target, uint64_t new) in atomic_swap_64() argument
650 atomic_swap_ptr(volatile void *target, void *new) in atomic_swap_ptr() argument
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dpathdup.c55 static struct dup *head, *tail, *new; variable
77 new = tail->next; in pathinit()
79 tail = new; in pathinit()
93 new = calloc(1, sizeof (struct dup)); in growstore()
94 if (new == NULL) { in growstore()
99 head = new; in growstore()
101 tail->next = new; in growstore()
102 tail = new; in growstore()
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Dio.c207 BerElement *new; in kmfber_dup() local
212 *new = *ber; in kmfber_dup()
214 return (new); in kmfber_dup()
306 struct berval *new; in kmfber_flatten() local
311 if (new == NULL) { in kmfber_flatten()
321 new->bv_val = NULL; in kmfber_flatten()
322 new->bv_len = 0; in kmfber_flatten()
327 kmfber_bvfree(new); in kmfber_flatten()
331 new->bv_val[len] = '\0'; in kmfber_flatten()
332 new->bv_len = len; in kmfber_flatten()
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_util.c41 ctf_list_append(ctf_list_t *lp, void *new) in ctf_list_append() argument
44 ctf_list_t *q = new; /* q = new list element */ in ctf_list_append()
61 ctf_list_prepend(ctf_list_t *lp, void *new) in ctf_list_prepend() argument
63 ctf_list_t *p = new; /* p = new list element */ in ctf_list_prepend()
80 ctf_list_t *new = nitem; in ctf_list_insert_before() local
83 lp->l_prev = new; in ctf_list_insert_before()
84 new->l_next = lp; in ctf_list_insert_before()
85 new->l_prev = prev; in ctf_list_insert_before()
87 prev->l_next = new; in ctf_list_insert_before()
90 head->l_next = new; in ctf_list_insert_before()
/illumos-gate/usr/src/common/atomic/amd64/
H A Datomic.S82 incb %al / return new value
93 incw %ax / return new value
104 incl %eax / return new value
115 incq %rax / return new value
158 decb %al / return new value
169 decw %ax / return new value
180 decl %eax / return new value
191 decq %rax / return new value
341 andb %al, %cl / %cl = new value
397 orb %al, %cl / %cl = new value
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dualarm.c30 struct itimerval new, old; in ualarm() local
32 new.it_interval.tv_usec = reload % USPS; in ualarm()
33 new.it_interval.tv_sec = reload / USPS; in ualarm()
35 new.it_value.tv_usec = usecs % USPS; in ualarm()
36 new.it_value.tv_sec = usecs / USPS; in ualarm()
38 if (setitimer(ITIMER_REAL, &new, &old) != 0) in ualarm()
H A Daddsev.c47 void *new; in addsev() local
69 new = libc_realloc(__pfmt_sev_tab, in addsev()
71 if (new == NULL) { in addsev()
76 __pfmt_sev_tab = new; in addsev()
87 new = libc_realloc(__pfmt_sev_tab[i].string, strlen(string) + 1); in addsev()
88 if (new == NULL) { in addsev()
93 __pfmt_sev_tab[i].string = new; in addsev()
/illumos-gate/usr/src/uts/common/io/mega_sas/
H A Dlist.h80 static void __list_add(struct mlist_head *new, in __list_add() argument
84 next->prev = new; in __list_add()
85 new->next = next; in __list_add()
86 new->prev = prev; in __list_add()
87 prev->next = new; in __list_add()
99 static void mlist_add(struct mlist_head *new, struct mlist_head *head) in mlist_add() argument
101 __list_add(new, head, head->next); in mlist_add()
113 static void mlist_add_tail(struct mlist_head *new, struct mlist_head *head) in mlist_add_tail() argument
115 __list_add(new, head->prev, head); in mlist_add_tail()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_tree.c98 if (!new) in profile_create_node()
102 if (new->name == 0) { in profile_create_node()
108 if (new->value == 0) { in profile_create_node()
115 *ret_node = new; in profile_create_node()
180 new->deleted = 0; in profile_add_node()
181 new->parent = section; in profile_add_node()
182 new->prev = last; in profile_add_node()
183 new->next = p; in profile_add_node()
185 p->prev = new; in profile_add_node()
187 last->next = new; in profile_add_node()
[all …]

12345678910>>...42