/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 61 __nis_init_hash_table(__nis_hash_table_mt *table, in __nis_init_hash_table() argument 66 if (table != 0) { in __nis_init_hash_table() 67 errorcode = pthread_mutex_init(&table->lock, 0); in __nis_init_hash_table() 74 errorcode = pthread_cond_init(&table->cond, 0); in __nis_init_hash_table() 81 errorcode = pthread_mutex_init(&table->traverser_id_lock, 0); in __nis_init_hash_table() 89 table->traversed = 0; in __nis_init_hash_table() 90 table->locked_items = 0; in __nis_init_hash_table() 91 (void) memset(table->keys, 0, sizeof (table->keys)); in __nis_init_hash_table() 92 table->first = 0; in __nis_init_hash_table() 93 table->destroyItem = itemDestructor; in __nis_init_hash_table() [all …]
|
H A D | db_mindex.cc | 66 table = NULL; in db_mindex() 117 table = new db_table(); in init() 118 if (table == NULL) { in init() 145 if (table) table->reset(); in reset_tables() 182 (table->mapping.fromLDAP || in satisfy_query() 183 table->mapping.objType != NIS_TABLE_OBJ)); in satisfy_query() 189 if (fromLDAP && table->mapping.matchFetch == mat_always) { in satisfy_query() 192 READLOCKNR(table, lockcode, in satisfy_query() 201 READUNLOCKNR(table, lockcode, in satisfy_query() 228 if (table->mapping.matchFetch != mat_never) { in satisfy_query() [all …]
|
H A D | db_mindex3.cc | 129 (void) mutex_lock(&table->mapping.enumLock); in entriesFromLDAP() 130 if (table->mapping.enumTid != 0) { in entriesFromLDAP() 133 stat = pthread_kill(table->mapping.enumTid, 0); in entriesFromLDAP() 137 myself, table->mapping.enumTid, in entriesFromLDAP() 138 NIL(t->objName), table->mapping.enumStat, in entriesFromLDAP() 139 ldap_err2string(table->mapping.enumStat)); in entriesFromLDAP() 141 table->mapping.enumTid = 0; in entriesFromLDAP() 142 table->mapping.enumStat = -1; in entriesFromLDAP() 144 if (table->mapping.enumDeferred) { in entriesFromLDAP() 147 table->mapping.enumDeferred = 0; in entriesFromLDAP() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | basl.c | 101 basl_dump_table(const struct basl_table *const table, const bool mem) in basl_dump_table() argument 103 const ACPI_TABLE_HEADER *const header = table->data; in basl_dump_table() 107 data = table->data; in basl_dump_table() 109 data = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off, in basl_dump_table() 110 table->len); in basl_dump_table() 118 BHYVE_ACPI_BASE + table->off, mem ? "Memory" : "FwCfg"); in basl_dump_table() 119 hexdump(data, table->len, NULL, 0); in basl_dump_table() 122 BHYVE_ACPI_BASE + table->off, mem ? "Memory" : "FwCfg"); in basl_dump_table() 125 hexdump_set_addr(&h, BHYVE_ACPI_BASE + table->off); in basl_dump_table() 126 (void) hexdump_fileh(&h, data, table->len, HDF_DEFAULT, stdout); in basl_dump_table() [all …]
|
H A D | acpi.c | 334 struct basl_table *table; in basl_load() local 338 BASL_EXEC(basl_table_create(&table, ctx, name, BASL_TABLE_ALIGNMENT)); in basl_load() 339 BASL_EXEC(basl_table_append_bytes(table, addr, sb.st_size)); in basl_load() 447 struct basl_table *table; in build_facs() local 448 BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_FACS, in build_facs() 455 BASL_EXEC(basl_table_append_bytes(table, &facs, sizeof(facs))); in build_facs() 464 struct basl_table *table; in build_fadt() local 466 BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_FADT, in build_fadt() 470 BASL_EXEC(basl_table_append_header(table, ACPI_SIG_FADT, 5, 1)); in build_fadt() 517 BASL_EXEC(basl_table_append_content(table, &fadt, sizeof(fadt))); in build_fadt() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_db.c | 219 rfs4_table_t *table; in rfs4_database_shutdown() local 222 for (table = db->db_tables; table; table = table->dbt_tnext) { in rfs4_database_shutdown() 223 mutex_enter(&table->dbt_reaper_cv_lock); in rfs4_database_shutdown() 224 table->dbt_reaper_shutdown = TRUE; in rfs4_database_shutdown() 225 cv_broadcast(&table->dbt_reaper_wait); in rfs4_database_shutdown() 227 mutex_exit(&table->dbt_reaper_cv_lock); in rfs4_database_shutdown() 307 rfs4_table_t *table; in rfs4_table_create() local 312 table = kmem_alloc(sizeof (rfs4_table_t), KM_SLEEP); in rfs4_table_create() 313 table->dbt_db = db; in rfs4_table_create() 314 rw_init(table->dbt_t_lock, NULL, RW_DEFAULT, NULL); in rfs4_table_create() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | table.c | 60 hash_table table = taid->table; in ht_insert() local 73 if (((table[x].key == key) && (table[x].info == 1)) || in ht_insert() 74 (table[x].info == 0)) { in ht_insert() 75 table[x].key = key; in ht_insert() 76 table[x].info = 1; in ht_insert() 77 (void) ipgpc_list_insert(&table[x].elements, id); in ht_insert() 78 } else if (table[x].next == NULL) { in ht_insert() 79 table[x].next = kmem_cache_alloc(ht_node_cache, KM_SLEEP); in ht_insert() 80 table[x].next->elements = NULL; in ht_insert() 81 table[x].next->next = NULL; in ht_insert() [all …]
|
H A D | ba_table.c | 46 ba_table_t *table = &bataid->table; in ba_insert() local 58 if (ipgpc_list_insert(&table->masked_values[mskd_val].filter_list, in ba_insert() 64 (void) ipgpc_list_insert(&table->masks, mask); in ba_insert() 66 ++table->masked_values[mskd_val].info; in ba_insert() 89 ba_table_t *table = &bataid->table; in ba_retrieve() local 95 table->masked_values[0].filter_list; in ba_retrieve() 104 for (p = table->masks; p != NULL; p = p->next) { in ba_retrieve() 106 if (bataid->table.masked_values[masked_value].info == 0) { in ba_retrieve() 111 table->masked_values[masked_value].filter_list; in ba_retrieve() 132 ba_table_t *table = &bataid->table; in ba_remove() local [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | part.c | 256 ptable_gptread(struct ptable *table, void *dev, diskread_t dread) in ptable_gptread() argument 266 buf = malloc(table->sectorsize); in ptable_gptread() 269 tbl = malloc(table->sectorsize * MAXTBLSZ); in ptable_gptread() 276 ptable_close(table); in ptable_gptread() 277 table = NULL; in ptable_gptread() 282 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1, in ptable_gptread() 283 table->sectorsize); in ptable_gptread() 287 table->sectorsize - 1) / table->sectorsize); in ptable_gptread() 289 gpt_checktbl(phdr, tbl, size * table->sectorsize, in ptable_gptread() 290 table->sectors - 1) == 0) { in ptable_gptread() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/euro/utils/ |
H A D | Makefile.com | 39 maz%wi2.c maz%win2.c orig%646de%8859.c table.8859-1.IBM-500.c table.IBM-500.8859-1.c table.alt.iso.… 40 table.alt.mac.c table.alt.win.c table.dhn.ib2.c table.dhn.is2.c table.dhn.maz.c table.dhn.wi2.c tab… 41 table.ib2.maz.c table.ib2.wi2.c table.is2.dhn.c table.is2.ib2.c table.is2.maz.c table.is2.wi2.c tab… 42 table.iso.mac.c table.iso.win.c table.koi.alt.c table.koi.iso.c table.koi.mac.c table.koi.win.c tab… 43 table.mac.koi.c table.mac.win.c table.maz.dhn.c table.maz.ib2.c table.maz.is2.c table.maz.wi2.c tab… 44 table.wi2.is2.c table.wi2.maz.c table.win.alt.c table.win.iso.c table.win.koi.c table.win.mac.c wi2…
|
/illumos-gate/usr/src/lib/iconv_modules/euro/utils/gentbl/ |
H A D | Makefile | 143 TABLES = table.8859-1.IBM-500.c table.IBM-500.8859-1.c table.alt.iso.c table.alt.koi.c \ 144 table.alt.mac.c table.alt.win.c table.dhn.ib2.c table.dhn.is2.c table.dhn.maz.c table.dhn.wi2.c tab… 145 table.ib2.maz.c table.ib2.wi2.c table.is2.dhn.c table.is2.ib2.c table.is2.maz.c table.is2.wi2.c tab… 146 table.iso.mac.c table.iso.win.c table.koi.alt.c table.koi.iso.c table.koi.mac.c table.koi.win.c tab… 147 table.mac.koi.c table.mac.win.c table.maz.dhn.c table.maz.ib2.c table.maz.is2.c table.maz.wi2.c tab… 148 table.wi2.is2.c table.wi2.maz.c table.win.alt.c table.win.iso.c table.win.koi.c table.win.mac.c
|
/illumos-gate/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios.c | 48 smbios_test_table_t *table; in smbios_test_table_init() local 54 table = umem_zalloc(sizeof (smbios_test_table_t), UMEM_DEFAULT); in smbios_test_table_init() 55 if (table == NULL) { in smbios_test_table_init() 59 table->stt_data = umem_zalloc(SMBIOS_TEST_ALLOC_SIZE, UMEM_DEFAULT); in smbios_test_table_init() 60 if (table->stt_data == NULL) { in smbios_test_table_init() 61 umem_free(table, sizeof (smbios_test_table_t)); in smbios_test_table_init() 64 table->stt_buflen = SMBIOS_TEST_ALLOC_SIZE; in smbios_test_table_init() 65 table->stt_type = type; in smbios_test_table_init() 66 table->stt_version = version; in smbios_test_table_init() 67 table->stt_nextid = 1; in smbios_test_table_init() [all …]
|
H A D | smbios_test_addinfo.c | 81 smbios_test_addinfo_mktable_noent(smbios_test_table_t *table) in smbios_test_addinfo_mktable_noent() argument 89 (void) smbios_test_table_append(table, &add, sizeof (add)); in smbios_test_addinfo_mktable_noent() 90 smbios_test_table_append_eot(table); in smbios_test_addinfo_mktable_noent() 107 smbios_test_addinfo_mktable_ents(smbios_test_table_t *table) in smbios_test_addinfo_mktable_ents() argument 137 (void) smbios_test_table_append(table, &add, sizeof (add)); in smbios_test_addinfo_mktable_ents() 138 (void) smbios_test_table_append_raw(table, &ent0, sizeof (ent0)); in smbios_test_addinfo_mktable_ents() 139 (void) smbios_test_table_append_raw(table, &smbios_addinfo_ent0_data, in smbios_test_addinfo_mktable_ents() 141 (void) smbios_test_table_append_raw(table, &ent1, sizeof (ent1)); in smbios_test_addinfo_mktable_ents() 142 (void) smbios_test_table_append_raw(table, &ent2, sizeof (ent2)); in smbios_test_addinfo_mktable_ents() 143 (void) smbios_test_table_append_raw(table, smbios_addinfo_ent2_data, in smbios_test_addinfo_mktable_ents() [all …]
|
H A D | smbios_test_chassis.c | 31 smbios_test_chassis_mktable_invlen_base(smbios_test_table_t *table) in smbios_test_chassis_mktable_invlen_base() argument 38 (void) smbios_test_table_append(table, &hdr, sizeof (hdr)); in smbios_test_chassis_mktable_invlen_base() 39 smbios_test_table_append_eot(table); in smbios_test_chassis_mktable_invlen_base() 77 smbios_test_chassis_mktable_append_strings(smbios_test_table_t *table) in smbios_test_chassis_mktable_append_strings() argument 79 smbios_test_table_append_string(table, smbios_chassis_mfg); in smbios_test_chassis_mktable_append_strings() 80 smbios_test_table_append_string(table, smbios_chassis_vers); in smbios_test_chassis_mktable_append_strings() 81 smbios_test_table_append_string(table, smbios_chassis_serial); in smbios_test_chassis_mktable_append_strings() 82 smbios_test_table_append_string(table, smbios_chassis_asset); in smbios_test_chassis_mktable_append_strings() 89 smbios_test_chassis_mktable_base(smbios_test_table_t *table) in smbios_test_chassis_mktable_base() argument 94 (void) smbios_test_table_append(table, &ch, sizeof (ch)); in smbios_test_chassis_mktable_base() [all …]
|
H A D | smbios_test_proc.c | 87 smbios_test_proc_mktable_25(smbios_test_table_t *table) in smbios_test_proc_mktable_25() argument 93 (void) smbios_test_table_append(table, &proc, SMBIOS_PROC_LEN_25); in smbios_test_proc_mktable_25() 94 smbios_test_table_append_string(table, smbios_proc_sock); in smbios_test_proc_mktable_25() 95 smbios_test_table_append_string(table, smbios_proc_mfg); in smbios_test_proc_mktable_25() 96 smbios_test_table_append_string(table, smbios_proc_vers); in smbios_test_proc_mktable_25() 97 smbios_test_table_append_string(table, smbios_proc_serial); in smbios_test_proc_mktable_25() 98 smbios_test_table_append_string(table, smbios_proc_asset); in smbios_test_proc_mktable_25() 99 smbios_test_table_append_string(table, smbios_proc_pn); in smbios_test_proc_mktable_25() 100 smbios_test_table_str_fini(table); in smbios_test_proc_mktable_25() 101 smbios_test_table_append_eot(table); in smbios_test_proc_mktable_25() [all …]
|
H A D | smbios_test_strprop.c | 26 smbios_test_strprop_mktable_basic(smbios_test_table_t *table) in smbios_test_strprop_mktable_basic() argument 36 (void) smbios_test_table_append(table, &str, sizeof (str)); in smbios_test_strprop_mktable_basic() 37 smbios_test_table_append_string(table, smbios_strprop_path); in smbios_test_strprop_mktable_basic() 38 smbios_test_table_str_fini(table); in smbios_test_strprop_mktable_basic() 39 smbios_test_table_append_eot(table); in smbios_test_strprop_mktable_basic() 45 smbios_test_strprop_mktable_badstr(smbios_test_table_t *table) in smbios_test_strprop_mktable_badstr() argument 55 (void) smbios_test_table_append(table, &str, sizeof (str)); in smbios_test_strprop_mktable_badstr() 56 smbios_test_table_append_string(table, smbios_strprop_path); in smbios_test_strprop_mktable_badstr() 57 smbios_test_table_str_fini(table); in smbios_test_strprop_mktable_badstr() 58 smbios_test_table_append_eot(table); in smbios_test_strprop_mktable_badstr() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | table.test | 15 # $Id: table.test,v 1.22 2003/01/29 18:46:54 drh Exp $ 20 # Create a basic table and verify it is added to sqlite_master 22 do_test table-1.1 { 40 do_test table-1.3 { 42 } {test1 test1 table} 47 do_test table-1.4 { 51 } {test1 test1 table} 55 do_test table-1.5 { 60 # Close and reopen the database. Verify that the table is 63 do_test table-1.6 { [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 251 ib_rcm_info_table(rcm_info_t *rinfo, char **table) in ib_rcm_info_table() argument 270 if (rinfo == NULL || table == NULL) { in ib_rcm_info_table() 316 if (*table == NULL) { in ib_rcm_info_table() 317 *table = malloc(table_size); in ib_rcm_info_table() 319 newtable = realloc(*table, strlen(*table) + table_size); in ib_rcm_info_table() 321 *table = newtable; in ib_rcm_info_table() 323 free(*table); in ib_rcm_info_table() 324 *table = NULL; in ib_rcm_info_table() 329 if (*table == NULL) { in ib_rcm_info_table() 337 (void) strlcat(*table, "\n", sizeof (*table)); in ib_rcm_info_table() [all …]
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t5.c | 61 table[nlin] = (struct colstr *) alocv((ncol+2)*sizeof(table[0][0])); in gettbl() 72 table[nlin][icol].col = cstore; in gettbl() 73 table[nlin][icol].rcol=0; in gettbl() 77 table[nlin][icol].col = in gettbl() 89 table[nlin][icol].rcol = in gettbl() 90 (char *)maknew(table[nlin][icol].col); in gettbl() 93 table[nlin][icol].rcol = table[nlin][icol].col; in gettbl() 94 table[nlin][icol].col = ""; in gettbl() 99 table[nlin][++icol].col = ""; in gettbl() 104 table[nlin][icol].col = ""; in gettbl() [all …]
|
H A D | t9.c | 24 for(useln=0; useln<MAXLIN && table[useln]==0; useln++); in yetmore() 27 table[0]=table[useln]; in yetmore() 59 table[0][icol].col = dataln; in domore() 60 table[0][icol].rcol=0; in domore() 67 table[0][icol].rcol = maknew(table[0][icol].col); in domore() 70 table[0][icol].rcol = table[0][icol].col; in domore() 71 table[0][icol].col= ""; in domore() 75 table[0][++icol].col = ""; in domore() 79 table[0][icol].col = ""; in domore()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 184 sata_rcm_info_table(rcm_info_t *rinfo, char **table) in sata_rcm_info_table() argument 201 if (rinfo == NULL || table == NULL) { in sata_rcm_info_table() 248 if (*table == NULL) { in sata_rcm_info_table() 250 *table = calloc(table_size, sizeof (char)); in sata_rcm_info_table() 251 if (*table == NULL) { in sata_rcm_info_table() 255 newtable = realloc(*table, strlen(*table) + table_size); in sata_rcm_info_table() 259 *table = newtable; in sata_rcm_info_table() 267 (void) strcat(*table, "\n"); in sata_rcm_info_table() 271 (void) strcat(*table, " "); in sata_rcm_info_table() 273 (void) strcat(*table, rsrc); in sata_rcm_info_table() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 203 usb_rcm_info_table(rcm_info_t *rinfo, char **table) in usb_rcm_info_table() argument 222 if (rinfo == NULL || table == NULL) { in usb_rcm_info_table() 269 if (*table == NULL) { in usb_rcm_info_table() 271 *table = calloc(table_size, sizeof (char)); in usb_rcm_info_table() 272 if (*table == NULL) { in usb_rcm_info_table() 278 newtable = realloc(*table, strlen(*table) + table_size); in usb_rcm_info_table() 284 *table = newtable; in usb_rcm_info_table() 291 (void) strcat(*table, "\n"); in usb_rcm_info_table() 295 (void) strcat(*table, " "); in usb_rcm_info_table() 297 (void) strcat(*table, rsrc); in usb_rcm_info_table() [all …]
|
/illumos-gate/usr/src/cmd/acpi/iasl/ |
H A D | new_table.txt | 1 How to add a new ACPI table to ACPICA and the iASL compiler. 5 new ACPI table: 6 1) Create a full definition of the table and any subtables 8 2) Add disassembler support for the new table 9 3) Add iASL table compiler support for the new table 10 4) Create a default template for the new table for iASL -T 23 Use ACPI_TABLE_HEADER for the common ACPI table header. 24 Subtables should be defined separately from the main table. 27 The disassembler and data table compiler depends on this. 29 the table came from. [all …]
|
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_riscv.c | 327 dis_riscv_rtype_32(dis_handle_t *dhp, uint32_t instr, dis_riscv_instr_t *table, in dis_riscv_rtype_32() argument 330 (void) dis_snprintf(buf, buflen, "%s %s,%s,%s", table->drv_name, in dis_riscv_rtype_32() 337 dis_riscv_itype_32(dis_handle_t *dhp, uint32_t instr, dis_riscv_instr_t *table, in dis_riscv_itype_32() argument 345 table->drv_name, dis_riscv_regs[DIS_RISCV_RD(instr)], in dis_riscv_itype_32() 349 table->drv_name, dis_riscv_regs[DIS_RISCV_RD(instr)], in dis_riscv_itype_32() 355 dis_riscv_btype_32(dis_handle_t *dhp, uint32_t instr, dis_riscv_instr_t *table, in dis_riscv_btype_32() argument 365 table->drv_name, dis_riscv_regs[DIS_RISCV_RD(instr)], in dis_riscv_btype_32() 369 table->drv_name, dis_riscv_regs[DIS_RISCV_RD(instr)], in dis_riscv_btype_32() 375 dis_riscv_load(dis_handle_t *dhp, uint32_t instr, dis_riscv_instr_t *table, in dis_riscv_load() argument 383 table->drv_name, dis_riscv_regs[DIS_RISCV_RD(instr)], in dis_riscv_load() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | hsearch.c | 122 static NODE **table; /* The address of the hash table */ variable 127 static TABELEM *table; /* The address of the hash table */ variable 230 old_table = table; in hcreate() 231 table = local_table; in hcreate() 250 if (table[i] != (NODE *)NULL) { in hdestroy() 251 p = table[i]; in hdestroy() 264 local_table = (POINTER)table; in hdestroy() 265 table = 0; in hdestroy() 300 if (table[i].key == NULL) /* Empty slot? */ in hsearch() 302 else if (COMPARE(table[i].key, item.key) == 0) /* Match? */ in hsearch() [all …]
|