/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_list.c | 22 * This is only for internal list manipulation where we know 38 * @head: list head to add it after 52 * @head: list head to add it before 64 * Delete a list entry by making the prev/next entries 67 * This is only for internal list manipulation where we know 78 * mlist_del_init - deletes entry from list and reinitialize it. 79 * @entry: the element to delete from the list. 89 * mlist_empty - tests whether a list is empty 90 * @head: the list to test. 100 * @list 104 mlist_splice(struct mlist_head *list, struct mlist_head *head) argument [all...] |
/illumos-gate/usr/src/cmd/lp/lib/access/ |
H A D | dumpaccess.c | 82 _dumpaccess(char *file, char **list) argument 90 if (list) { 94 for (pl = list; *pl; pl++)
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | getlist.c | 51 * character from "hardsep", can separate items in the list. 68 register char **list, local 86 * Construct in "sep" the full list of characters that 87 * can separate items in the list. Avoid a "malloc()" 128 * Pass 1: Count the number of items in the list. 148 * Pass 2: Create the list. 152 * Pass 1 counted the number of list separaters, so 155 if (!(list = (char **)Malloc((n+2) * sizeof(char *)))) { 170 list[n++] = unq_strdup(copy, sep); 185 list[ [all...] |
/illumos-gate/usr/src/test/os-tests/tests/secflags/ |
H A D | secflags_psecflags.sh | 171 list() { function 193 list
|
/illumos-gate/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) argument 47 if ((list == NULL) || (item == NULL)) { 53 if (*list == NULL) 54 *list = (void **)calloc(__list_increment, 57 for (count = 0; (*list)[count] != NULL; count++) 60 if ((count + 1) % __list_increment == 0) { /* expand the list */ 68 for (count = 0; (*list)[count] != NULL; count++) 69 new_list[count] = (*list)[count]; 70 free(*list); 132 list_locate(void **list, int (*compare)(void *, void *), void *element) argument 144 list_remove(void ***list, void *item) argument [all...] |
/illumos-gate/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) argument 54 syslog(LOG_DEBUG, "list_append(0x%x, 0x%x)", list, item); 57 return (list); 59 if (list 89 list_append_unique(void **list, void *item, int (*cmp)(void *, void*)) argument 105 list_locate(void **list, int (*compair)(void *, void *), void *element) argument 129 void **list = NULL; local 172 list_iterate(void **list, int (*vfunc)(void *, va_list), ...) argument [all...] |
/illumos-gate/usr/src/lib/libpp/common/ |
H A D | ppbuiltin.c | 51 struct pplist* list; local 252 p = (list = (struct pplist*)hashget(pp.prdtab, a)) ? list->value : "";
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | _nlist.c | 21 * _nlist - retreive attributes from name list (string table version) 30 _nlist(int fd, struct nlist *list) argument 45 for (q = list, nreq = 0; q->n_un.n_name && q->n_un.n_name[0]; 81 for (p = list;
|
/illumos-gate/usr/src/cmd/print/lpget/ |
H A D | lpget.c | 41 #include <list.h> 52 gettext("Usage: %s [-k key] [list|(printer) ...]\n"), 88 ns_kvp_t **list = printer->attributes; local 90 for (list = printer->attributes; 91 (list != NULL && *list != NULL); list++) { 93 if (((*list)->key[0] == '\t') || 94 ((*list)->key[0] == ' ')) 97 string = ns_get_value_string((*list) [all...] |
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | warmstart.c | 86 write_struct(const char *filename, xdrproc_t structproc, void *list) argument 107 if (structproc(&xdrs, list) == FALSE) { 119 read_struct(const char *filename, xdrproc_t structproc, void *list) argument 177 if (structproc(&xdrs, list) == FALSE) {
|
/illumos-gate/usr/src/cmd/sgs/libelf/misc/ |
H A D | nlist.c | 61 _elf_nlist(int fd, struct nlist * list) argument 101 for (p = list; p->n_name && p->n_name[0]; ++p) { 126 nlist(const char * name, struct nlist * list) argument 132 for (p = list; p->n_name && p->n_name[0]; p++) { /* n_name can be ptr */ 157 return (_elf_nlist(fd, list));
|
/illumos-gate/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; local 116 hci1394_tlist_t *list; local 341 hci1394_tlist_t *list; local 459 hci1394_tlist_remove(hci1394_tlist_t *list, hci1394_tlist_node_t *node) argument [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_reset_notify.c | 83 * routine to deallocate the callback list 112 } *list; local 123 list = kmem_alloc(count * sizeof (struct notify_entry), KM_NOSLEEP); 124 if (list == NULL) { 130 list[i].callback = p->callback; 131 list[i].arg = p->arg; 136 if (list[i].callback != NULL) 137 (void) (*list[i].callback)(list[i].arg); 139 kmem_free(list, coun [all...] |
/illumos-gate/usr/src/lib/pam_modules/roles/ |
H A D | roles.c | 186 roleinlist(char *list, char *role) argument 189 char *rolename = (char *)strtok_r(list, ",", &lasts);
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | printer.c | 36 contains(char *value, char **list) argument 40 if ((value == NULL) || (list == NULL)) 43 for (i = 0; list[i] != NULL; i++) 44 if (strcasecmp(value, list[i]) == 0)
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/hostbridge/ |
H A D | hb_sun4u.c | 37 count_busorrc(topo_mod_t *mod, busorrc_t *list, int *hbc, int *bph) argument 43 start = list->br_ba_ac; 44 p = list->br_nextbus; 55 * complexes in the list to have the same number of buses on 72 busorrc_process(topo_mod_t *mod, busorrc_t *list, int isrc, tnode_t *ptn) argument 76 if (list == NULL) { 88 * list, ordered by "bus address". We retrieved "bus address" 107 if (count_busorrc(mod, list, &hbc, &busper) < 0) 110 return (declare_exbuses(mod, list, ptn, hbc, busper)); 112 return (declare_buses(mod, list, pt [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_audit.c | 49 static obj_list_t *list; variable 66 * Record objects into our linked list as they're loaded. 75 * If we can't allocate the next node in our list, we'll try to emit a 82 node->ol_next = list; 86 list = node; 92 * Once the link maps have reached a consistent state, process the list of 110 while (list != NULL) { 111 obj_list_t *node = list; 114 list = node->ol_next;
|
/illumos-gate/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 in struct:__anon3219 90 n -> list = va_arg(*ap, char **); 94 for (v = n -> list; *v; ++v) 96 n -> count = (int) (v - n -> list); 153 char ** list = n -> list; local 160 while (x = *list 188 char ** list = n -> list; local 210 char ** list = n -> list + n -> count - 1; local [all...] |
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.h | 75 zjni_Collection_t *list; member in struct:zjni_ArrayCallbackData
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | event_port.c | 81 port_getn(int port, port_event_t list[], uint_t max, uint_t *nget, argument 89 r.r_vals = _portfs(PORT_GETN, port, (uintptr_t)list, max, *nget, 173 /* list submitted */
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | getgroup.c | 51 struct list { struct 53 struct list *nxt; 59 static struct grouplist *grouplist; /* stores a list of users in a group */ 91 doit(group, (struct list *) NULL); 100 * recursive function to find the members of netgroup "group". "list" is 104 doit(group, list) 106 struct list *list; 109 register struct list *ls; 110 struct list tmplis [all...] |
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | cancel.c | 57 papi_attribute_t **list = papiJobGetAttributeList(job); local 58 papiAttributeListGetInteger(list, NULL,
|
H A D | lp.c | 57 "[-o option] [-P page-list] [-q priority-level] " 59 "[-T content-type [-r]] [-y mode-list] [file...]\n"), 69 papi_attribute_t **list = NULL; local 98 papiAttributeListAddString(&list, 102 papiAttributeListAddString(&list, 106 papiAttributeListAddString(&list, 110 case 'P': { /* page list */ 114 papiAttributeListFromString(&list, 119 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 123 papiAttributeListAddString(&list, PAPI_ATTR_EXC [all...] |
H A D | lpr.c | 69 papi_attribute_t **list = NULL; local 96 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, 100 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 107 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 111 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 115 papiAttributeListAddString(&list, PAPI_ATTR_EXCL, 117 papiAttributeListAddBoolean(&list, PAPI_ATTR_EXCL, 121 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, 125 papiAttributeListAddInteger(&list, PAPI_ATTR_EXCL, 129 papiAttributeListAddString(&list, PAPI_ATTR_EXC [all...] |
/illumos-gate/usr/src/cmd/mail/ |
H A D | printmail.c | 416 reciplist list; local 419 new_reciplist(&list); 437 add_recip(&list, env, 441 add_recip(&list, lfil, FALSE); 447 flg += sendlist(&list, showlet, 0); 457 del_reciplist(&list);
|