/titanic_51/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, in argument 146 list_getkeyval(list_t * list,void * ptr) list_getkeyval() argument 152 compare_keys(list_t * list,ulong_t key1,ulong_t key2) compare_keys() argument 163 list_insert(list_t * list,void * ptr) list_insert() argument 188 list_preinsert(list_t * list,void * ptr) list_preinsert() argument 209 list_sort(list_t * list) list_sort() argument [all...] |
/titanic_51/usr/src/common/list/ |
H A D | list.c | 26 * Generic doubly-linked list implementation 29 #include <sys/list.h> 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 in list_create() 83 list_destroy(list_t * list) list_destroy() argument 95 list_insert_after(list_t * list,void * object,void * nobject) list_insert_after() argument 106 list_insert_before(list_t * list,void * object,void * nobject) list_insert_before() argument 117 list_insert_head(list_t * list,void * object) list_insert_head() argument 124 list_insert_tail(list_t * list,void * object) list_insert_tail() argument 131 list_remove(list_t * list,void * object) list_remove() argument 140 list_remove_head(list_t * list) list_remove_head() argument 150 list_remove_tail(list_t * list) list_remove_tail() argument 160 list_head(list_t * list) list_head() argument 168 list_tail(list_t * list) list_tail() argument 176 list_next(list_t * list,void * object) list_next() argument 187 list_prev(list_t * list,void * object) list_prev() argument 248 list_is_empty(list_t * list) list_is_empty() argument [all...] |
/titanic_51/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_ofs_gen_util.c | 40 * Doubly linked per user context IB resource list definitions 41 * Protection must occur * outside of the list. 47 * Adds the entry to the tail of the list. 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 in add_genlist() 79 delete_genlist(genlist_t * list,genlist_entry_t * entry) delete_genlist() argument 104 remove_genlist_head(genlist_t * list) remove_genlist_head() argument 122 flush_genlist(genlist_t * list) flush_genlist() argument 135 genlist_empty(genlist_t * list) genlist_empty() argument 146 insert_genlist_tail(genlist_t * list,genlist_entry_t * entry) insert_genlist_tail() argument [all...] |
/titanic_51/usr/src/cmd/format/ |
H A D | defect.c | 27 * This file contains routines that manipulate the defect list. 62 * This routine reads the defect list off the disk. It also reads in the 63 * bad block table if the disk is a BAD144 type. The defect list is 69 read_list(struct defect_list *list) in read_list() argument 82 * This indicates that no list manipulation is done in this controller in read_list() 90 * Panther's working list is maintained by the controller in read_list() 94 ((*cur_ops->op_ex_cur)(list)) == 0) { in read_list() 95 if (list->header.magicno != DEFECT_MAGIC) { in read_list() 96 fmt_print("Defect list BAD\n"); in read_list() 98 fmt_print("Controller working list foun in read_list() 206 checkdefsum(struct defect_list * list,int mode) checkdefsum() argument 272 sort_defect(struct defect_entry * def,struct defect_list * list) sort_defect() argument 320 write_deflist(struct defect_list * list) write_deflist() argument 407 add_ldef(diskaddr_t blkno,struct defect_list * list) add_ldef() argument 438 add_def(struct defect_entry * def,struct defect_list * list,int index) add_def() argument 470 kill_deflist(struct defect_list * list) kill_deflist() argument [all...] |
/titanic_51/usr/src/lib/print/libprint/common/ |
H A D | list.c | 39 #include <list.h> 44 * list_append() takes in a list (type **) and a pointer to an item to add 45 * to the list and returns a new list with the new item appended on the 46 * end. The list is NULL terminated. If there was an error, NULL is 47 * returned. For reasonable efficiency, the list will be allocated 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 in list_append() 89 list_append_unique(void ** list,void * item,int (* cmp)(void *,void *)) list_append_unique() argument 105 list_locate(void ** list,int (* compair)(void *,void *),void * element) list_locate() argument 129 void **list = NULL; list_concatenate() local 172 list_iterate(void ** list,int (* vfunc)(void *,va_list),...) list_iterate() argument [all...] |
H A D | ns_bsd_addr.c | 39 #include <list.h> 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[ in string_to_bsd_addr() 126 list_to_string(const char ** list) list_to_string() argument 150 internal_list_to_string(const ns_printer_t ** list) internal_list_to_string() argument 283 ns_kvp_t **list, *kvp; posix_name() local 431 ns_bsd_addr_t **list = NULL; ns_bsd_addr_get_list() local 520 ns_bsd_addr_t **list = NULL; ns_bsd_addr_get_all() local [all...] |
/titanic_51/usr/src/cmd/krb5/kadmin/kclient/ |
H A D | kconf.c | 36 char **list; member 45 * Initialize the string list abstraction. 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 in init_list() 64 end_list(struct profile_string_list * list,char *** ret_list) end_list() argument 83 add_to_list(struct profile_string_list * list,const char * str) add_to_list() argument [all...] |
/titanic_51/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 searchlist_with_terminfo(char * item,char ** list) searchlist_with_terminfo() argument [all...] |
/titanic_51/usr/src/uts/common/sys/ |
H A D | va_impl.h | 56 * the macro __va_start(list, name) starting the list iteration 57 * the macro __va_arg(list, type) getting the current arg and iterating 58 * the macro __va_copy(to, from) to bookmark the list iteration 59 * the macro __va_end(list) to end the iteration 63 * the identifier __builtin_va_alist for the variable list pseudo parameter 64 * the type __va_alist_type for the variable list pseudo parameter 65 * the type __va_list defining the type of the variable list iterator 113 #define __va_start(list, name) ((list) argument 114 __va_arg(list,type) global() argument 117 __va_end(__va_list list) __va_end() argument [all...] |
/titanic_51/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, el argument 53 APPEND(list,elt,link) global() argument 65 UNLINK_TYPE(list,elt,link,type) global() argument 82 UNLINK(list,elt,link) global() argument 88 INSERT_BEFORE(list,before,elt,link) global() argument 101 INSERT_AFTER(list,after,elt,link) global() argument 114 ENQUEUE(list,elt,link) global() argument 115 DEQUEUE(list,elt,link) global() argument [all...] |
/titanic_51/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_tlist.c | 31 * This implements a timed double linked list. 32 * This list supports: 33 * - addition of node to the end of the list 34 * - atomic deletion of node anywhere in list 35 * - get and remove node from head of list 37 * - timeout feature, if enabled, will remove each node on the list which 38 * has been on the list for > timeout. The callback provided will be 43 * the list. This is a general statement and ignores things like 46 * - The timer is only used when something is on the list 60 static void hci1394_tlist_remove(hci1394_tlist_t *list, 76 hci1394_tlist_t *list; hci1394_tlist_init() local 116 hci1394_tlist_t *list; hci1394_tlist_fini() local 341 hci1394_tlist_t *list; hci1394_tlist_callback() local 459 hci1394_tlist_remove(hci1394_tlist_t * list,hci1394_tlist_node_t * node) hci1394_tlist_remove() argument [all...] |
/titanic_51/usr/src/tools/protocmp/ |
H A D | list.c | 34 #include "list.h" 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 77 print_list(elem_list * list) print_list() argument 95 print_type_list(elem_list * list,char file_type) print_type_list() argument 140 find_elem(elem_list * list,elem * key,int flag) find_elem() argument 163 find_elem_isa(elem_list * list,elem * key,int flag) find_elem_isa() argument 181 find_elem_mach(elem_list * list,elem * key,int flag) find_elem_mach() argument 245 add_elem(elem_list * list,elem * e) add_elem() argument [all...] |
/titanic_51/usr/src/tools/ctf/common/ |
H A D | list.c | 37 #include "list.h" 40 struct list { struct 42 struct list *l_next; argument 45 /* Add an element to a list */ 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() 57 /* Add an element to a sorted list */ 59 slist_add(list_t **list, void *data, int (*cmp)(void *, void *)) in slist_add() argument 63 for (nextp = list; *next in slist_add() 79 list_remove(list_t ** list,void * data,int (* cmp)(void *,void *,void *),void * private) list_remove() argument 101 list_free(list_t * list,void (* datafree)(void *,void *),void * private) list_free() argument 119 list_iter(list_t * list,int (* func)(void *,void *),void * private) list_iter() argument 144 list_count(list_t * list) list_count() argument 150 list_empty(list_t * list) list_empty() argument 156 list_find(list_t * list,void * tmpl,int (* cmp)(void *,void *)) list_find() argument 167 list_first(list_t * list) list_first() argument [all...] |
/titanic_51/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_EXC in main() [all...] |
H A D | lp.c | 57 "[-o option] [-P page-list] [-q priority-level] " in usage() 59 "[-T content-type [-r]] [-y mode-list] [file...]\n"), in usage() 69 papi_attribute_t **list = NULL; in main() local 98 papiAttributeListAddString(&list, in main() 102 papiAttributeListAddString(&list, in main() 106 papiAttributeListAddString(&list, in main() 110 case 'P': { /* page list */ in main() 114 papiAttributeListFromString(&list, in main() 119 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, in main() 123 papiAttributeListAddString(&list, PAPI_ATTR_EXC in main() [all...] |
/titanic_51/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 106 * and grab the address and store it in the list in parse_replica() 112 if ((list = realloc(list, (*coun in parse_replica() [all...] |
/titanic_51/usr/src/lib/print/libpapi-common/common/ |
H A D | list.c | 28 /* $Id: list.c 146 2006-03-24 00:26:54Z njacobs $ */ 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() 60 if ((count + 1) % __list_increment == 0) { /* expand the list */ 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() 132 list_locate(void ** list,int (* compare)(void *,void *),void * element) list_locate() argument 144 list_remove(void *** list,void * item) list_remove() argument [all...] |
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_get.c | 23 * publicy exported functions used to build up a null-terminated char ** list 26 * The publicly exported interface for freeing char** list is 31 * Initialize the string list abstraction. 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 in init_list() 48 end_list(struct profile_string_list * list,char *** ret_list) end_list() argument 70 add_to_list(struct profile_string_list * list,const char * str) add_to_list() argument 96 is_list_member(struct profile_string_list * list,const char * str) is_list_member() argument 114 profile_free_list(char ** list) profile_free_list() argument [all...] |
/titanic_51/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, "printe in fill_printer_uri_supported() 212 fill_printer_uri(papi_attribute_t *** list) fill_printer_uri() argument 235 cvt_all_to_member_names(papi_attribute_t *** list) cvt_all_to_member_names() argument 266 papi_attribute_t **list = NULL; _cvt_nss_entry_to_printer() local [all...] |
/titanic_51/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 [all...] |
/titanic_51/usr/src/cmd/audio/audioconvert/ |
H A D | convert.cc | 56 // maintain a list of conversions 116 // Conversion list maintenance routines 118 // Return a pointer to the last conversion entry in the list 121 struct conv_list *list) in get_last_conv() argument 125 for (lp = list; lp != NULL; lp = lp->next) { in get_last_conv() 132 // Release the conversion list 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 in free_conv_list() 164 append_conv_list(struct conv_list * & list,AudioHdr tohdr,unsigned int bufs,AudioTypeConvert * conv,char * desc) append_conv_list() argument 214 add_mux_convert(struct conv_list * & list,AudioHdr & ihdr,unsigned int & bufs) add_mux_convert() argument 253 add_pcm_convert(struct conv_list * & list,AudioHdr & ihdr,AudioEncoding tofmt,unsigned int unitsz,unsigned int & bufs) add_pcm_convert() argument 293 add_channel_convert(struct conv_list * & list,AudioHdr & ihdr,unsigned int tochans,unsigned int & bufs) add_channel_convert() argument 340 add_compress(struct conv_list * & list,AudioHdr & ihdr,AudioEncoding tofmt,unsigned int unitsz,unsigned int & bufs) add_compress() argument 409 add_decompress(struct conv_list * & list,AudioHdr & ihdr,AudioEncoding tofmt,unsigned int unitsz,unsigned int & bufs) add_decompress() argument 469 add_rate_convert(struct conv_list * & list,AudioHdr & ihdr,unsigned int torate,unsigned int & bufs) add_rate_convert() argument 552 build_conversion_list(struct conv_list * & list,AudioStream * ifp,AudioStream * ofp) build_conversion_list() argument 674 struct conv_list *list = NULL; do_convert() local [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dtlist.c | 31 Dtlink_t* link; /* list of objects */ 41 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 118 Dtlist_t *list = (Dtlist_t*)dt->data; global() local 174 Dtlist_t *list = (Dtlist_t*)dt->data; global() local 346 Dtlist_t *list = (Dtlist_t*)dt->data; global() local [all...] |
/titanic_51/usr/src/lib/libeti/form/common/ |
H A D | ty_enum.c | 43 * set_field_type(f, TYPE_ENUM, list, checkcase, checkuniq); 45 * char ** list; list of acceptable strings 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() 188 char ** list = n -> list; next_enum() local 210 char ** list = n -> list + n -> count - 1; prev_enum() local [all...] |
/titanic_51/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 in check_list() [all...] |
/titanic_51/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, Liblis argument 201 check_list(Liblist * list,char const * str) check_list() argument 234 check_intlist(Intlist * list,char const * iface) check_intlist() argument [all...] |