Home
last modified time | relevance | path

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

12345678910>>...60

/illumos-gate/usr/src/cmd/prstat/
H A Dprsort.c50 if (list && list->l_ptrs) { in list_free()
110 if (list == NULL) in list_setkeyfunc()
170 k2 = list_getkeyval(list, list->l_ptrs[i]); in list_insert()
173 list->l_ptrs[j+1] = list->l_ptrs[j]; in list_insert()
175 if (list->l_used < list->l_size) in list_insert()
181 list->l_ptrs[list->l_used] = ptr; in list_insert()
183 list->l_used++; in list_insert()
192 if (list->l_used < list->l_size) { /* just add */ in list_preinsert()
196 k1 = list_getkeyval(list, list->l_ptrs[list->l_used - 1]); in list_preinsert()
200 k1 = list_getkeyval(list, list->l_ptrs[0]); in list_preinsert()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c34 nr += list->nr - list->rm; in ptr_list_size()
35 } while ((list = list->next) != head); in ptr_list_size()
52 if (list->nr - list->rm) in ptr_list_empty()
54 } while ((list = list->next) != head); in ptr_list_empty()
72 nr += list->nr - list->rm; in ptr_list_multiple()
75 } while ((list = list->next) != head); in ptr_list_multiple()
92 list = list->next; in first_ptr_list()
113 list = list->prev; in last_ptr_list()
133 return list->list[idx]; in ptr_list_nth_entry()
319 if (list->list[i] == entry) in lookup_ptr_list_entry()
[all …]
/illumos-gate/usr/src/common/list/
H A Dlist.c72 ASSERT(list); in list_create()
76 list->list_size = size; in list_create()
78 list->list_head.list_next = list->list_head.list_prev = in list_create()
79 &list->list_head; in list_create()
87 ASSERT(list); in list_destroy()
160 list_head(list_t *list) in list_head() argument
162 if (list_empty(list)) in list_head()
164 return (list_object(list, list->list_head.list_next)); in list_head()
168 list_tail(list_t *list) in list_tail() argument
170 if (list_empty(list)) in list_tail()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ofs_gen_util.c64 if (!list->count) { in add_genlist()
71 list->count++; in add_genlist()
95 list->count--; in delete_genlist()
108 if (list->head) { in remove_genlist_head()
109 list->head = list->head->next; in remove_genlist_head()
110 list->count--; in remove_genlist_head()
112 if (!list->head) in remove_genlist_head()
113 list->tail = list->head; in remove_genlist_head()
132 init_genlist(list); in flush_genlist()
151 if (!list->count) { in insert_genlist_tail()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Ddefect.c143 (char *)list->list, F_NORMAL, NULL) || in read_list()
213 lp = (int *)list->list; in checkdefsum()
285 for (ptr = list->list; ptr - list->list < list->header.count; ptr++) { in sort_defect()
311 return (ptr - list->list); in sort_defect()
351 if (list->list != NULL) { in write_deflist()
448 list->list = (struct defect_entry *)rezalloc((void *)list->list, in add_def()
454 *(list->list + i) = *(list->list + i - 1); in add_def()
458 *(list->list + i) = *def; in add_def()
476 if (list->list == NULL) in kill_deflist()
481 destroy_data((char *)list->list); in kill_deflist()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dlist.c55 return (list); in list_append()
59 if (list != NULL) in list_append()
60 list[0] = item; in list_append()
77 free(list); in list_append()
78 list = new_list; in list_append()
82 return (list); in list_append()
90 return (list); in list_append_unique()
92 list = list_append(list, item); in list_append_unique()
93 return (list); in list_append_unique()
110 if (list != NULL) in list_locate()
[all …]
H A Dns_bsd_addr.c48 list = (char **)list_append((void **)list, element); in strsplit()
50 return (list); in strsplit()
128 if ((list == NULL) || (*list == NULL)) in list_to_string()
152 if ((list == NULL) || (*list == NULL)) in internal_list_to_string()
440 list = in ns_bsd_addr_get_list()
444 list = in ns_bsd_addr_get_list()
448 list = (ns_bsd_addr_t **)list_append((void **)list, in ns_bsd_addr_get_list()
481 return (list); in ns_bsd_addr_get_list()
510 list = (ns_bsd_addr_t **)list_append((void **)list, in ns_bsd_addr_get_all()
525 list = in ns_bsd_addr_get_all()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/
H A Dkconf.c52 list->list = malloc(list->max * sizeof (char *)); in init_list()
53 if (list->list == NULL) in init_list()
55 list->list[0] = NULL; in init_list()
71 *ret_list = list->list; in end_list()
74 profile_free_list(list->list); in end_list()
75 list->num = list->max = 0; in end_list()
76 list->list = NULL; in end_list()
88 if (list->num + 1 >= list->max) { in add_to_list()
94 list->list = newlist; in add_to_list()
100 list->list[list->num++] = newstr; in add_to_list()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dsearchlist.c41 char ** list in searchlist() argument
44 searchlist (item, list) in searchlist()
46 register char **list;
49 if (!list || !*list)
59 while (*list) {
61 STREQU(*list, item)
66 list++;
79 char ** list in searchlist_with_terminfo() argument
87 if (!list || !*list)
97 while (*list) {
[all …]
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_tlist.c76 hci1394_tlist_t *list; in hci1394_tlist_init() local
86 *tlist_handle = list; in hci1394_tlist_init()
91 list->tl_head = NULL; in hci1394_tlist_init()
92 list->tl_tail = NULL; in hci1394_tlist_init()
116 hci1394_tlist_t *list; in hci1394_tlist_fini() local
341 hci1394_tlist_t *list; in hci1394_tlist_callback() local
359 node = list->tl_head; in hci1394_tlist_callback()
438 list->tl_timeout_id = timeout(hci1394_tlist_callback, list, in hci1394_tlist_callback()
461 ASSERT(list != NULL); in hci1394_tlist_remove()
471 list->tl_head = NULL; in hci1394_tlist_remove()
[all …]
/illumos-gate/usr/src/lib/libresolv2/include/isc/
H A Dlist.h23 #define INIT_LIST(list) \ argument
24 do { (list).head = NULL; (list).tail = NULL; } while (0)
37 #define HEAD(list) ((list).head) argument
38 #define TAIL(list) ((list).tail) argument
39 #define EMPTY(list) ((list).head == NULL) argument
47 (list).tail = (elt); \
50 (list).head = (elt); \
59 (list).head = (elt); \
62 (list).tail = (elt); \
114 #define ENQUEUE(list, elt, link) APPEND(list, elt, link) argument
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.c47 list->list = (elem**)malloc(sizeof (elem *) * hsize); in init_list()
50 list->list[i] = NULL; in init_list()
63 for (cur = list->list[i]; cur; cur = cur->next) in examine_list()
83 for (cur = list->list[i]; cur; cur = cur->next) in print_list()
101 for (cur = list->list[i]; cur; cur = cur->next) { in print_type_list()
144 for (e = list->list[hash(key->name) % list->num_of_buckets]; e; in find_elem()
185 for (e = list->list[hash(key->name) % list->num_of_buckets]; e; in find_elem_mach()
253 if (list->list[bucket]) { in add_elem()
254 for (cur = list->list[bucket]; cur; cur = cur->next) { in add_elem()
273 e->next = list->list[bucket]; in add_elem()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dva_impl.h113 #define __va_start(list, name) ((list) = (__va_list)&name) argument
114 #define __va_arg(list, type) ((type *)(list))[0] argument
117 static void __va_end(__va_list list) { __va_end(list); } in __va_end() argument
126 #define __va_start(list, name) __builtin_va_start(list, 0)
127 #define __va_arg(list, type) \
134 #define __va_start(list, name) \
136 #define __va_arg(list, type) \
144 #define __va_start(list, name) __builtin_stdarg_start(list, name)
146 #define __va_start(list, name) __builtin_va_start(list, name)
149 #define __va_arg(list, type) __builtin_va_arg(list, type)
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpr.c68 papi_attribute_t **list = NULL; in main() local
98 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
105 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
225 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
227 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
240 status = papiJobValidate(svc, printer, list, in main()
244 list, &job); in main()
249 status = papiJobSubmit(svc, printer, list, in main()
252 papiAttributeListFree(list); in main()
263 list = papiJobGetAttributeList(job); in main()
[all …]
H A Dlp.c69 papi_attribute_t **list = NULL; in main() local
98 papiAttributeListAddString(&list, in main()
102 papiAttributeListAddString(&list, in main()
106 papiAttributeListAddString(&list, in main()
114 papiAttributeListFromString(&list, in main()
158 papiAttributeListFromString(&list, in main()
282 list, &job); in main()
290 status = papiJobSubmit(svc, printer, list, in main()
293 papiAttributeListFree(list); in main()
308 papiAttributeListGetString(list, NULL, in main()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dreplica.c65 if (list[i].host) in free_replica()
66 free(list[i].host); in free_replica()
67 if (list[i].path) in free_replica()
68 free(list[i].path); in free_replica()
70 free(list); in free_replica()
112 if ((list = realloc(list, (*count + 1) * in parse_replica()
145 if ((list = realloc(list, (*count + 1) * in parse_replica()
158 if (!list[i].path) in parse_replica()
178 if ((list = realloc(list, (*count + 1) * in parse_replica()
199 return (list); in parse_replica()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dlist.c53 if (*list == NULL) in list_append()
70 free(*list); in list_append()
71 *list = new_list; in list_append()
74 (*list)[count] = item; in list_append()
139 return (list[current]); in list_locate()
148 if ((list == NULL) || (*list == NULL) || (item == NULL)) in list_remove()
162 (*list)[i-1] = (*list)[i]; in list_remove()
163 (*list)[i-1] = NULL; in list_remove()
172 tmp[i] = (*list)[i]; in list_remove()
173 free(*list); in list_remove()
[all …]
H A Dattribute.c106 if (list != NULL) { in papiAttributeListFree()
110 papiAttributeFree(list[i]); in papiAttributeListFree()
112 free(list); in papiAttributeListFree()
421 *iter = list; in papiAttributeListGetNext()
688 list_append(list, value); in _add_attribute_value()
695 list_append(list, value); in _add_attribute_value()
699 list_append(list, value); in _add_attribute_value()
728 list_append(list, value); in _add_attribute_value()
737 list_append(list, value); in _add_attribute_value()
741 list_append(list, value); in _add_attribute_value()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c37 list->list = malloc(list->max * sizeof(char *)); in init_list()
38 if (list->list == 0) in init_list()
40 list->list[0] = 0; in init_list()
56 *ret_list = list->list; in end_list()
61 free(list->list); in end_list()
63 list->num = list->max = 0; in end_list()
64 list->list = 0; in end_list()
81 list->list = newlist; in add_to_list()
88 list->list[list->num++] = newstr; in add_to_list()
89 list->list[list->num] = 0; in add_to_list()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c63 papiAttributeListGetString(list, NULL, in bsdaddr_to_uri()
106 papiAttributeListFree(*list); in solaris_lpsched_shortcircuit_hack()
107 *list = NULL; in solaris_lpsched_shortcircuit_hack()
217 if ((list == NULL) || (*list == NULL)) in fill_printer_uri()
266 papi_attribute_t **list = NULL; in _cvt_nss_entry_to_printer() local
276 papiAttributeListAddString(&list, in _cvt_nss_entry_to_printer()
280 papiAttributeListAddString(&list, in _cvt_nss_entry_to_printer()
298 papiAttributeListAddString(&list, in _cvt_nss_entry_to_printer()
325 list_concatenate(&list, use_attrs); in _cvt_nss_entry_to_printer()
328 fill_printer_uri_supported(&list); in _cvt_nss_entry_to_printer()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_005_pos.ksh63 list=$(getds_with_suffix $POOL2 @snapA)
64 list="$list $(getds_with_suffix $POOL2 @snapB)"
65 list="$list $(getds_with_suffix $POOL2 @snapC)"
66 list="$list $(getds_with_suffix $POOL2 @final)"
67 log_must destroy_tree $list
78 list=$(getds_with_suffix $dstds/$FS @snapA)
79 list="$list $(getds_with_suffix $dstds/$FS @snapB)"
80 list="$list $(getds_with_suffix $dstds/$FS @snapC)"
81 list="$list $(getds_with_suffix $dstds/$FS @final)"
82 log_must destroy_tree $list
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc121 struct conv_list *list) in get_last_conv() argument
135 struct conv_list *&list) in free_conv_list() argument
142 while (list != NULL) { in free_conv_list()
143 bufs = list->bufcnt; in free_conv_list()
144 conv = list->conv; in free_conv_list()
148 free(list[i].desc); in free_conv_list()
155 tlp = list->next; in free_conv_list()
156 free((char *)list); in free_conv_list()
157 list = tlp; in free_conv_list()
196 if (list == NULL) { in append_conv_list()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/
H A Ddtlist.c73 if((lnk = list->link) )
94 lnk = list->link;
95 list->link = list->here = NIL(Dtlink_t*);
96 list->data.size = 0;
124 lnk = list->link;
134 list->link = lnk;
242 list->link = r;
252 { list->link = r;
258 list->here = r;
311 list->here = r == list->here ? r->_rght : NIL(Dtlink_t*);
[all …]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dty_enum.c52 char ** list; member
90 n -> list = va_arg(*ap, char **); in make_enum()
94 for (v = n -> list; *v; ++v) in make_enum()
96 n -> count = (int) (v - n -> list); in make_enum()
153 char ** list = n -> list; in fcheck_enum() local
160 while (x = *list++) in fcheck_enum()
165 while (x = *list++) in fcheck_enum()
188 char ** list = n -> list; in next_enum() local
197 list = n -> list; in next_enum()
210 char ** list = n -> list + n -> count - 1; in prev_enum() local
[all …]
/illumos-gate/usr/src/lib/abi/apptrace/common/
H A Dabienv.c74 lp->l_next = *list; in build_env_list()
75 *list = lp; in build_env_list()
133 ip->i_next = *list; in env_to_intlist()
134 *list = ip; in env_to_intlist()
179 if (*list == NULL) in appendlist()
180 *list = lp; in appendlist()
206 if (list == NULL) in check_list()
214 for (; list; list = list->l_next) { in check_list()
222 ret = list; in check_list()
236 if (list == NULL) in check_intlist()
[all …]

12345678910>>...60