Lines Matching refs:new_entry
317 struct entry *first = NULL, *last = NULL, *new_entry, *curr; in dumplist() local
321 new_entry = (struct entry *)malloc(sizeof (struct entry)); in dumplist()
322 if (new_entry == NULL) in dumplist()
324 new_entry->next = NULL; in dumplist()
325 new_entry->who = (char *)malloc(key.dsize); in dumplist()
326 if (new_entry->who == NULL) in dumplist()
328 new_entry->who_size = key.dsize; in dumplist()
329 (void) strlcpy(new_entry->who, key.dptr, key.dsize); in dumplist()
330 bcopy(content.dptr, (char *)&(new_entry->when), in dumplist()
331 sizeof (new_entry->when)); in dumplist()
332 new_entry->when_size = content.dsize; in dumplist()
334 new_entry->prev = NULL; in dumplist()
335 new_entry->next = NULL; in dumplist()
336 first = new_entry; in dumplist()
337 last = new_entry; in dumplist()
340 new_entry->when > curr->when; curr = curr->next) in dumplist()
343 last->next = new_entry; in dumplist()
344 new_entry->prev = last; in dumplist()
345 new_entry->next = NULL; in dumplist()
346 last = new_entry; in dumplist()
348 new_entry->next = curr; in dumplist()
349 new_entry->prev = curr->prev; in dumplist()
351 first = new_entry; in dumplist()
353 curr->prev->next = new_entry; in dumplist()
354 curr->prev = new_entry; in dumplist()