/illumos-gate/usr/src/uts/common/sys/idm/ |
H A D | idm_conn_sm.h | 69 item(CE_UNDEFINED) \ 71 item(CE_CONNECT_REQ) \ 72 item(CE_CONNECT_FAIL) \ 73 item(CE_CONNECT_SUCCESS) \ 74 item(CE_LOGIN_SND) \ 75 item(CE_LOGIN_SUCCESS_RCV) \ 76 item(CE_LOGIN_FAIL_RCV) \ 77 item(CE_LOGOUT_THIS_CONN_SND) \ 78 item(CE_LOGOUT_OTHER_CONN_SND) \ 79 item(CE_LOGOUT_SESSION_SND) \ [all …]
|
H A D | idm.h | 52 item(CN_UNDEFINED) \ 53 item(CN_CONNECT_ACCEPT) /* Target only */ \ 54 item(CN_LOGIN_FAIL) \ 55 item(CN_READY_FOR_LOGIN) /* Initiator only */ \ 56 item(CN_FFP_ENABLED) \ 57 item(CN_FFP_DISABLED) \ 58 item(CN_CONNECT_LOST) \ 59 item(CN_CONNECT_DESTROY) \ 60 item(CN_CONNECT_FAIL) \ 61 item(CN_MAX) [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 269 __nis_hash_item_mt *item = arg; in __nis_insert_item_mt() local 273 if (item == 0 || __nis_lock_hash_table(table, 0, "nitmt") == 0) in __nis_insert_item_mt() 276 if ((*(pp = __find_item_mt(item->name, table, &key))) != 0) { in __nis_insert_item_mt() 281 (void) pthread_cond_init(&item->lock, 0); in __nis_insert_item_mt() 282 item->readers = item->writer = 0; in __nis_insert_item_mt() 283 item->last_reader_id = item->writer_id = INV_PTHREAD_ID; in __nis_insert_item_mt() 285 item->writer = 1; in __nis_insert_item_mt() 286 item->writer_id = pthread_self(); in __nis_insert_item_mt() 289 item->readers = 1; in __nis_insert_item_mt() 290 item->last_reader_id = pthread_self(); in __nis_insert_item_mt() [all …]
|
H A D | db_item_c.x | 40 struct item{ struct 48 %class item { 53 % item( char* str, int len); 56 % item( item* ); 59 % item() {len = 0; value = NULL;} 62 % ~item() {delete value;} 65 % bool_t equal( item *, bool_t casein = FALSE );
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit.h | 125 item(TS_UNDEFINED) \ 126 item(TS_CREATED) \ 127 item(TS_ONLINING) \ 128 item(TS_ONLINE) \ 129 item(TS_STMF_ONLINE) \ 130 item(TS_DELETING_NEED_OFFLINE) \ 131 item(TS_OFFLINING) \ 132 item(TS_OFFLINE) \ 133 item(TS_STMF_OFFLINE) \ 134 item(TS_DELETING_STMF_DEREG) \ [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_list.c | 67 av1394_list_put_tail(av1394_list_t *lp, void *item) in av1394_list_put_tail() argument 69 ITEM(item)->i_next = NULL; in av1394_list_put_tail() 70 ITEM(item)->i_prev = lp->l_tail; in av1394_list_put_tail() 74 lp->l_head = lp->l_tail = item; in av1394_list_put_tail() 76 lp->l_tail->i_next = item; in av1394_list_put_tail() 77 lp->l_tail = item; in av1394_list_put_tail() 87 av1394_list_put_head(av1394_list_t *lp, void *item) in av1394_list_put_head() argument 89 ITEM(item)->i_next = lp->l_head; in av1394_list_put_head() 90 ITEM(item)->i_prev = NULL; in av1394_list_put_head() 94 lp->l_head = lp->l_tail = item; in av1394_list_put_head() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/pppt/ |
H A D | pppt.h | 53 item(TS_UNDEFINED) \ 54 item(TS_CREATED) \ 55 item(TS_ONLINING) \ 56 item(TS_ONLINE) \ 57 item(TS_STMF_ONLINE) \ 58 item(TS_DELETING_NEED_OFFLINE) \ 59 item(TS_OFFLINING) \ 60 item(TS_OFFLINE) \ 61 item(TS_STMF_OFFLINE) \ 62 item(TS_DELETING_STMF_DEREG) \ [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astlicense.c | 200 Item_t item[ITEMS]; member 210 lookup(register const Item_t* item, const char* name, int size) in lookup() argument 216 for (i = 0; item[i].data; i++) in lookup() 217 if (c == item[i].data[0] && size == item[i].size && !strncmp(name, item[i].data, size)) in lookup() 296 expand(Notice_t* notice, register Buffer_t* b, const Item_t* item) in expand() argument 308 if (t = item->data) in expand() 310 q = item->quote; in expand() 311 e = t + item->size; in expand() 332 if ((c = lookup(key, x, t - x - 1)) >= 0 && (x = notice->item[c].data)) in expand() 334 z = x + notice->item[c].size; in expand() [all …]
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | dbm.c | 141 datum item; in fetch() local 145 item = makdatum(pagbuf, i); in fetch() 146 if (item.dptr == NULL) { in fetch() 147 return (item); in fetch() 149 if (cmpdatum(key, item) == 0) { in fetch() 150 item = makdatum(pagbuf, i+1); in fetch() 151 if (item.dptr == NULL) in fetch() 153 return (item); in fetch() 162 datum item; in delete() local 168 item = makdatum(pagbuf, i); in delete() [all …]
|
/illumos-gate/usr/src/ucblib/libdbm/ |
H A D | dbm.c | 58 int additem(char buf[PBLKSIZ], datum item); 150 datum item; in fetch() local 154 item = makdatum(pagbuf, i); in fetch() 155 if (item.dptr == NULL) in fetch() 156 return (item); in fetch() 157 if (cmpdatum(key, item) == 0) { in fetch() 158 item = makdatum(pagbuf, i+1); in fetch() 159 if (item.dptr == NULL) in fetch() 161 return (item); in fetch() 170 datum item; in delete() local [all …]
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | hashtable.c | 58 struct ht_item *item, *tmp; in ht_destroy() local 63 TAILQ_FOREACH_SAFE(item, &he->hte_items, hti_link, tmp) { in ht_destroy() 64 free(item); in ht_destroy() 89 struct ht_item *item; in ht_find_locked() local 93 TAILQ_FOREACH(item, &entry->hte_items, hti_link) { in ht_find_locked() 94 if (item->hti_hash == hash) in ht_find_locked() 95 return (item->hti_data); in ht_find_locked() 105 struct ht_item *item; in ht_add() local 113 TAILQ_FOREACH(item, &entry->hte_items, hti_link) { in ht_add() 114 if (item->hti_hash == hash) { in ht_add() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_ht.c | 133 HT_ITEM *item; in ht_destroy_table() local 141 while ((item = ht_findfirst(handle, &iterator)) != 0) in ht_destroy_table() 142 (void) ht_remove_item(handle, item->hi_key); in ht_destroy_table() 232 HT_ITEM *item; in ht_add_item() local 251 if ((item = malloc(msize)) == 0) in ht_add_item() 254 item->hi_key = (char *)item + sizeof (HT_ITEM); in ht_add_item() 255 (void) memcpy(item->hi_key, key, key_len); in ht_add_item() 256 item->hi_data = (void *)data; in ht_add_item() 257 item->hi_flags = 0; in ht_add_item() 264 item->hi_next = handle->ht_table[h_index].he_head; in ht_add_item() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netbios_cache.c | 47 static void hash_callback(HT_ITEM *item); 92 HT_ITEM *item; in smb_netbios_cache_getfirst() local 96 item = ht_findfirst(smb_netbios_cache, &iter->nbc_hti); in smb_netbios_cache_getfirst() 97 if (item == NULL || item->hi_data == NULL) { in smb_netbios_cache_getfirst() 102 entry = (struct name_entry *)item->hi_data; in smb_netbios_cache_getfirst() 115 HT_ITEM *item; in smb_netbios_cache_getnext() local 119 item = ht_findnext(&iter->nbc_hti); in smb_netbios_cache_getnext() 120 if (item == NULL || item->hi_data == NULL) { in smb_netbios_cache_getnext() 125 entry = (struct name_entry *)item->hi_data; in smb_netbios_cache_getnext() 145 HT_ITEM *item; in smb_netbios_cache_lookup() local [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_softc.c | 45 ddi_get_soft_state(void *state, int item) in ddi_get_soft_state() argument 50 ASSERT((ss != NULL) && (item >= 0)); in ddi_get_soft_state() 54 if (item < ss->n_items && ss->array != NULL) in ddi_get_soft_state() 55 ret = ss->array[item]; in ddi_get_soft_state() 97 ddi_soft_state_zalloc(void *state, int item) in ddi_soft_state_zalloc() argument 103 if ((state == NULL) || (item < 0)) in ddi_soft_state_zalloc() 120 if (item < ss->n_items && array[item] != NULL) { in ddi_soft_state_zalloc() 133 if (item >= ss->n_items) { in ddi_soft_state_zalloc() 155 while (new_n_items < (1 + item)) in ddi_soft_state_zalloc() 158 ASSERT(new_n_items >= (1 + item)); /* sanity check! */ in ddi_soft_state_zalloc() [all …]
|
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_ip_route.c | 208 mib_item_t *item; in free_itemlist() local 211 item = item_list; in free_itemlist() 212 item_list = item->next_item; in free_itemlist() 213 if (item->valp) in free_itemlist() 214 free(item->valp); in free_itemlist() 215 free(item); in free_itemlist() 233 mib_item_t *item; in get_ip_route() local 277 for (item = item_list; item; item = item->next_item) { in get_ip_route() 278 if ((item->group == MIB2_IP) && (item->mib_id == 0)) { in get_ip_route() 280 mip = (mib2_ip_t *)(void *)item->valp; in get_ip_route() [all …]
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libsharecore.c | 143 xfs_sharelist_t *item; in alloc_sharelist() local 145 item = (xfs_sharelist_t *)malloc(sizeof (xfs_sharelist_t)); in alloc_sharelist() 146 if (item != NULL) in alloc_sharelist() 147 (void) memset(item, '\0', sizeof (xfs_sharelist_t)); in alloc_sharelist() 148 return (item); in alloc_sharelist() 161 xfs_sharelist_t *item, *prev; in fix_notice() local 174 item = alloc_sharelist(); in fix_notice() 175 if (item != NULL) { in fix_notice() 176 item->description = strdup(notice[i]); in fix_notice() 178 item->next = list; in fix_notice() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | searchlist.c | 40 char * item, in searchlist() argument 44 searchlist (item, list) in searchlist() 45 register char *item; in searchlist() 52 else if (STREQU(item, NAME_ANY) || STREQU(item, NAME_ALL)) 61 STREQU(*list, item) 78 char * item, in searchlist_with_terminfo() argument 82 searchlist_with_terminfo (item, list) in searchlist_with_terminfo() 83 register char *item; in searchlist_with_terminfo() 90 else if (STREQU(item, NAME_ANY) || STREQU(item, NAME_ALL)) 99 STREQU(*list, item) [all …]
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | envvar.c | 63 typedef int arg_process_t(const struct umem_env_item *item, const char *value); 301 item_uint_process(const umem_env_item_t *item, const char *item_arg) in item_uint_process() argument 327 (*item->item_uint_target) = (uint_t)result; in item_uint_process() 331 log_message("%s: %s: not a number\n", CURRENT, item->item_name); in item_uint_process() 335 log_message("%s: %s: overflowed\n", CURRENT, item->item_name); in item_uint_process() 340 item_size_process(const umem_env_item_t *item, const char *item_arg) in item_size_process() argument 396 (*item->item_size_target) = result; in item_size_process() 400 log_message("%s: %s: not a number\n", CURRENT, item->item_name); in item_size_process() 404 log_message("%s: %s: overflowed\n", CURRENT, item->item_name); in item_size_process() 409 umem_log_process(const umem_env_item_t *item, const char *item_arg) in umem_log_process() argument [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ndbm.c | 256 datum item; in dbm_fetch() local 262 item = makdatum(db->dbm_pagbuf, i+1); in dbm_fetch() 263 if (item.dptr != NULL) in dbm_fetch() 264 return (item); in dbm_fetch() 267 item.dptr = NULL; in dbm_fetch() 268 item.dsize = 0; in dbm_fetch() 269 return (item); in dbm_fetch() 308 datum item, item1; in dbm_store() local 353 item = makdatum(db->dbm_pagbuf, i); in dbm_store() 354 if (item.dptr == NULL) in dbm_store() [all …]
|
H A D | hsearch.c | 118 ENTRY item; member 282 *hsearch(ENTRY item, ACTION action) in hsearch() argument 293 i = HASH(item.key); /* Primary hash on key */ in hsearch() 302 else if (COMPARE(table[i].key, item.key) == 0) /* Match? */ in hsearch() 306 c = HASH2(item.key); /* No match => compute secondary hash */ in hsearch() 319 else if (COMPARE(table[i].key, item.key) == 0) /* Match? */ in hsearch() 338 unsigned int p0 = HASH(item.key); /* First probe index */ in hsearch() 339 unsigned int c0 = HASH2(item.key); /* Main branch increment */ in hsearch() 378 table[i] = item; /* Save item */ in hsearch() 411 *hsearch(item, action) /* Chained search with sorted lists */ in hsearch() argument [all …]
|
/illumos-gate/usr/src/lib/libeti/menu/common/ |
H A D | newitem.c | 41 ITEM *item; in new_item() local 43 if (item = (ITEM *) calloc(1, sizeof (ITEM))) { in new_item() 45 *item = *Dfl_Item; in new_item() 48 Name(item) = name; in new_item() 49 Description(item) = desc; in new_item() 52 NameLen(item) = strlen(name); in new_item() 54 free(item); /* Can't have a null name */ in new_item() 58 DescriptionLen(item) = strlen(desc); in new_item() 60 DescriptionLen(item) = 0; in new_item() 63 return (item); in new_item()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | mpapi_impl.c | 580 oid_list[count] = (uint64_t)ilist->item->oid.raw_oid; in vhci_get_dev_prod_list() 622 while ((ilist != NULL) && (*oid != ilist->item->oid.raw_oid)) { in vhci_get_dev_prod_prop() 626 dev_prop = (mp_dev_prod_prop_t *)(ilist->item->idata); in vhci_get_dev_prod_prop() 667 oid_list[count] = (uint64_t)(ilist->item->oid.raw_oid); in vhci_get_lu_list() 671 ld = ilist->item->idata; in vhci_get_lu_list() 714 while ((ilist != NULL) && (*oid != ilist->item->oid.raw_oid)) in vhci_get_lu_list_from_tpg() 722 } else if (*oid == ilist->item->oid.raw_oid) { in vhci_get_lu_list_from_tpg() 723 mptpglu = (mpapi_tpg_data_t *)(ilist->item->idata); in vhci_get_lu_list_from_tpg() 739 item->oid.raw_oid; in vhci_get_lu_list_from_tpg() 746 ld = tpg_lu_list->item->idata; in vhci_get_lu_list_from_tpg() [all …]
|
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg_test.out | 25 code TEST-8000-08 item 0 = <<Defect>> 26 code TEST-8000-08 item 1 = <<Minor>> 27 code TEST-8000-08 item 2 = <<This entry tests URL variable expansion - url = http://illumos.org/msg… 28 code TEST-8000-08 item 3 = <<This entry tests the percent character escape sequence: %>> 29 code TEST-8000-08 item 4 = <<This entry tests variable expansion for event payload members: uuid = … 30 code TEST-8000-08 item 5 = <<Variable expansion for arrays: index = %<test_arr[1].index>>> 31 code TEST-8000-08 item 6 = <<http://illumos.org/msg/TEST-8000-08>> 41 code TEST-8000-08 item 0 = <<Defect>> 42 code TEST-8000-08 item 1 = <<Minor>> 43 code TEST-8000-08 item 2 = <<This entry tests URL variable expansion - url = http://illumos.org/msg… [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xge-queue.c | 35 void* xge_queue_item_data(xge_queue_item_t *item) in xge_queue_item_data() argument 37 return (char *)item + sizeof(xge_queue_item_t); in xge_queue_item_data() 47 __queue_consume(xge_queue_t *queue, int data_max_size, xge_queue_item_t *item) in __queue_consume() argument 59 xge_list_remove(&elem->item); in __queue_consume() 105 xge_os_memcpy(item, elem, sizeof(xge_queue_item_t)); in __queue_consume() 106 xge_os_memcpy(xge_queue_item_data(item), xge_queue_item_data(elem), in __queue_consume() 154 xge_queue_item_t *item = (xge_queue_item_t *)(void *)item_buf; in xge_queue_produce() local 160 item) != XGE_QUEUE_IS_EMPTY) in xge_queue_produce() 227 xge_list_insert_before(&elem->item, &queue->list_head); in xge_queue_produce() 325 xge_list_t *item; in __io_queue_grow() local [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_util.c | 32 inj_item2str(inj_itemtype_t item) in inj_item2str() argument 36 return (item >= 0 && in inj_item2str() 37 item < sizeof (names) / sizeof (char *) ? names[item] : "???"); in inj_item2str() 41 inj_item2mem(inj_itemtype_t item) in inj_item2mem() argument 47 assert(item >= 0 && item < sizeof (mems) / sizeof (inj_memtype_t)); in inj_item2mem() 48 return (mems[item]); in inj_item2mem()
|