| /onnv-gate/usr/src/cmd/prstat/ |
| H A D | prsort.c | 39 list_alloc(list_t *list, int size) in list_alloc() argument 42 list->l_size = size; in list_alloc() 43 list->l_ptrs = Zalloc(sizeof (void *) * (size + 1)); 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() 113 list->l_sortorder = opt->o_sortorder; in list_setkeyfunc() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 135 #define __va_start(list, name) __builtin_va_start(list, 0) 136 #define __va_arg(list, type) \ 137 ((type *)__builtin_va_arg_incr(list, (type *)0))[0] 139 #define __va_end(list) __va_void(0) 143 #define __va_start(list, name) \ 144 __va_void(((list) = (__va_list)&__builtin_va_alist)) 145 #define __va_arg(list, type) \ [all …]
|
| H A D | varargs.h | 67 #define va_start(list, name) __va_start(list, name) argument 68 #define va_arg(list, type) __va_arg(list, type) argument 70 #define va_end(list) __va_end(list) argument 80 #define va_start(list) __va_start(list, va_alist) argument 81 #define va_arg(list, type) __va_arg(list, type) argument 83 #define va_end(list) __va_end(list) argument
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/cmd/parted/ |
| H A D | strlist.c | 209 StrList* list; in str_list_alloc() local 211 list = xmalloc (sizeof (StrList)); in str_list_alloc() 212 list->next = NULL; in str_list_alloc() 214 return list; in str_list_alloc() 218 str_list_destroy (StrList* list) in str_list_destroy() argument 220 if (list) { in str_list_destroy() 221 str_list_destroy (list->next); in str_list_destroy() 222 str_list_destroy_node (list); in str_list_destroy() 227 str_list_destroy_node (StrList* list) in str_list_destroy_node() argument 229 free ((wchar_t*) list->str); in str_list_destroy_node() [all …]
|
| H A D | strlist.h | 44 extern void str_list_destroy (StrList* list); 45 extern void str_list_destroy_node (StrList* list); 47 extern StrList* str_list_duplicate (const StrList* list); 48 extern StrList* str_list_duplicate_node (const StrList* list); 49 extern StrList* str_list_insert (StrList* list, const char* str); 50 extern StrList* str_list_append (StrList* list, const char* str); 51 extern StrList* str_list_append_unique (StrList* list, const char* str); 53 extern char* str_list_convert (const StrList* list); 54 extern char* str_list_convert_node (const StrList* list); 56 extern void str_list_print (const StrList* list); [all …]
|
| /onnv-gate/usr/src/cmd/agents/snmp/snmplib/ |
| H A D | madman_trap.c | 68 SNMP_variable *list = NULL; in send_trap_appl_status_changed() local 80 list = snmp_typed_variable_append(list, &applName_name, in send_trap_appl_status_changed() 82 if(list == NULL) in send_trap_appl_status_changed() 94 list = snmp_typed_variable_append(list, &applOperStatus_name, in send_trap_appl_status_changed() 96 if(list == NULL) in send_trap_appl_status_changed() 107 list, error_label)) in send_trap_appl_status_changed() 112 snmp_variable_list_free(list); in send_trap_appl_status_changed() 115 snmp_variable_list_free(list); in send_trap_appl_status_changed() 126 SNMP_variable *list = NULL; in send_trap_appl_alarm() local 138 list = snmp_typed_variable_append(list, &applName_name, in send_trap_appl_alarm() [all …]
|
| /onnv-gate/usr/src/cmd/lvm/metassist/common/ |
| H A D | volume_dlist.c | 52 dlist_t *list, in dlist_contains() argument 56 return (dlist_find(list, obj, compare) != NULL); in dlist_contains() 64 dlist_t *list, in dlist_find() argument 70 for (iter = list; iter != NULL; iter = iter->next) { in dlist_find() 97 dlist_t *list, in dlist_insert_ordered() argument 105 if (list == NULL) { in dlist_insert_ordered() 111 head = list; in dlist_insert_ordered() 113 for (iter = list; iter != NULL; iter = iter->next) { in dlist_insert_ordered() 180 dlist_t *list, in dlist_remove_equivalent_item() argument 189 if (list == NULL) { in dlist_remove_equivalent_item() [all …]
|
| /onnv-gate/usr/src/cmd/agents/snmp/agent/ |
| H A D | reg_subtree.c | 152 sap_append_integer_variable(SNMP_variable *list, Oid *oid, int num) in sap_append_integer_variable() argument 157 list = snmp_typed_variable_append(list,oid,INTEGER,&value,error_label); in sap_append_integer_variable() 158 if(list == NULL){ in sap_append_integer_variable() 162 return(list); in sap_append_integer_variable() 166 sap_append_variable(SNMP_variable *list, Oid *oid, int num, int type) in sap_append_variable() argument 171 list = snmp_typed_variable_append(list,oid,type,&value,error_label); in sap_append_variable() 172 if(list == NULL){ in sap_append_variable() 176 return(list); in sap_append_variable() 179 SNMP_variable *sap_append_string_variable(SNMP_variable *list, Oid *oid, char* str) in sap_append_string_variable() argument 187 list = snmp_typed_variable_append(list,oid,STRING,&value,error_label); in sap_append_string_variable() [all …]
|
| /onnv-gate/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 …]
|