1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 56 unchanged lines hidden (view full) --- 65 break; 66 } 67 68 list_add(nextp, data); 69} 70 71/*ARGSUSED2*/ 72static int |
73list_defcmp(void *d1, void *d2, void *private __unused) |
74{ 75 return (d1 != d2); 76} 77 78void * 79list_remove(list_t **list, void *data, int (*cmp)(void *, void *, void *), 80 void *private) 81{ --- 48 unchanged lines hidden (view full) --- 130 list = lnext; 131 } 132 133 return (cumrc); 134} 135 136/*ARGSUSED*/ 137static int |
138list_count_cb(void *data __unused, void *private __unused) |
139{ 140 return (1); 141} 142 143int 144list_count(list_t *list) 145{ 146 return (list_iter(list, list_count_cb, NULL)); --- 82 unchanged lines hidden --- |