Lines Matching refs:queue
216 logr_syslog_destroy_queue(list_t *queue)
220 while ((head = list_head(queue)) != NULL) {
221 list_remove(queue, head);
224 list_destroy(queue);
228 logr_syslog_construct_queue(FILE *fp, list_t *queue)
234 list_create(queue, sizeof (logr_syslog_node_t),
239 /* Read the last 1024 entries in the queue */
241 head = list_head(queue);
242 list_remove(queue, head);
247 logr_syslog_destroy_queue(queue);
253 list_insert_tail(queue, node);
276 list_t queue;
279 if (logr_syslog_construct_queue(fp, &queue) < 0)
282 node = list_head(&queue);
287 node = list_next(&queue, node);
294 node = list_next(&queue, node);
297 logr_syslog_destroy_queue(&queue);