Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 3953) sorted by relevance

12345678910>>...159

/freebsd/usr.sbin/ppp/
H A Diplist.c56 iplist_first(struct iplist *list) in iplist_first() argument
58 list->cur.pos = -1; in iplist_first()
62 iplist_setrange(struct iplist *list, char *range) in iplist_setrange() argument
67 if (!inet_aton(range, &list->cur.ip)) in iplist_setrange()
69 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange()
70 list->cur.nItems = 1; in iplist_setrange()
72 if (!do_inet_aton(range, ptr, &list->cur.ip)) in iplist_setrange()
75 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange()
76 list->cur.nItems = 1; in iplist_setrange()
87 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_list.h49 #define ocs_list_set_list_magic list->magic = OCS_LIST_LIST_MAGIC
50 #define ocs_list_set_link_magic list->magic = OCS_LIST_LINK_MAGIC
83 #define item2link(list, item) ((ocs_list_t*) (((uint8_t*)(item)) + (list)->offset)) argument
86 #define link2item(list, link) ((void*) (((uint8_t*)(link)) - (list)->offset)) argument
100 _ocs_list_init(ocs_list_t *list, uint32_t offset) in _ocs_list_init() argument
102 ocs_list_assert(list); in _ocs_list_init()
105 list->next = list; in _ocs_list_init()
106 list->prev = list; in _ocs_list_init()
107 list->offset = offset; in _ocs_list_init()
120 ocs_list_empty(ocs_list_t *list) in ocs_list_empty() argument
[all …]
/freebsd/sys/kern/
H A Dsubr_eventhandler.c70 struct eventhandler_list *list, *new_list; in eventhandler_find_or_create_list() local
73 list = _eventhandler_find_list(name); in eventhandler_find_or_create_list()
76 if (list == NULL) { in eventhandler_find_or_create_list()
84 list = _eventhandler_find_list(name); in eventhandler_find_or_create_list()
85 if (list != NULL) { in eventhandler_find_or_create_list()
89 list = new_list; in eventhandler_find_or_create_list()
90 TAILQ_INIT(&list->el_entries); in eventhandler_find_or_create_list()
91 list->el_name = (char *)(list + 1); in eventhandler_find_or_create_list()
92 strcpy(list->el_name, name); in eventhandler_find_or_create_list()
93 mtx_init(&list->el_lock, list->el_name, "eventhandler list", in eventhandler_find_or_create_list()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dlist.h51 typedef struct list { struct
60 list_is_empty(list_t *list) in list_is_empty() argument
62 return (list_empty(&list->list_head)); in list_is_empty()
73 list_create(list_t *list, size_t size, size_t offset) in list_create() argument
77 list->list_offset = offset; in list_create()
78 INIT_LIST_HEAD(&list->list_head); in list_create()
82 list_destroy(list_t *list) in list_destroy() argument
84 list_del(&list->list_head); in list_destroy()
88 list_insert_head(list_t *list, void *object) in list_insert_head() argument
90 list_add(list_d2l(list, object), &list->list_head); in list_insert_head()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dlist.c41 #define list_insert_after_node(list, node, object) { \ argument
42 list_node_t *lnew = list_d2l(list, object); \
49 #define list_insert_before_node(list, node, object) { \ argument
50 list_node_t *lnew = list_d2l(list, object); \
63 list_create(list_t *list, size_t size, size_t offset) in list_create() argument
65 ASSERT3P(list, !=, NULL); in list_create()
70 list->list_offset = offset; in list_create()
71 list->list_head.list_next = list->list_head.list_prev = in list_create()
72 &list->list_head; in list_create()
76 list_destroy(list_t *list) in list_destroy() argument
[all …]
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dlist.c41 #define list_insert_after_node(list, node, object) { \ argument
42 list_node_t *lnew = list_d2l(list, object); \
49 #define list_insert_before_node(list, node, object) { \ argument
50 list_node_t *lnew = list_d2l(list, object); \
63 list_create(list_t *list, size_t size, size_t offset) in list_create() argument
65 ASSERT(list); in list_create()
71 list->list_offset = offset; in list_create()
72 list->list_head.next = list->list_head.prev = &list->list_head; in list_create()
76 list_destroy(list_t *list) in list_destroy() argument
78 list_node_t *node = &list->list_head; in list_destroy()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/
H A Dlist.h32 #define ISC_LIST_INIT(list) \ argument
33 do { (list).head = NULL; (list).tail = NULL; } while (0)
45 #define ISC_LIST_HEAD(list) ((list).head) argument
46 #define ISC_LIST_TAIL(list) ((list).tail) argument
47 #define ISC_LIST_EMPTY(list) ISC_TF((list).head == NULL) argument
49 #define __ISC_LIST_PREPENDUNSAFE(list, elt, link) \ argument
51 if ((list).head != NULL) \
52 (list).head->link.prev = (elt); \
54 (list).tail = (elt); \
56 (elt)->link.next = (list).head; \
[all …]
/freebsd/contrib/elftoolchain/ar/
H A Dacpyacc.y52 struct list { struct
54 struct list *next; argument
62 static void arscp_addlib(char *archive, struct list *list);
63 static void arscp_addmod(struct list *list);
66 static void arscp_delete(struct list *list);
67 static void arscp_dir(char *archive, struct list *list, char *rlt);
69 static void arscp_extract(struct list *list);
71 static void arscp_free_mlist(struct list *list);
73 static struct list *arscp_mlist(struct list *list, char *str);
74 static void arscp_mlist2argv(struct list *list);
[all …]
/freebsd/usr.bin/ar/
H A Dacpyacc.y49 struct list { struct
51 struct list *next; argument
58 static void arscp_addlib(char *archive, struct list *list);
59 static void arscp_addmod(struct list *list);
63 static void arscp_delete(struct list *list);
64 static void arscp_dir(char *archive, struct list *list, char *rlt);
66 static void arscp_extract(struct list *list);
68 static void arscp_free_mlist(struct list *list);
70 static struct list *arscp_mlist(struct list *list, char *str);
71 static void arscp_mlist2argv(struct list *list);
[all …]
/freebsd/usr.sbin/moused/moused/
H A Dutil-list.c33 list_init(struct list *list) in list_init() argument
35 list->prev = list; in list_init()
36 list->next = list; in list_init()
40 list_insert(struct list *list, struct list *elm) in list_insert() argument
42 assert((list->next != NULL && list->prev != NULL) || in list_insert()
47 elm->prev = list; in list_insert()
48 elm->next = list->next; in list_insert()
49 list->next = elm; in list_insert()
54 list_append(struct list *list, struct list *elm) in list_append() argument
56 assert((list->next != NULL && list->prev != NULL) || in list_append()
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dlist.h58 OSSL_LIST_DBG(struct ossl_list_st_##name *list) \
70 ossl_list_##name##_init(OSSL_LIST(name) * list) \
72 memset(list, 0, sizeof(*list)); \
81 ossl_list_##name##_is_empty(const OSSL_LIST(name) * list) \
83 return list->num_elems == 0; \
86 ossl_list_##name##_num(const OSSL_LIST(name) * list) \
88 return list->num_elems; \
91 ossl_list_##name##_head(const OSSL_LIST(name) * list) \
93 assert(list->alpha == NULL \
94 || list->alpha->ossl_list_##name.list == list); \
[all …]
/freebsd/sys/dev/qat/qat_api/common/ctrl/
H A Dsal_list.c17 SalList_add(sal_list_t **list, sal_list_t **tail, void *pObj) in SalList_add() argument
21 if (NULL == *list) { in SalList_add()
23 *list = malloc(sizeof(sal_list_t), M_QAT, M_WAITOK); in SalList_add()
24 (*list)->next = NULL; in SalList_add()
25 (*list)->pObj = pObj; in SalList_add()
26 *tail = *list; in SalList_add()
42 SalList_getObject(sal_list_t *list) in SalList_getObject() argument
44 if (list == NULL) { in SalList_getObject()
48 return list->pObj; in SalList_getObject()
52 SalList_delObject(sal_list_t **list) in SalList_delObject() argument
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dlist.h22 static inline void dl_list_init(struct dl_list *list) in dl_list_init() argument
24 list->next = list; in dl_list_init()
25 list->prev = list; in dl_list_init()
28 static inline void dl_list_add(struct dl_list *list, struct dl_list *item) in dl_list_add() argument
30 item->next = list->next; in dl_list_add()
31 item->prev = list; in dl_list_add()
32 list->next->prev = item; in dl_list_add()
33 list->next = item; in dl_list_add()
36 static inline void dl_list_add_tail(struct dl_list *list, struct dl_list *item) in dl_list_add_tail() argument
38 dl_list_add(list->prev, item); in dl_list_add_tail()
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dlist_test.c51 atf_list_t list; in ATF_TC_BODY() local
53 RE(atf_list_init(&list)); in ATF_TC_BODY()
54 ATF_REQUIRE_EQ(atf_list_size(&list), 0); in ATF_TC_BODY()
55 atf_list_fini(&list); in ATF_TC_BODY()
69 atf_list_t list; in ATF_TC_BODY() local
74 RE(atf_list_init(&list)); in ATF_TC_BODY()
75 RE(atf_list_append(&list, &i1, false)); in ATF_TC_BODY()
76 RE(atf_list_append(&list, &i2, false)); in ATF_TC_BODY()
77 RE(atf_list_append(&list, &i3, false)); in ATF_TC_BODY()
79 ATF_CHECK_EQ(*(int *)atf_list_index(&list, 0), 1); in ATF_TC_BODY()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_tpc.c90 struct tpc_list *list; member
161 struct tpc_list *list, *tlist; in tpc_timeout() local
166 TAILQ_FOREACH_SAFE(list, &lun->tpc_lists, links, tlist) { in tpc_timeout()
167 if (!list->completed || time_uptime < list->last_active + in tpc_timeout()
170 TAILQ_REMOVE(&lun->tpc_lists, list, links); in tpc_timeout()
171 free(list, M_CTL); in tpc_timeout()
229 struct tpc_list *list, *tlist; in ctl_tpc_lun_clear() local
231 TAILQ_FOREACH_SAFE(list, &lun->tpc_lists, links, tlist) { in ctl_tpc_lun_clear()
232 if (initidx != -1 && list->init_idx != initidx) in ctl_tpc_lun_clear()
234 if (!list->completed) in ctl_tpc_lun_clear()
[all …]
/freebsd/lib/libc/include/isc/
H A Dlist.h31 #define INIT_LIST(list) \ argument
32 do { (list).head = NULL; (list).tail = NULL; } while (0)
45 #define HEAD(list) ((list).head) argument
46 #define TAIL(list) ((list).tail) argument
47 #define EMPTY(list) ((list).head == NULL) argument
49 #define PREPEND(list, elt, link) \ argument
52 if ((list).head != NULL) \
53 (list).head->link.prev = (elt); \
55 (list).tail = (elt); \
57 (elt)->link.next = (list).head; \
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/common/
H A Dlist.c40 struct list { struct
42 struct list *l_next; argument
47 list_add(list_t **list, void *data) in list_add() argument
53 le->l_next = *list; in list_add()
54 *list = le; in list_add()
59 slist_add(list_t **list, void *data, int (*cmp)(void *, void *)) in slist_add() argument
63 for (nextp = list; *nextp; nextp = &((*nextp)->l_next)) { in slist_add()
79 list_remove(list_t **list, void *data, int (*cmp)(void *, void *, void *), in list_remove() argument
88 for (le = *list, le2 = list; le; le2 = &le->l_next, le = le->l_next) { in list_remove()
101 list_free(list_t *list, void (*datafree)(void *, void *), void *private) in list_free() argument
[all …]
/freebsd/contrib/dialog/
H A Ddialog.pl230 my ( $i, $tmp, $ent, $height, $listheight, $menuheight, @list );
240 @list = ();
243 $list[@list] = &quoted($ent);
245 $list[@list] = &quoted($ent);
265 . " $height $width $menuheight @list" );
270 my ( $i, $tmp, $ent, $height, $listheight, $menuheight, @list );
280 @list = ();
283 $list[@list] = &quoted($ent);
284 $list[@list] = &quoted("");
304 . " $height $width $menuheight @list" );
[all …]
H A Dfselect.c90 init_list(LIST * list, WINDOW *par, WINDOW *win, int mousex) in init_list() argument
92 list->par = par; in init_list()
93 list->win = win; in init_list()
94 list->length = 0; in init_list()
95 list->offset = 0; in init_list()
96 list->choice = 0; in init_list()
97 list->mousex = mousex; in init_list()
98 list->allocd = 0; in init_list()
99 list->data = 0; in init_list()
117 data_of(LIST * list) in data_of() argument
[all …]
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_image.c64 struct pt_section_list *list; in pt_mk_section_list() local
67 list = malloc(sizeof(*list)); in pt_mk_section_list()
68 if (!list) in pt_mk_section_list()
71 memset(list, 0, sizeof(*list)); in pt_mk_section_list()
77 pt_msec_init(&list->section, section, asid, vaddr, offset, size); in pt_mk_section_list()
78 list->isid = isid; in pt_mk_section_list()
80 return list; in pt_mk_section_list()
83 free(list); in pt_mk_section_list()
87 static void pt_section_list_free(struct pt_section_list *list) in pt_section_list_free() argument
89 if (!list) in pt_section_list_free()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dobjlist.c26 objlist_t *list = kmem_alloc(sizeof (*list), KM_SLEEP); in objlist_create() local
27 list_create(&list->ol_list, sizeof (objlist_node_t), in objlist_create()
29 list->ol_last_lookup = 0; in objlist_create()
30 return (list); in objlist_create()
34 objlist_destroy(objlist_t *list) in objlist_destroy() argument
36 for (objlist_node_t *n = list_remove_head(&list->ol_list); in objlist_destroy()
37 n != NULL; n = list_remove_head(&list->ol_list)) { in objlist_destroy()
40 list_destroy(&list->ol_list); in objlist_destroy()
41 kmem_free(list, sizeof (*list)); in objlist_destroy()
53 objlist_exists(objlist_t *list, uint64_t object) in objlist_exists() argument
[all …]
/freebsd/crypto/krb5/src/plugins/hostrealm/test/
H A Dmain.c59 char *word = NULL, **list = NULL, **newptr; in split_comps() local
71 newptr = realloc(list, (count + 2) * sizeof(*list)); in split_comps()
74 list = newptr; in split_comps()
75 list[count++] = word; in split_comps()
76 list[count] = NULL; in split_comps()
82 *realms_out = list; in split_comps()
86 krb5_free_host_realm(context, list); in split_comps()
95 char **list = NULL, *one = NULL, *two = NULL; in multi_defrealm() local
104 list = calloc(3, sizeof(*list)); in multi_defrealm()
105 if (list == NULL) in multi_defrealm()
[all …]
/freebsd/crypto/krb5/src/kdc/
H A Dauthind.c52 krb5_data **list = *indicators, *dptr, d; in authind_add() local
55 for (count = 0; list != NULL && list[count] != NULL; count++) { in authind_add()
56 if (data_eq_string(*list[count], ind)) in authind_add()
61 list = realloc(list, (count + 2) * sizeof(*list)); in authind_add()
62 if (list == NULL) in authind_add()
64 *indicators = list; in authind_add()
70 list[count++] = dptr; in authind_add()
71 list[count] = NULL; in authind_add()
84 krb5_data der_indicators, **strings = NULL, **list = *indicators; in authind_extract() local
86 for (count = 0; list != NULL && list[count] != NULL; count++); in authind_extract()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dplugin.c89 free_mapping_list(struct plugin_mapping **list) in free_mapping_list() argument
93 for (mp = list; mp != NULL && *mp != NULL; mp++) in free_mapping_list()
95 free(list); in free_mapping_list()
139 struct plugin_mapping **list; in register_module() local
143 list = interface->modules; in register_module()
144 for (count = 0; list != NULL && list[count] != NULL; count++); in register_module()
145 list = realloc(interface->modules, (count + 2) * sizeof(*list)); in register_module()
146 if (list == NULL) in register_module()
148 list[count] = list[count + 1] = NULL; in register_module()
149 interface->modules = list; in register_module()
[all …]
/freebsd/contrib/bmake/
H A Dlst.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
52 Lst_Done(List *list) in Lst_Done() argument
56 for (ln = list->first; ln != NULL; ln = next) { in Lst_Done()
63 Lst_DoneFree(List *list) in Lst_DoneCall() argument
67 for (ln = list->first; ln != NULL; ln = next) { in Lst_DoneCall()
76 Lst_InsertBefore(List *list, ListNode *ln, void *datum) in Lst_InsertBefore() argument
88 if (ln == list->first) in Lst_InsertBefore()
89 list->first = newNode; in Lst_InsertBefore()
92 /* Add a piece of data at the start of the given list
94 Lst_Prepend(List * list,void * datum) Lst_Prepend() argument
113 Lst_Append(List * list,void * datum) Lst_Append() argument
135 Lst_Remove(List * list,ListNode * ln) Lst_Remove() argument
177 Lst_FindDatum(List * list,const void * datum) Lst_FindDatum() argument
234 Lst_Dequeue(List * list) Lst_Dequeue() argument
[all...]

12345678910>>...159