Home
last modified time | relevance | path

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

12345678910>>...59

/illumos-gate/usr/src/cmd/prstat/
H A Dprsort.c38 list_alloc(list_t *list, int size) in list_alloc() argument
40 list->l_size = size; in list_alloc()
42 list->l_ptrs = Zalloc(sizeof (void *) * (size + 1)); in list_alloc()
44 list->l_ptrs = NULL; in list_alloc()
48 list_free(list_t *list) in list_free() argument
50 if (list && list->l_ptrs) { in list_free()
51 free(list->l_ptrs); in list_free()
52 list->l_ptrs = NULL; in list_free()
108 list_setkeyfunc(char *arg, optdesc_t *opt, list_t *list, int type) in list_setkeyfunc() argument
110 if (list == NULL) in list_setkeyfunc()
[all …]
/illumos-gate/usr/src/test/nvme-tests/tests/nvmeadm/
H A Dnvmeadm_test.ksh69 vers=$($nt_prog list -p -o version $nt_dev)
202 nvmeadm_fail list nvme
203 nvmeadm_fail list nvmecloud
204 nvmeadm_fail list nvmeterra
205 nvmeadm_fail list nvme00
206 nvmeadm_fail list nvme01
207 nvmeadm_fail list nvme0x0
208 nvmeadm_fail list nvme000
209 nvmeadm_fail list nvme001
210 nvmeadm_fail list nvme/1
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c32 struct ptr_list *list = head; in ptr_list_size() local
34 nr += list->nr - list->rm; in ptr_list_size()
35 } while ((list = list->next) != head); in ptr_list_size()
46 const struct ptr_list *list = head; in ptr_list_empty() local
52 if (list->nr - list->rm) in ptr_list_empty()
54 } while ((list = list->next) != head); in ptr_list_empty()
65 const struct ptr_list *list = head; in ptr_list_multiple() local
72 nr += list->nr - list->rm; in ptr_list_multiple()
75 } while ((list = list->next) != head); in ptr_list_multiple()
86 struct ptr_list *list = head; in first_ptr_list() local
[all …]
/illumos-gate/usr/src/common/list/
H A Dlist.c41 extern list_node_t *list_d2l(list_t *list, void *obj);
48 #define list_insert_after_node(list, node, object) { \ argument
49 list_node_t *lnew = list_d2l(list, object); \
56 #define list_insert_before_node(list, node, object) { \ argument
57 list_node_t *lnew = list_d2l(list, object); \
70 list_create(list_t *list, size_t size, size_t offset) in list_create() argument
72 ASSERT(list); in list_create()
76 list->list_size = size; in list_create()
77 list->list_offset = offset; in list_create()
78 list->list_head.list_next = list->list_head.list_prev = in list_create()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ofs_gen_util.c50 add_genlist(genlist_t *list, uintptr_t data, void *data_context) in add_genlist() argument
62 new_entry->prev = list->tail; in add_genlist()
64 if (!list->count) { in add_genlist()
65 list->tail = new_entry; in add_genlist()
66 list->head = new_entry; in add_genlist()
68 list->tail->next = new_entry; in add_genlist()
69 list->tail = new_entry; in add_genlist()
71 list->count++; in add_genlist()
79 void delete_genlist(genlist_t *list, genlist_entry_t *entry) { in delete_genlist() argument
86 list->head = entry->next; in delete_genlist()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Ddefect.c69 read_list(struct defect_list *list) in read_list() argument
94 ((*cur_ops->op_ex_cur)(list)) == 0) { in read_list()
95 if (list->header.magicno != DEFECT_MAGIC) { in read_list()
104 ((*cur_ops->op_ex_man)(list)) == 0) { in read_list()
105 if (list->header.magicno != DEFECT_MAGIC) { in read_list()
125 (char *)&list->header, NULL), F_NORMAL) in read_list()
130 if (list->header.magicno != DEFECT_MAGIC) in read_list()
135 size = deflist_size(cur_blksz, list->header.count); in read_list()
136 list->list = (struct defect_entry *)zalloc(size * cur_blksz); in read_list()
143 (char *)list->list, F_NORMAL, NULL) || in read_list()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dlist.c49 list_append(void **list, void *item) in list_append() argument
52 syslog(LOG_DEBUG, "list_append(0x%x, 0x%x)", list, item); in list_append()
55 return (list); in list_append()
57 if (list == NULL) { in list_append()
58 list = (void **)calloc(_list_increment, sizeof (void *)); in list_append()
59 if (list != NULL) in list_append()
60 list[0] = item; in list_append()
64 for (count = 0; list[count] != NULL; count++) in list_append()
75 for (count = 0; list[count] != NULL; count++) in list_append()
76 new_list[count] = list[count]; in list_append()
[all …]
H A Dns_bsd_addr.c42 char **list = NULL; in strsplit() local
48 list = (char **)list_append((void **)list, element); in strsplit()
50 return (list); in strsplit()
106 char **list, *tmp, *printer = NULL, *extension = NULL; in string_to_bsd_addr() local
112 list = strsplit(tmp, ","); in string_to_bsd_addr()
114 if (list[1] != NULL) { in string_to_bsd_addr()
115 printer = list[1]; in string_to_bsd_addr()
116 if (list[2] != NULL) in string_to_bsd_addr()
117 extension = list[2]; in string_to_bsd_addr()
120 return (bsd_addr_create(list[0], printer, extension)); in string_to_bsd_addr()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_tlist.c58 static void hci1394_tlist_remove(hci1394_tlist_t *list,
74 hci1394_tlist_t *list; in hci1394_tlist_init() local
80 list = kmem_alloc(sizeof (hci1394_tlist_t), KM_SLEEP); in hci1394_tlist_init()
83 *tlist_handle = list; in hci1394_tlist_init()
86 list->tl_drvinfo = drvinfo; in hci1394_tlist_init()
87 list->tl_state = HCI1394_TLIST_TIMEOUT_OFF; in hci1394_tlist_init()
88 list->tl_head = NULL; in hci1394_tlist_init()
89 list->tl_tail = NULL; in hci1394_tlist_init()
91 list->tl_timer_enabled = B_FALSE; in hci1394_tlist_init()
94 list->tl_timer_enabled = B_TRUE; in hci1394_tlist_init()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/
H A Dkconf.c36 char **list; member
48 init_list(struct profile_string_list *list) in init_list() argument
50 list->num = 0; in init_list()
51 list->max = 10; in init_list()
52 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()
64 end_list(struct profile_string_list *list, char ***ret_list) in end_list() argument
67 if (list == NULL) in end_list()
71 *ret_list = list->list; in end_list()
[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
41 #define PREPEND(list, elt, link) \ argument
44 if ((list).head != NULL) \
45 (list).head->link.prev = (elt); \
47 (list).tail = (elt); \
49 (elt)->link.next = (list).head; \
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.c40 init_list(elem_list *list, int hsize) in init_list() argument
44 list->type = 0; in init_list()
45 list->list = (elem**)malloc(sizeof (elem *) * hsize); in init_list()
46 list->num_of_buckets = hsize; in init_list()
47 for (i = 0; i < list->num_of_buckets; i++) in init_list()
48 list->list[i] = NULL; in init_list()
53 examine_list(elem_list *list) in examine_list() argument
59 for (i = 0; i < list->num_of_buckets; i++) { in examine_list()
61 for (cur = list->list[i]; cur; cur = cur->next) in examine_list()
75 print_list(elem_list *list) in print_list() argument
[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)
62 || STREQU(*list, NAME_ANY)
63 || STREQU(*list, NAME_ALL)
66 list++;
79 char ** list in searchlist_with_terminfo() argument
[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) \
128 ((type *)__builtin_va_arg_incr(list, (type *)0))[0]
130 #define __va_end(list) __va_void(0)
134 #define __va_start(list, name) \
135 __va_void(((list) = (__va_list)&__builtin_va_alist))
136 #define __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
94 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main()
98 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
105 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
109 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
113 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
115 papiAttributeListAddBoolean(&list, PAPI_ATTR_EXCL, in main()
119 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main()
123 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main()
127 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 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()
119 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
123 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
137 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main()
150 papiAttributeListAddBoolean(&list, PAPI_ATTR_EXCL, in main()
154 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dlist.c41 list_append(void ***list, void *item) in list_append() argument
45 if ((list == NULL) || (item == NULL)) { in list_append()
51 if (*list == NULL) in list_append()
52 *list = (void **)calloc(__list_increment, in list_append()
55 for (count = 0; (*list)[count] != NULL; count++) in list_append()
66 for (count = 0; (*list)[count] != NULL; count++) in list_append()
67 new_list[count] = (*list)[count]; in list_append()
68 free(*list); in list_append()
69 *list = new_list; in list_append()
72 (*list)[count] = item; in list_append()
[all …]
H A Dattribute.c104 papiAttributeListFree(papi_attribute_t **list) in papiAttributeListFree() argument
106 if (list != NULL) { in papiAttributeListFree()
109 for (i = 0; list[i] != NULL; i++) in papiAttributeListFree()
110 papiAttributeFree(list[i]); in papiAttributeListFree()
112 free(list); in papiAttributeListFree()
235 papiAttributeListAddValue(papi_attribute_t ***list, int flgs, in papiAttributeListAddValue() argument
244 if ((list == NULL) || (name == NULL)) in papiAttributeListAddValue()
255 attribute = papiAttributeListFind(*list, name); in papiAttributeListAddValue()
267 list_append(list, attribute); in papiAttributeListAddValue()
295 papiAttributeListAddString(papi_attribute_t ***list, int flags, in papiAttributeListAddString() argument
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dreplica.c58 free_replica(struct replica *list, int count) in free_replica() argument
63 if (list[i].host) in free_replica()
64 free(list[i].host); in free_replica()
65 if (list[i].path) in free_replica()
66 free(list[i].path); in free_replica()
68 free(list); in free_replica()
74 struct replica *list = NULL; in parse_replica() local
110 if ((list = realloc(list, (*count + 1) * in parse_replica()
113 bzero(&list[(*count)++], sizeof (struct replica)); in parse_replica()
115 list[*count-1].host = strdup(proot); in parse_replica()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c33 errcode_t init_list(struct profile_string_list *list) in init_list() argument
35 list->num = 0; in init_list()
36 list->max = 10; in init_list()
37 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()
48 void end_list(struct profile_string_list *list, char ***ret_list) in end_list() argument
52 if (list == 0) in end_list()
56 *ret_list = list->list; in end_list()
59 for (cp = list->list; *cp; cp++) in end_list()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c51 bsdaddr_to_uri(papi_attribute_t **list, char *bsdaddr) in bsdaddr_to_uri() argument
63 papiAttributeListGetString(list, NULL, in bsdaddr_to_uri()
87 solaris_lpsched_shortcircuit_hack(papi_attribute_t ***list) in solaris_lpsched_shortcircuit_hack() argument
98 papiAttributeListGetString(*list, NULL, in solaris_lpsched_shortcircuit_hack()
106 papiAttributeListFree(*list); in solaris_lpsched_shortcircuit_hack()
107 *list = NULL; in solaris_lpsched_shortcircuit_hack()
143 papiAttributeListAddString(list, PAPI_ATTR_REPLACE, in solaris_lpsched_shortcircuit_hack()
150 fill_printer_uri_supported(papi_attribute_t ***list) in fill_printer_uri_supported() argument
156 attribute = papiAttributeListFind(*list, "printer-uri-supported"); in fill_printer_uri_supported()
161 attribute = papiAttributeListFind(*list, "printer-uri"); in fill_printer_uri_supported()
[all …]
/illumos-gate/usr/src/cmd/getent/
H A Ddogetnetgr.c25 dogetnetgr(const char **list) in dogetnetgr() argument
32 if (list == NULL || *list == NULL) in dogetnetgr()
39 while (list[cnt] != NULL) in dogetnetgr()
44 if (setnetgrent(list[0]) != 0) in dogetnetgr()
46 printf("%s", list[0]); in dogetnetgr()
56 host_filter = (strcmp(list[1], "*") == 0) ? NULL : list[1]; in dogetnetgr()
57 user_filter = (strcmp(list[2], "*") == 0) ? NULL : list[2]; in dogetnetgr()
58 dom_filter = (strcmp(list[3], "*") == 0) ? NULL : list[3]; in dogetnetgr()
59 printf("%-21s (%s,%s,%s) = %d\n", list[0], in dogetnetgr()
63 innetgr(list[0], host_filter, user_filter, dom_filter)); in dogetnetgr()
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc119 struct conv_list *list) in get_last_conv() argument
123 for (lp = list; lp != NULL; lp = lp->next) { in get_last_conv()
133 struct conv_list *&list) in free_conv_list() argument
140 while (list != NULL) { in free_conv_list()
141 bufs = list->bufcnt; in free_conv_list()
142 conv = list->conv; in free_conv_list()
145 if (list[i].desc != NULL) in free_conv_list()
146 free(list[i].desc); in free_conv_list()
149 if ((list[i].conv != NULL) && in free_conv_list()
150 ((i == 0) || (list[i].conv != conv))) in free_conv_list()
[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/contrib/ast/src/lib/libast/cdt/
H A Ddtlist.c41 Dtlist_t *list = (Dtlist_t*)dt->data; in dtlistprint() local
43 if(!here && !(here = list->link) ) in dtlistprint()
71 Dtlist_t *list = (Dtlist_t*)dt->data; local
73 if((lnk = list->link) )
76 list->here = lnk; /* finger points to this */
92 Dtlist_t *list = (Dtlist_t*)dt->data; local
94 lnk = list->link;
95 list->link = list->here = NIL(Dtlink_t*);
96 list->data.size = 0;
118 Dtlist_t *list = (Dtlist_t*)dt->data; local
[all …]

12345678910>>...59