Lines Matching refs:new_entry
322 struct entry *first = NULL, *last = NULL, *new_entry, *curr; in dumplist() local
326 new_entry = (struct entry *)malloc(sizeof (struct entry)); in dumplist()
327 if (new_entry == NULL) in dumplist()
329 new_entry->next = NULL; in dumplist()
330 new_entry->who = (char *)malloc(key.dsize); in dumplist()
331 if (new_entry->who == NULL) in dumplist()
333 new_entry->who_size = key.dsize; in dumplist()
334 (void) strlcpy(new_entry->who, key.dptr, key.dsize); in dumplist()
335 bcopy(content.dptr, (char *)&(new_entry->when), in dumplist()
336 sizeof (new_entry->when)); in dumplist()
337 new_entry->when_size = content.dsize; in dumplist()
339 new_entry->prev = NULL; in dumplist()
340 new_entry->next = NULL; in dumplist()
341 first = new_entry; in dumplist()
342 last = new_entry; in dumplist()
345 new_entry->when > curr->when; curr = curr->next) in dumplist()
348 last->next = new_entry; in dumplist()
349 new_entry->prev = last; in dumplist()
350 new_entry->next = NULL; in dumplist()
351 last = new_entry; in dumplist()
353 new_entry->next = curr; in dumplist()
354 new_entry->prev = curr->prev; in dumplist()
356 first = new_entry; in dumplist()
358 curr->prev->next = new_entry; in dumplist()
359 curr->prev = new_entry; in dumplist()