Print this page
XXXX adding PID information to netstat output


 232 }
 233 
 234 void
 235 list_link_init(list_node_t *link)
 236 {
 237         link->list_next = NULL;
 238         link->list_prev = NULL;
 239 }
 240 
 241 int
 242 list_link_active(list_node_t *link)
 243 {
 244         return (link->list_next != NULL);
 245 }
 246 
 247 int
 248 list_is_empty(list_t *list)
 249 {
 250         return (list_empty(list));
 251 }
















 232 }
 233 
 234 void
 235 list_link_init(list_node_t *link)
 236 {
 237         link->list_next = NULL;
 238         link->list_prev = NULL;
 239 }
 240 
 241 int
 242 list_link_active(list_node_t *link)
 243 {
 244         return (link->list_next != NULL);
 245 }
 246 
 247 int
 248 list_is_empty(list_t *list)
 249 {
 250         return (list_empty(list));
 251 }
 252 
 253 uint64_t
 254 list_size(list_t *list)
 255 {
 256         size_t sz = 0;
 257         list_node_t *node;
 258 
 259         node = &list->list_head;
 260         while (node->list_next != &list->list_head) {
 261                 sz++;
 262                 node = node->list_next;
 263         }
 264         return (sz);
 265 }