| /openbsd/src/usr.sbin/npppd/common/ |
| D | slist.c | 96 #define itr_is_valid(list) ((list)->itr_next >= 0) argument 97 #define itr_invalidate(list) ((list)->itr_next = -1) argument 101 slist_init(slist *list) in slist_init() argument 103 memset(list, 0, sizeof(slist)); in slist_init() 104 itr_invalidate(list); in slist_init() 112 slist_set_size(slist *list, int size) in slist_set_size() argument 114 if (size > list->list_size) in slist_set_size() 115 return slist_grow0(list, size - list->list_size); in slist_set_size() 122 slist_fini(slist *list) in slist_fini() argument 124 free(list->list); in slist_fini() [all …]
|
| /openbsd/src/usr.bin/mklocale/ |
| D | yacc.y | 84 rune_list *list; member 101 %type <list> list 102 %type <list> map 160 | LIST list 170 list : RUNE 186 | list RUNE 194 | list RUNE THRU RUNE 344 set_map(rune_map *map, rune_list *list, u_int32_t flag) in set_map() argument 346 list->map &= charsetmask; in set_map() 347 list->map |= charsetbits; in set_map() [all …]
|
| /openbsd/src/usr.bin/dig/lib/isc/include/isc/ |
| D | list.h | 24 #define ISC_LIST_INIT(list) \ argument 25 do { (list).head = NULL; (list).tail = NULL; } while (0) 37 #define ISC_LIST_HEAD(list) ((list).head) argument 38 #define ISC_LIST_TAIL(list) ((list).tail) argument 39 #define ISC_LIST_EMPTY(list) ((list).head == NULL) argument 41 #define __ISC_LIST_PREPENDUNSAFE(list, elt, link) \ argument 43 if ((list).head != NULL) \ 44 (list).head->link.prev = (elt); \ 46 (list).tail = (elt); \ 48 (elt)->link.next = (list).head; \ [all …]
|
| D | util.h | 98 #define HEAD(list) ISC_LIST_HEAD(list) argument 99 #define TAIL(list) ISC_LIST_TAIL(list) argument 100 #define EMPTY(list) ISC_LIST_EMPTY(list) argument 103 #define APPEND(list, elt, link) ISC_LIST_APPEND(list, elt, link) argument 104 #define PREPEND(list, elt, link) ISC_LIST_PREPEND(list, elt, link) argument 105 #define UNLINK(list, elt, link) ISC_LIST_UNLINK(list, elt, link) argument 106 #define ENQUEUE(list, elt, link) ISC_LIST_APPEND(list, elt, link) argument 107 #define DEQUEUE(list, elt, link) ISC_LIST_UNLINK(list, elt, link) argument
|
| /openbsd/src/gnu/usr.bin/perl/dist/threads/t/ |
| D | state.t | 109 ok(threads->list(threads::running) == 1, 'thread running list'); 112 ok(threads->list(threads::joinable) == 0, 'thread joinable list'); 113 ok(threads->list(threads::all) == 1, 'thread list'); 117 ok(threads->list(threads::running) == 0, 'thread running list'); 120 ok(threads->list(threads::joinable) == 1, 'thread joinable list'); 121 ok(threads->list(threads::all) == 1, 'thread list'); 125 ok(threads->list(threads::running) == 0, 'thread running list'); 128 ok(threads->list(threads::joinable) == 0, 'thread joinable list'); 129 ok(threads->list(threads::all) == 0, 'thread list'); 134 ok(threads->list(threads::running) == 0, 'thread running list'); [all …]
|
| D | list.t | 38 ok(2, scalar @{[threads->list()]} == 0, 'No threads yet'); 41 ok(3, scalar @{[threads->list()]} == 0, 'Empty thread list after join'); 44 ok(4, scalar(threads->list()) == 1, 'Non-empty thread list'); 45 ok(5, threads->list() == 1, 'Non-empty thread list'); 47 ok(6, scalar @{[threads->list()]} == 0, 'Thread list empty again'); 48 ok(7, threads->list() == 0, 'Thread list empty again'); 51 ok(8, threads->list() == 1, 'Non-empty thread list in thread'); 52 ok(9, threads->self == (threads->list())[0], 'Self in thread list') 58 ok(10, scalar(threads->list()) == 1, 'Thread count 1'); 59 ok(11, threads->list() == 1, 'Thread count 1'); [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/tsan/tests/unit/ |
| D | tsan_ilist_test.cpp | 26 IList<Node, &Node::node1> list; in TEST() local 29 EXPECT_TRUE(list.Empty()); in TEST() 30 EXPECT_EQ(list.Size(), (size_t)0); in TEST() 31 EXPECT_EQ(list.Back(), nullptr); in TEST() 32 EXPECT_EQ(list.Front(), nullptr); in TEST() 33 EXPECT_EQ(list.PopBack(), nullptr); in TEST() 34 EXPECT_EQ(list.PopFront(), nullptr); in TEST() 35 EXPECT_FALSE(list.Queued(&node)); in TEST() 39 IList<Node, &Node::node1> list; in TEST() local 42 list.PushBack(&node); in TEST() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/cpan/IPC-SysV/ |
| D | SysV.xs | 132 AV *list = (AV*) SvRV(obj); in pack() local 135 AV_FETCH_IV(ds.msg_perm.uid , list, 0); in pack() 136 AV_FETCH_IV(ds.msg_perm.gid , list, 1); in pack() 137 AV_FETCH_IV(ds.msg_perm.cuid, list, 2); in pack() 138 AV_FETCH_IV(ds.msg_perm.cgid, list, 3); in pack() 139 AV_FETCH_IV(ds.msg_perm.mode, list, 4); in pack() 140 AV_FETCH_IV(ds.msg_qnum , list, 5); in pack() 141 AV_FETCH_IV(ds.msg_qbytes , list, 6); in pack() 142 AV_FETCH_IV(ds.msg_lspid , list, 7); in pack() 143 AV_FETCH_IV(ds.msg_lrpid , list, 8); in pack() [all …]
|
| /openbsd/src/gnu/usr.bin/cvs/src/ |
| D | hash.c | 51 List *list; in getlist() local 57 list = listcache; in getlist() 59 list->next = (List *) NULL; in getlist() 61 list->hasharray[i] = (Node *) NULL; in getlist() 66 list = (List *) xmalloc (sizeof (List)); in getlist() 67 memset ((char *) list, 0, sizeof (List)); in getlist() 69 list->list = node; in getlist() 73 return (list); in getlist() 89 p = (*listp)->list; 122 free ((*listp)->list); [all …]
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/binutils/ |
| D | arsup.c | 35 (bfd *, void (*function) (bfd *, bfd *), struct list *); 46 map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list) in map_over_list() argument 50 if (list == NULL) in map_over_list() 64 struct list *ptr; in map_over_list() 71 for (ptr = list; ptr; ptr = ptr->next) in map_over_list() 101 ar_directory (char *ar_name, struct list *list, char *output) in ar_directory() argument 119 map_over_list (arch, ar_directory_doer, list); in ar_directory() 223 ar_addlib (char *name, struct list *list) in ar_addlib() argument 236 map_over_list (arch, ar_addlib_doer, list); in ar_addlib() 243 ar_addmod (struct list *list) in ar_addmod() argument [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/binutils/ |
| D | arsup.c | 35 (bfd *, void (*function) (bfd *, bfd *), struct list *); 42 map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list) in map_over_list() argument 46 if (list == NULL) in map_over_list() 60 struct list *ptr; in map_over_list() 67 for (ptr = list; ptr; ptr = ptr->next) in map_over_list() 98 ar_directory (char *ar_name, struct list *list, char *output) in ar_directory() argument 116 map_over_list (arch, ar_directory_doer, list); in ar_directory() 223 ar_addlib (char *name, struct list *list) in ar_addlib() argument 236 map_over_list (arch, ar_addlib_doer, list); in ar_addlib() 243 ar_addmod (struct list *list) in ar_addmod() argument [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/gdbserver/ |
| D | 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 …]
|
| /openbsd/src/sys/dev/pci/drm/amd/amdgpu/ |
| D | amdgpu_bo_list.c | 42 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local 44 mutex_destroy(&list->bo_list_mutex); in amdgpu_bo_list_free_rcu() 45 kvfree(list); in amdgpu_bo_list_free_rcu() 50 struct amdgpu_bo_list *list = container_of(ref, struct amdgpu_bo_list, in amdgpu_bo_list_free() local 54 amdgpu_bo_list_for_each_entry(e, list) in amdgpu_bo_list_free() 56 call_rcu(&list->rhead, amdgpu_bo_list_free_rcu); in amdgpu_bo_list_free() 76 struct amdgpu_bo_list *list; in amdgpu_bo_list_create() local 81 list = kvzalloc(struct_size(list, entries, num_entries), GFP_KERNEL); in amdgpu_bo_list_create() 82 if (!list) in amdgpu_bo_list_create() 85 kref_init(&list->refcount); in amdgpu_bo_list_create() [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gas/ |
| D | listing.c | 522 listing_page (list_info_type *list) in listing_page() argument 535 while (c != 0 && list) in listing_page() 537 if (list->edict == EDICT_SBTTL && !had_subtitle) in listing_page() 540 subtitle = list->edict_arg; in listing_page() 542 if (list->edict == EDICT_TITLE && !had_title) in listing_page() 545 title = list->edict_arg; in listing_page() 547 list = list->next; in listing_page() 565 calc_hex (list_info_type *list) in calc_hex() argument 568 list_info_type *first = list; in calc_hex() 575 frag = list->frag; in calc_hex() [all …]
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/gas/ |
| D | listing.c | 522 listing_page (list_info_type *list) in listing_page() argument 535 while (c != 0 && list) in listing_page() 537 if (list->edict == EDICT_SBTTL && !had_subtitle) in listing_page() 540 subtitle = list->edict_arg; in listing_page() 542 if (list->edict == EDICT_TITLE && !had_title) in listing_page() 545 title = list->edict_arg; in listing_page() 547 list = list->next; in listing_page() 565 calc_hex (list_info_type *list) in calc_hex() argument 568 list_info_type *first = list; in calc_hex() 575 frag = list->frag; in calc_hex() [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/23_containers/ |
| D | list_ctor.cc | 53 std::list< A<B> > list0101; in test01() 58 typedef std::list< A<B> >::reference reference; in test01() 59 typedef std::list< A<B> >::const_reference const_reference; in test01() 60 typedef std::list< A<B> >::iterator iterator; in test01() 61 typedef std::list< A<B> >::const_iterator const_iterator; in test01() 62 typedef std::list< A<B> >::size_type size_type; in test01() 63 typedef std::list< A<B> >::difference_type difference_type; in test01() 64 typedef std::list< A<B> >::value_type value_type; in test01() 65 typedef std::list< A<B> >::allocator_type allocator_type; in test01() 66 typedef std::list< A<B> >::pointer pointer; in test01() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/f/ |
| D | stt.c | 77 ffestt_caselist_append (ffesttCaseList list, bool range, ffebld case1, in ffestt_caselist_append() argument 84 new->next = list->previous->next; in ffestt_caselist_append() 85 new->previous = list->previous; in ffestt_caselist_append() 129 ffestt_caselist_kill (ffesttCaseList list) in ffestt_caselist_kill() argument 133 for (next = list->next; next != list; next = next->next) in ffestt_caselist_kill() 149 ffestt_dimlist_append (ffesttDimList list, ffebld lower, ffebld upper, in ffestt_dimlist_append() argument 156 new->next = list->previous->next; in ffestt_dimlist_append() 157 new->previous = list->previous; in ffestt_dimlist_append() 181 ffestt_dimlist_as_expr (ffesttDimList list, ffeinfoRank *rank, in ffestt_dimlist_as_expr() argument 199 assert (list != NULL); in ffestt_dimlist_as_expr() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
| D | 20000906-1.c | 15 struct list struct 17 struct list *next; argument 20 struct list * 23 static struct list l; in alloc_list() 30 foo (struct ucharp cp, struct ucharp lp, struct list **nextp) in foo() 34 struct list *list; in foo() local 37 list = alloc_list (); in foo() 54 *nextp = list; in foo() 55 nextp = &list->next; in foo() 72 struct list list; in main() local [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ |
| D | pp_overdriver.c | 1268 const struct phm_fuses_default *list = vega10_fuses_default; in pp_override_get_default_fuse_value() local 1271 for (i = 0; list[i].key != 0; i++) { in pp_override_get_default_fuse_value() 1272 if (key == list[i].key) { in pp_override_get_default_fuse_value() 1273 result->key = list[i].key; in pp_override_get_default_fuse_value() 1274 result->VFT2_m1 = list[i].VFT2_m1; in pp_override_get_default_fuse_value() 1275 result->VFT2_m2 = list[i].VFT2_m2; in pp_override_get_default_fuse_value() 1276 result->VFT2_b = list[i].VFT2_b; in pp_override_get_default_fuse_value() 1277 result->VFT1_m1 = list[i].VFT1_m1; in pp_override_get_default_fuse_value() 1278 result->VFT1_m2 = list[i].VFT1_m2; in pp_override_get_default_fuse_value() 1279 result->VFT1_b = list[i].VFT1_b; in pp_override_get_default_fuse_value() [all …]
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| D | list | 14 list synopsis 20 class list 38 list() 40 explicit list(const allocator_type& a); 41 explicit list(size_type n); 42 explicit list(size_type n, const allocator_type& a); // C++14 43 list(size_type n, const value_type& value); 44 list(size_type n, const value_type& value, const allocator_type& a); 46 list(Iter first, Iter last); 48 list(Iter first, Iter last, const allocator_type& a); [all …]
|
| /openbsd/src/regress/usr.bin/mandoc/mdoc/Bl/ |
| D | empty.out_markdown | 9 bullet list: 11 column list: 13 dash list: 15 diag list: 17 enum list: 19 hang list: 21 hyphen list: 23 inset list: 25 item list: 27 ohang list: [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | completer.c | 203 char ** list = NULL; in location_completer() local 274 list = make_file_symbol_completion_list (symbol_start, word, in location_completer() 280 list = make_symbol_completion_list (symbol_start, word); in location_completer() 291 if (list) in location_completer() 292 for ( ; list[n_syms]; n_syms++) in location_completer() 299 list = xrealloc (list, (n_syms + n_files + 1) * sizeof (char *)); in location_completer() 300 memcpy (list + n_syms, fn_list, (n_files + 1) * sizeof (char *)); in location_completer() 326 list = fn_list; in location_completer() 332 list = make_symbol_completion_list (orig_text, word); in location_completer() 335 return list; in location_completer() [all …]
|
| /openbsd/src/regress/sbin/pfctl/ |
| D | pfr12.ok | 2 # pass list 4 # pass list -v 11 # pass list 12 # pass list -v 14 # pass list 15 # pass list -v 18 # pass list 19 # pass list -v 25 # pass list 26 # pass list -v [all …]
|
| /openbsd/src/gnu/llvm/libcxxabi/src/ |
| D | abort_message.cpp | 37 va_list list; in abort_message() local 38 va_start(list, format); in abort_message() 39 vfprintf(stderr, format, list); in abort_message() 40 va_end(list); in abort_message() 49 va_list list; in abort_message() local 50 va_start(list, format); in abort_message() 51 vasprintf(&buffer, format, list); in abort_message() 52 va_end(list); in abort_message() 57 va_list list; in abort_message() local 58 va_start(list, format); in abort_message() [all …]
|
| /openbsd/src/sbin/unwind/libunbound/services/ |
| D | outbound_list.c | 48 outbound_list_init(struct outbound_list* list) in outbound_list_init() argument 50 list->first = NULL; in outbound_list_init() 54 outbound_list_clear(struct outbound_list* list) in outbound_list_clear() argument 57 p = list->first; in outbound_list_clear() 64 outbound_list_init(list); in outbound_list_clear() 68 outbound_list_insert(struct outbound_list* list, struct outbound_entry* e) in outbound_list_insert() argument 70 if(list->first) in outbound_list_insert() 71 list->first->prev = e; in outbound_list_insert() 72 e->next = list->first; in outbound_list_insert() 74 list->first = e; in outbound_list_insert() [all …]
|