Home
last modified time | relevance | path

Searched refs:newlist (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c227 struct ptr_list *newlist = __alloc_ptrlist(0); in split_ptr_list_head() local
232 newlist->next = next; in split_ptr_list_head()
233 next->prev = newlist; in split_ptr_list_head()
234 newlist->prev = head; in split_ptr_list_head()
235 head->next = newlist; in split_ptr_list_head()
236 newlist->nr = nr; in split_ptr_list_head()
237 memcpy(newlist->list, head->list + old, nr * sizeof(void *)); in split_ptr_list_head()
258 struct ptr_list *newlist; in __add_ptr_list() local
261 newlist = __alloc_rl_ptrlist(0); in __add_ptr_list()
263 newlist = __alloc_ptrlist(0); in __add_ptr_list()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutil.c165 struct str_list newlist; /* modules to be pushed */ in vml() local
170 newlist.sl_modlist = newmods; in vml()
171 newlist.sl_nmods = NSTRPUSH; in vml()
188 (void) strncpy(newlist.sl_modlist[i].l_name, modp, FMNAMESZ); in vml()
189 newlist.sl_modlist[i].l_name[FMNAMESZ] = '\0'; in vml()
194 newlist.sl_nmods = i; in vml()
208 if ((i = ioctl(fd, SAD_VML, &newlist)) < 0) { in vml()
/illumos-gate/usr/src/cmd/streams/strcmd/
H A Dstrchg.c125 struct str_list newlist; /* modules to be pushed */ in main() local
136 newlist.sl_modlist = newmods; in main()
137 newlist.sl_nmods = NMODULES; in main()
323 (void) strncpy(newlist.sl_modlist[i].l_name, in main()
337 if (i > newlist.sl_nmods) in main()
338 if (more_modules(&newlist, i) != SUCCESS) in main()
341 newlist.sl_nmods = i; in main()
362 for (i = newlist.sl_nmods - 1; i >= 0; --i) { in main()
363 if (push_module(newlist.sl_modlist[i].l_name) == in main()
370 restore((newlist.sl_nmods - 1 - i), in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_common.kshlib123 typeset newlist=""
136 newlist="$newlist $dtst"
142 for i in $newlist; do
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/
H A Dkconf.c85 char *newstr, **newlist; in add_to_list() local
90 newlist = realloc(list->list, newmax * sizeof (char *)); in add_to_list()
91 if (newlist == NULL) in add_to_list()
94 list->list = newlist; in add_to_list()
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_known_wlan.c166 struct nwam_wlan_info **newlist = NULL; in get_wlans_cb() local
172 if ((newlist = realloc(list, in get_wlans_cb()
174 (newlist[num_wlans - 1] = calloc(1, in get_wlans_cb()
176 if (newlist != NULL) in get_wlans_cb()
177 free(newlist); in get_wlans_cb()
182 wil->list = newlist; in get_wlans_cb()
186 &((newlist[num_wlans - 1])->wlan_name))) != NWAM_SUCCESS || in get_wlans_cb()
190 &((newlist[num_wlans - 1])->wlan_priority))) != NWAM_SUCCESS) { in get_wlans_cb()
191 free(newlist[num_wlans - 1]->wlan_name); in get_wlans_cb()
193 free(newlist[num_wlans - 1]); in get_wlans_cb()
[all …]
H A Dlibnwam_values.c387 nwam_dup_object_list(void *oldlist, void *newlist) in nwam_dup_object_list() argument
391 assert(oldlist != NULL && newlist != NULL); in nwam_dup_object_list()
393 if ((nverr = nvlist_dup(oldlist, newlist, 0)) != 0) in nwam_dup_object_list()
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c64 char **newlist; in copy_list() local
75 newlist = calloc(1, (i + 1) * sizeof(*newlist)); in copy_list()
76 if (newlist == NULL) in copy_list()
80 newlist[i] = strdup(src[i]); in copy_list()
81 if (newlist[i] == NULL) in copy_list()
84 newlist[i] = NULL; in copy_list()
85 *dst = newlist; in copy_list()
88 free_list(newlist); in copy_list()
/illumos-gate/usr/src/uts/common/syscall/
H A Dpoll.c1046 pcacheset_cmp(pollfd_t *current, pollfd_t *cached, pollfd_t *newlist, int n) in pcacheset_cmp() argument
1063 if (newlist != NULL) in pcacheset_cmp()
1064 newlist[ix].events = current[ix].events; in pcacheset_cmp()
1585 pollfd_t *newlist = NULL; in pcacheset_resolve() local
1613 newlist = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); in pcacheset_resolve()
1614 bcopy(current, newlist, sizeof (pollfd_t) * nfds); in pcacheset_resolve()
1630 np = (newlist != NULL) ? &newlist[count] : NULL; in pcacheset_resolve()
1651 if (newlist != NULL) { in pcacheset_resolve()
1652 newlist[count].events = in pcacheset_resolve()
1696 if (newlist != NULL) { in pcacheset_resolve()
[all …]
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctpsubr.c100 struct sctp_sa_id *newlist, *oldlist; in sosctp_aid_grow() local
108 newlist = kmem_alloc(newcnt * sizeof (struct sctp_sa_id), kmflags); in sosctp_aid_grow()
110 if (newlist == NULL) { in sosctp_aid_grow()
115 kmem_free(newlist, newcnt * sizeof (struct sctp_sa_id)); in sosctp_aid_grow()
120 ss->ss_assocs = newlist; in sosctp_aid_grow()
123 bcopy(oldlist, newlist, oldcnt * sizeof (struct sctp_sa_id)); in sosctp_aid_grow()
124 bzero(newlist + oldcnt, in sosctp_aid_grow()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c72 char *newstr, **newlist; in add_to_list() local
77 newlist = realloc(list->list, newmax * sizeof(char *)); in add_to_list()
78 if (newlist == 0) in add_to_list()
81 list->list = newlist; in add_to_list()
/illumos-gate/usr/src/uts/common/disp/
H A Dcpupart.c326 cpu_t *ncp, *newlist; in cpupart_move_cpu() local
494 newlist = newpp->cp_cpulist; in cpupart_move_cpu()
495 if (newlist == NULL) { in cpupart_move_cpu()
500 cp->cpu_next_part = newlist; in cpupart_move_cpu()
501 cp->cpu_prev_part = newlist->cpu_prev_part; in cpupart_move_cpu()
502 newlist->cpu_prev_part->cpu_next_part = cp; in cpupart_move_cpu()
503 newlist->cpu_prev_part = cp; in cpupart_move_cpu()
/illumos-gate/usr/src/cmd/biosdev/
H A Dbiosdev.c137 char **newlist; in new_disk_list_entry() local
147 newlist = (char **)realloc(disk_list, newsize); in new_disk_list_entry()
148 if (newlist == NULL) { in new_disk_list_entry()
152 disk_list = newlist; in new_disk_list_entry()
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c344 uf_entry_t *src, *dst, *newlist, *oldlist, *newend, *oldend; in flist_grow() local
350 newlist = kmem_zalloc(newcnt * sizeof (uf_entry_t), KM_SLEEP); in flist_grow()
356 kmem_free(newlist, newcnt * sizeof (uf_entry_t)); in flist_grow()
362 newend = newlist + oldcnt; /* no need to lock beyond old end */ in flist_grow()
380 for (dst = newlist; dst < newend; dst++) in flist_grow()
383 for (src = oldlist, dst = newlist; src < oldend; src++, dst++) { in flist_grow()
401 fip->fi_list = newlist; in flist_grow()
421 for (dst = newlist; dst < newend; dst++) in flist_grow()
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c449 pk11_delete_obj_from_list(OBJLIST **newlist, in pk11_delete_obj_from_list() argument
453 if (*curr == *newlist) { in pk11_delete_obj_from_list()
455 *newlist = (*curr)->next; in pk11_delete_obj_from_list()
458 *curr = *newlist; in pk11_delete_obj_from_list()
489 OBJLIST *newlist, *tail; in search_certs() local
525 newlist = NULL; in search_certs()
531 tail = newlist = NULL; in search_certs()
546 if (newlist == NULL) { in search_certs()
547 newlist = malloc(sizeof (OBJLIST)); in search_certs()
548 if (newlist == NULL) { in search_certs()
[all …]
/illumos-gate/usr/src/uts/i86xpv/io/psm/
H A Dxpv_psm.c1020 physdev_manage_pci_t manage_pci, *newlist; in xen_manage_device() local
1058 newlist = kmem_alloc(sizeof (physdev_manage_pci_t) * mdev_size, in xen_manage_device()
1060 if (newlist == NULL) { in xen_manage_device()
1064 bcopy(managed_devlist, newlist, oldsize); in xen_manage_device()
1066 managed_devlist = newlist; in xen_manage_device()
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c646 char **newlist, /* New devices to lock */ in putlocks() argument
664 pp = newlist; in putlocks()
/illumos-gate/usr/src/tools/scripts/
H A Dnightly985 newlist=
988 newlist="$ISUSER $dir $newlist"
995 newdirlist="$newlist $newdirlist"
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipf_y.y64 static int newlist = 0; variable
454 lstart: '(' { newlist = 1; fr = frc; added = 0; }
460 lmore: lanother { if (newlist == 1) {
461 newlist = 0;
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2685 char **newlist = NULL; in sdev_modctl_readdir() local
2745 newlist = (char **) in sdev_modctl_readdir()
2749 bcopy(pathlist, newlist, in sdev_modctl_readdir()
2754 pathlist = newlist; in sdev_modctl_readdir()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_objset.c1577 multilist_t *newlist = dn->dn_objset->os_synced_dnodes; in dmu_objset_sync_dnodes() local
1578 if (newlist != NULL) { in dmu_objset_sync_dnodes()
1579 (void) dnode_add_ref(dn, newlist); in dmu_objset_sync_dnodes()
1580 multilist_insert(newlist, dn); in dmu_objset_sync_dnodes()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dqueue.c3171 WORK *newlist = (WORK *) sm_realloc((char *) WorkList, local
3174 if (newlist != NULL)
3177 WorkList = newlist;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c3035 struct iflist *newlist = NULL; in if_report() local
3128 struct iflist **nextnew = &newlist; in if_report()
3330 oldlist = newlist; in if_report()