new_list
bd->elist = new_list();
extern eplist_t *new_list(void);
const char **new_list;
new_list =
calloc(req_list_len + MAX_EXTRA_ATTRS + 1, sizeof (*new_list));
if (new_list == NULL)
(void) memcpy(new_list, req_list, req_list_len * sizeof (char *));
maybe_add_to_list(new_list, "sAMAccountName");
return (new_list);
if ((count + 1) % __list_increment == 0) { /* expand the list */ void **new_list = NULL;
new_list = (void **)calloc(new_size, sizeof (void *));
if (new_list == NULL)
new_list[count] = (*list)[count];
*list = new_list;
prctl_list_t *new_list, *old_list = global_rctl_list_head;
new_list = old_list->next;
old_list = new_list;
prev->l_next = new_list;
new_list->l_next = cur;
List *new_list;
if ((new_list = malloc(sizeof (List))) == NULL) {
new_list->l_dep = dep;
list_head = new_list;
new_list->l_next = NULL;
new_list->l_next = list_head;
list_head = new_list;
if ((new_list = alloc_list()) == NULL)
new_list->lp_simple = NULL;
new_list->lp_complex = complex;
new_list->lp_next = NULL;
list[num_prop_vals] = new_list;
last->lp_next = new_list;
static list_property_ptr_t new_list = NULL, tmp_list, last,
if ((new_list = alloc_list()) == NULL)
free_list(new_list);
new_list->lp_simple = retstr;
new_list->lp_complex = NULL;
new_list->lp_next = NULL;
list[num_prop_vals] = new_list;
last->lp_next = new_list;
dt_node_t *new_list = NULL;
new_list = dt_node_link(new_list, dnp);
yypcb->pcb_root->dn_list = new_list;
createDirServerList(dir_server_list_t **new_list,
if (new_list == NULL) {
*new_list = (dir_server_list_t *)calloc(1,
if (*new_list == NULL) {
(void) rwlock_init(&(*new_list)->listDestroyLock, USYNC_THREAD, NULL);
(*new_list)->nsServers = (dir_server_t **)calloc(srvListLength + 1,
if ((*new_list)->nsServers == NULL) {
free(*new_list);
*new_list = NULL;
(*new_list)->nsServers[i] = &tmpSrvArray[i];
(*new_list)->nsServers[i]->info = INFO_STATUS_NEW;
(void) mutex_init(&(*new_list)->nsServers[i]->updateStatus,
(*new_list)->nsServers[i]->ip = strdup(serverList[i]);
if ((*new_list)->nsServers[i]->ip == NULL) {
(*new_list)->nsServers[i]->status = INFO_SERVER_CONNECTING;
(*new_list)->nsServers[i],
(*new_list)->nsServers[i]->status =
(*new_list)->nsServers[i]->status =
(*new_list)->nsServers[i]->status =
(void) disposeOfOldList(*new_list);
dir_server_list_t *new_list, *old_list;
ret_code = createDirServerList(&new_list, error);
dir_servers.list = new_list;
move_into_list(soft_object_t **existing_list, soft_object_t **new_list,
insert_into_list(new_list, end_of_list, objp);
soft_object_t *new_list, soft_object_t *end_new_list)
if (new_list == NULL) {
*existing_list = new_list;
*existing_list = new_list;
void **new_list = NULL;
new_list = (void **)calloc(new_size, sizeof (void *));
if (new_list == NULL)
new_list[count] = (*list)[count];
*list = new_list;
void **new_list = NULL;
new_list = (void **)calloc(new_size, sizeof (void *));
if (new_list == NULL)
new_list[count] = list[count];
list = new_list;