/titanic_44/usr/src/cmd/prstat/ |
H A D | prsort.c | 38 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 …]
|
/titanic_44/usr/src/common/list/ |
H A D | list.c | 41 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 …]
|
/titanic_44/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_ofs_gen_util.c | 50 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 …]
|
/titanic_44/usr/src/cmd/format/ |
H A D | defect.c | 69 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 …]
|
H A D | menu.c | 61 register char **list; local 77 list = (char **)zalloc(nitems * sizeof (char *)); 78 cpptr = list; 91 return (list); 99 display_menu_list(list) in display_menu_list() argument 100 char **list; in display_menu_list() 104 for (str = list; *str != NULL; str++) 144 char **list; local 154 list = create_menu_list(menu); 157 display_menu_list(list); [all …]
|
/titanic_44/usr/src/lib/print/libprint/common/ |
H A D | list.c | 51 list_append(void **list, void *item) in list_append() argument 54 syslog(LOG_DEBUG, "list_append(0x%x, 0x%x)", list, item); in list_append() 57 return (list); in list_append() 59 if (list == NULL) { in list_append() 60 list = (void **)calloc(_list_increment, sizeof (void *)); in list_append() 61 (void) memset(list, NULL, (_list_increment * sizeof (void *))); in list_append() 62 list[0] = item; in list_append() 66 for (count = 0; list[count] != NULL; count++); in list_append() 77 for (count = 0; list[count] != NULL; count++) in list_append() 78 new_list[count] = list[count]; in list_append() [all …]
|
H A D | ns_bsd_addr.c | 44 char **list = NULL; in strsplit() local 50 list = (char **)list_append((void **)list, element); in strsplit() 52 return (list); in strsplit() 108 char **list, *tmp, *printer = NULL, *extension = NULL; in string_to_bsd_addr() local 114 list = strsplit(tmp, ","); in string_to_bsd_addr() 116 if (list[1] != NULL) { in string_to_bsd_addr() 117 printer = list[1]; in string_to_bsd_addr() 118 if (list[2] != NULL) in string_to_bsd_addr() 119 extension = list[2]; in string_to_bsd_addr() 122 return (bsd_addr_create(list[0], printer, extension)); in string_to_bsd_addr() [all …]
|
/titanic_44/usr/src/cmd/krb5/kadmin/kclient/ |
H A D | kconf.c | 36 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 …]
|
/titanic_44/usr/src/cmd/lp/lib/lp/ |
H A D | searchlist.c | 41 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 …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | va_impl.h | 113 #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 …]
|
/titanic_44/usr/src/lib/libresolv2/include/isc/ |
H A D | list.h | 23 #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 …]
|
/titanic_44/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_tlist.c | 60 static void hci1394_tlist_remove(hci1394_tlist_t *list, 76 hci1394_tlist_t *list; in hci1394_tlist_init() local 83 list = kmem_alloc(sizeof (hci1394_tlist_t), KM_SLEEP); in hci1394_tlist_init() 86 *tlist_handle = list; in hci1394_tlist_init() 89 list->tl_drvinfo = drvinfo; in hci1394_tlist_init() 90 list->tl_state = HCI1394_TLIST_TIMEOUT_OFF; in hci1394_tlist_init() 91 list->tl_head = NULL; in hci1394_tlist_init() 92 list->tl_tail = NULL; in hci1394_tlist_init() 94 list->tl_timer_enabled = B_FALSE; in hci1394_tlist_init() 97 list->tl_timer_enabled = B_TRUE; in hci1394_tlist_init() [all …]
|
/titanic_44/usr/src/tools/protocmp/ |
H A D | list.c | 42 init_list(elem_list *list, int hsize) in init_list() argument 46 list->type = 0; in init_list() 47 list->list = (elem**)malloc(sizeof (elem *) * hsize); in init_list() 48 list->num_of_buckets = hsize; in init_list() 49 for (i = 0; i < list->num_of_buckets; i++) in init_list() 50 list->list[i] = NULL; in init_list() 55 examine_list(elem_list *list) in examine_list() argument 61 for (i = 0; i < list->num_of_buckets; i++) { in examine_list() 63 for (cur = list->list[i]; cur; cur = cur->next) in examine_list() 77 print_list(elem_list *list) in print_list() argument [all …]
|
/titanic_44/usr/src/tools/ctf/common/ |
H A D | 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 …]
|
/titanic_44/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpr.c | 69 papi_attribute_t **list = NULL; in main() local 96 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main() 100 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() 107 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() 111 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() 115 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() 117 papiAttributeListAddBoolean(&list, PAPI_ATTR_EXCL, in main() 121 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main() 125 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, in main() 129 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() [all …]
|
H A D | lp.c | 69 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 …]
|
/titanic_44/usr/src/cmd/fs.d/nfs/lib/ |
H A D | replica.c | 60 free_replica(struct replica *list, int count) in free_replica() argument 65 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() 76 struct replica *list = NULL; in parse_replica() local 112 if ((list = realloc(list, (*count + 1) * in parse_replica() 115 bzero(&list[(*count)++], sizeof (struct replica)); in parse_replica() 117 list[*count-1].host = strdup(proot); in parse_replica() [all …]
|
/titanic_44/usr/src/lib/print/libpapi-common/common/ |
H A D | list.c | 43 list_append(void ***list, void *item) in list_append() argument 47 if ((list == NULL) || (item == NULL)) { in list_append() 53 if (*list == NULL) in list_append() 54 *list = (void **)calloc(__list_increment, in list_append() 57 for (count = 0; (*list)[count] != NULL; count++) in list_append() 68 for (count = 0; (*list)[count] != NULL; count++) in list_append() 69 new_list[count] = (*list)[count]; in list_append() 70 free(*list); in list_append() 71 *list = new_list; in list_append() 74 (*list)[count] = item; in list_append() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_get.c | 33 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 …]
|
/titanic_44/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | nss.c | 51 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 …]
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | rsend_005_pos.ksh | 63 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
|
/titanic_44/usr/src/cmd/audio/audioconvert/ |
H A D | convert.cc | 121 struct conv_list *list) in get_last_conv() argument 125 for (lp = list; lp != NULL; lp = lp->next) { in get_last_conv() 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() 147 if (list[i].desc != NULL) in free_conv_list() 148 free(list[i].desc); in free_conv_list() 151 if ((list[i].conv != NULL) && in free_conv_list() 152 ((i == 0) || (list[i].conv != conv))) in free_conv_list() [all …]
|
/titanic_44/usr/src/lib/libeti/form/common/ |
H A D | ty_enum.c | 52 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 194 if (cmp(*list++, v, checkcase) == EXACT_MATCH) in next_enum() 197 list = n -> list; in next_enum() [all …]
|
/titanic_44/usr/src/cmd/sgs/link_audit/common/ |
H A D | env.c | 34 build_env_list(Elist **list, const char *env) in build_env_list() argument 51 lp->l_next = *list; in build_env_list() 52 *list = lp; in build_env_list() 60 check_list(Elist *list, const char *str) in check_list() argument 64 if (list == NULL) in check_list() 76 for (; list; list = list->l_next) { in check_list() 77 if (strchr(list->l_libname, '/') == NULL) { in check_list() 78 if (strcmp(basestr, list->l_libname) == 0) in check_list() 79 return (list); in check_list() 81 if (strcmp(str, list->l_libname) == 0) in check_list() [all …]
|
/titanic_44/usr/src/lib/abi/apptrace/common/ |
H A D | abienv.c | 55 build_env_list(Liblist **list, char const *env) in build_env_list() argument 74 lp->l_next = *list; in build_env_list() 75 *list = lp; in build_env_list() 81 build_env_list1(Liblist **list, Liblist **listend, const char *env) in build_env_list1() argument 94 appendlist(list, listend, envstr, 1); in build_env_list1() 103 appendlist(list, listend, tok, 1); in build_env_list1() 110 env_to_intlist(Intlist **list, char const *env) in env_to_intlist() argument 133 ip->i_next = *list; in env_to_intlist() 134 *list = ip; in env_to_intlist() 140 appendlist(Liblist **list, Liblist **listend, const char *name, int fatal) in appendlist() argument [all …]
|