| /NextBSD/usr.sbin/ppp/ |
| HD | iplist.c | 56 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 …]
|
| /NextBSD/usr.bin/mklocale/ |
| HD | yacc.y | 84 rune_list *list; member 100 %type <list> list 101 %type <list> map 135 | LIST list 145 list : RUNE 159 | list RUNE 166 | list RUNE THRU RUNE 306 set_map(rune_map *map, rune_list *list, uint32_t flag) in set_map() argument 308 while (list) { in set_map() 309 rune_list *nlist = list->next; in set_map() [all …]
|
| /NextBSD/lib/libasl/ |
| HD | asl_msg_list.c | 67 asl_msg_list_retain(asl_msg_list_t *list) in asl_msg_list_retain() argument 69 if (list == NULL) return NULL; in asl_msg_list_retain() 70 asl_retain((asl_object_t)list); in asl_msg_list_retain() 71 return list; in asl_msg_list_retain() 75 asl_msg_list_release(asl_msg_list_t *list) in asl_msg_list_release() argument 77 if (list == NULL) return; in asl_msg_list_release() 78 asl_release((asl_object_t)list); in asl_msg_list_release() 82 asl_msg_list_to_string(asl_msg_list_t *list, uint32_t *len) in asl_msg_list_to_string() argument 89 if (list == NULL) return NULL; in asl_msg_list_to_string() 90 if (list->count == 0) return NULL; in asl_msg_list_to_string() [all …]
|
| /NextBSD/contrib/apr-util/buckets/ |
| HD | apr_buckets_alloc.c | 46 apr_bucket_alloc_t *list = data; in alloc_cleanup() local 48 apr_allocator_free(list->allocator, list->blocks); in alloc_cleanup() 51 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) { in alloc_cleanup() 52 apr_allocator_destroy(list->allocator); in alloc_cleanup() 62 apr_bucket_alloc_t *list; in apr_bucket_alloc_create() local 75 list = apr_bucket_alloc_create_ex(allocator); in apr_bucket_alloc_create() 76 if (list == NULL) { in apr_bucket_alloc_create() 82 list->pool = p; in apr_bucket_alloc_create() 83 apr_pool_cleanup_register(list->pool, list, alloc_cleanup, in apr_bucket_alloc_create() 86 return list; in apr_bucket_alloc_create() [all …]
|
| /NextBSD/contrib/groff/src/preproc/eqn/ |
| HD | list.cpp | 38 list.append(pp); in append() 40 for (int i = 0; i < q->list.len; i++) { in append() 41 list.append(q->list.p[i]); in append() 42 q->list.p[i] = 0; in append() 44 q->list.len = 0; in append() 49 list_box::list_box(box *pp) : list(pp), sty(-1) in list_box() 54 list.p[0] = q->list.p[0]; in list_box() 55 for (int i = 1; i < q->list.len; i++) { in list_box() 56 list.append(q->list.p[i]); in list_box() 57 q->list.p[i] = 0; in list_box() [all …]
|
| /NextBSD/sys/kern/ |
| HD | subr_eventhandler.c | 72 eventhandler_register_internal(struct eventhandler_list *list, in eventhandler_register_internal() argument 85 if (list == NULL) { in eventhandler_register_internal() 87 list = _eventhandler_find_list(name); in eventhandler_register_internal() 90 if (list == NULL) { in eventhandler_register_internal() 98 list = _eventhandler_find_list(name); in eventhandler_register_internal() 99 if (list != NULL) { in eventhandler_register_internal() 103 list = new_list; in eventhandler_register_internal() 104 list->el_flags = 0; in eventhandler_register_internal() 105 list->el_runcount = 0; in eventhandler_register_internal() 106 bzero(&list->el_lock, sizeof(list->el_lock)); in eventhandler_register_internal() [all …]
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/os/ |
| HD | list.c | 42 #define list_insert_after_node(list, node, object) { \ argument 43 list_node_t *lnew = list_d2l(list, object); \ 50 #define list_insert_before_node(list, node, object) { \ argument 51 list_node_t *lnew = list_d2l(list, object); \ 64 list_create(list_t *list, size_t size, size_t offset) in list_create() argument 66 ASSERT(list); in list_create() 70 list->list_size = size; in list_create() 71 list->list_offset = offset; in list_create() 72 list->list_head.list_next = list->list_head.list_prev = in list_create() 73 &list->list_head; in list_create() [all …]
|
| /NextBSD/contrib/ntp/lib/isc/include/isc/ |
| HD | list.h | 32 #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 …]
|
| /NextBSD/contrib/elftoolchain/ar/ |
| HD | acpyacc.y | 52 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 …]
|
| /NextBSD/contrib/jansson/src/ |
| HD | hashtable.c | 32 #define list_to_pair(list_) container_of(list_, pair_t, list) 35 static JSON_INLINE void list_init(list_t *list) in list_init() argument 37 list->next = list; in list_init() 38 list->prev = list; in list_init() 41 static JSON_INLINE void list_insert(list_t *list, list_t *node) in list_insert() argument 43 node->next = list; in list_insert() 44 node->prev = list->prev; in list_insert() 45 list->prev->next = node; in list_insert() 46 list->prev = node; in list_insert() 49 static JSON_INLINE void list_remove(list_t *list) in list_remove() argument [all …]
|
| /NextBSD/usr.bin/ar/ |
| HD | acpyacc.y | 50 struct list { struct 52 struct list *next; argument 59 static void arscp_addlib(char *archive, struct list *list); 60 static void arscp_addmod(struct list *list); 64 static void arscp_delete(struct list *list); 65 static void arscp_dir(char *archive, struct list *list, char *rlt); 67 static void arscp_extract(struct list *list); 69 static void arscp_free_mlist(struct list *list); 71 static struct list *arscp_mlist(struct list *list, char *str); 72 static void arscp_mlist2argv(struct list *list); [all …]
|
| /NextBSD/sys/cam/ctl/ |
| HD | ctl_tpc.c | 86 struct tpc_list *list; member 153 struct tpc_list *list, *tlist; in tpc_timeout() local 158 TAILQ_FOREACH_SAFE(list, &lun->tpc_lists, links, tlist) { in tpc_timeout() 159 if (!list->completed || time_uptime < list->last_active + in tpc_timeout() 162 TAILQ_REMOVE(&lun->tpc_lists, list, links); in tpc_timeout() 163 free(list, M_CTL); in tpc_timeout() 221 struct tpc_list *list; in ctl_tpc_lun_shutdown() local 225 while ((list = TAILQ_FIRST(&lun->tpc_lists)) != NULL) { in ctl_tpc_lun_shutdown() 226 TAILQ_REMOVE(&lun->tpc_lists, list, links); in ctl_tpc_lun_shutdown() 227 KASSERT(list->completed, in ctl_tpc_lun_shutdown() [all …]
|
| /NextBSD/contrib/dialog/ |
| HD | dialog.pl | 138 local ( $i, $tmp, $ent, $height, $menuheight, @list, $message_len ); 142 @list = (); 145 $list[@list] = "\"$ent\""; 147 $list[@list] = "\"$ent\""; 166 …return_output(0, "dialog --title \"$title\" --menu \"$message\" $height $width $menuheight @list"); 171 local ( $i, $tmp, $ent, $height, $menuheight, @list, $message_len ); 175 @list = (); 178 $list[@list] = "\"$ent\""; 179 $list[@list] = "\"\""; 198 …return_output(0, "dialog --title \"$title\" --menu \"$message\" $height $width $menuheight @list"); [all …]
|
| HD | fselect.c | 90 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 …]
|
| /NextBSD/contrib/atf/atf-c/detail/ |
| HD | list_test.c | 51 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 …]
|
| /NextBSD/contrib/wpa/src/utils/ |
| HD | list.h | 22 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 …]
|
| /NextBSD/contrib/libucl/uthash/ |
| HD | utlist.h | 84 #define _SV(elt,list) _tmp = (char*)(list); {char **_alias = (char**)&(list); *_alias = (elt); } argument 85 #define _NEXT(elt,list,next) ((char*)((list)->next)) argument 86 #define _NEXTASGN(elt,list,to,next) { char **_alias = (char**)&((list)->next); *_alias=(char*)(to);… argument 88 #define _PREVASGN(elt,list,to,prev) { char **_alias = (char**)&((list)->prev); *_alias=(char*)(to);… argument 89 #define _RS(list) { char **_alias = (char**)&(list); *_alias=_tmp; } argument 92 #define _SV(elt,list) argument 93 #define _NEXT(elt,list,next) ((elt)->next) argument 94 #define _NEXTASGN(elt,list,to,next) ((elt)->next)=(to) argument 96 #define _PREVASGN(elt,list,to,prev) ((elt)->prev)=(to) argument 97 #define _RS(list) argument [all …]
|
| /NextBSD/lib/libc/include/isc/ |
| HD | list.h | 30 #define INIT_LIST(list) \ argument 31 do { (list).head = NULL; (list).tail = NULL; } while (0) 44 #define HEAD(list) ((list).head) argument 45 #define TAIL(list) ((list).tail) argument 46 #define EMPTY(list) ((list).head == NULL) argument 48 #define PREPEND(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 …]
|
| /NextBSD/cddl/contrib/opensolaris/tools/ctf/common/ |
| HD | list.c | 40 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 …]
|
| /NextBSD/contrib/binutils/binutils/ |
| HD | arsup.c | 36 (bfd *, void (*function) (bfd *, bfd *), struct list *); 47 map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list) in map_over_list() argument 51 if (list == NULL) in map_over_list() 65 struct list *ptr; in map_over_list() 72 for (ptr = list; ptr; ptr = ptr->next) in map_over_list() 102 ar_directory (char *ar_name, struct list *list, char *output) in ar_directory() argument 120 map_over_list (arch, ar_directory_doer, list); in ar_directory() 224 ar_addlib (char *name, struct list *list) in ar_addlib() argument 237 map_over_list (arch, ar_addlib_doer, list); in ar_addlib() 244 ar_addmod (struct list *list) in ar_addmod() argument [all …]
|
| /NextBSD/sys/dev/drm2/ttm/ |
| HD | ttm_execbuf_util.c | 36 static void ttm_eu_backoff_reservation_locked(struct list_head *list) in ttm_eu_backoff_reservation_locked() argument 40 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked() 56 static void ttm_eu_del_from_lru_locked(struct list_head *list) in ttm_eu_del_from_lru_locked() argument 60 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked() 72 static void ttm_eu_list_ref_sub(struct list_head *list) in ttm_eu_list_ref_sub() argument 76 list_for_each_entry(entry, list, head) { in ttm_eu_list_ref_sub() 86 void ttm_eu_backoff_reservation(struct list_head *list) in ttm_eu_backoff_reservation() argument 91 if (list_empty(list)) in ttm_eu_backoff_reservation() 94 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_backoff_reservation() 97 ttm_eu_backoff_reservation_locked(list); in ttm_eu_backoff_reservation() [all …]
|
| /NextBSD/sys/dev/hptrr/ |
| HD | hptrr_os_bsd.c | 123 void freelist_reserve(struct freelist *list, void *osext, HPT_UINT size, HPT_UINT count) in freelist_reserve() argument 130 list->next = vbus_ext->freelist_head; in freelist_reserve() 131 vbus_ext->freelist_head = list; in freelist_reserve() 132 list->dma = 0; in freelist_reserve() 133 list->size = size; in freelist_reserve() 134 list->head = 0; in freelist_reserve() 136 list->reserved_count = in freelist_reserve() 138 list->count = count; in freelist_reserve() 141 void *freelist_get(struct freelist *list) in freelist_get() argument 144 if (list->count) { in freelist_get() [all …]
|
| /NextBSD/contrib/less/ |
| HD | lglob.h | 26 #define DECL_GLOB_LIST(list) char **list; char **pp; argument 27 #define GLOB_LIST(filename,list) list = _fnexplode(filename) argument 28 #define GLOB_LIST_FAILED(list) list == NULL argument 29 #define SCAN_GLOB_LIST(list,p) pp = list; *pp != NULL; pp++ argument 30 #define INIT_GLOB_LIST(list,p) p = *pp argument 31 #define GLOB_LIST_DONE(list) _fnexplodefree(list) argument 36 #define DECL_GLOB_LIST(list) glob_t list; int i; argument 37 #define GLOB_LIST(filename,list) glob(filename,GLOB_NOCHECK,0,&list) argument 38 #define GLOB_LIST_FAILED(list) 0 argument 39 #define SCAN_GLOB_LIST(list,p) i = 0; i < list.gl_pathc; i++ argument [all …]
|
| /NextBSD/contrib/gperf/src/ |
| HD | keyword-list.cc | 48 copy_list (Keyword_List *list) in copy_list() argument 52 while (list != NULL) in copy_list() 54 Keyword_List *new_cons = new Keyword_List (list->first()); in copy_list() 57 list = list->rest(); in copy_list() 65 copy_list (KeywordExt_List *list) in copy_list() argument 67 return static_cast<KeywordExt_List *> (copy_list (static_cast<Keyword_List *> (list))); in copy_list() 72 delete_list (Keyword_List *list) in delete_list() argument 74 while (list != NULL) in delete_list() 76 Keyword_List *rest = list->rest(); in delete_list() 77 delete list; in delete_list() [all …]
|
| /NextBSD/contrib/gdb/gdb/gdbserver/ |
| HD | inferiors.c | 42 add_inferior_to_list (struct inferior_list *list, in add_inferior_to_list() argument 46 if (list->tail != NULL) in add_inferior_to_list() 47 list->tail->next = new_inferior; in add_inferior_to_list() 49 list->head = new_inferior; in add_inferior_to_list() 50 list->tail = new_inferior; in add_inferior_to_list() 54 for_each_inferior (struct inferior_list *list, in for_each_inferior() argument 57 struct inferior_list_entry *cur = list->head, *next; in for_each_inferior() 68 change_inferior_id (struct inferior_list *list, in change_inferior_id() argument 71 if (list->head != list->tail) in change_inferior_id() 74 list->head->id = new_id; in change_inferior_id() [all …]
|