/titanic_50/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 63 __nis_init_hash_table(__nis_hash_table_mt *table, in __nis_init_hash_table() argument 68 if (table != 0) { in __nis_init_hash_table() 69 errorcode = pthread_mutex_init(&table->lock, 0); in __nis_init_hash_table() 76 errorcode = pthread_cond_init(&table->cond, 0); in __nis_init_hash_table() 83 errorcode = pthread_mutex_init(&table->traverser_id_lock, 0); in __nis_init_hash_table() 91 table->traversed = 0; in __nis_init_hash_table() 92 table->locked_items = 0; in __nis_init_hash_table() 93 (void) memset(table->keys, 0, sizeof (table->keys)); in __nis_init_hash_table() 94 table->first = 0; in __nis_init_hash_table() 95 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 …]
|
/titanic_50/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_db.c | 184 rfs4_table_t *table = private; in rfs4_dbe_kmem_destructor() local 216 rfs4_table_t *table; in rfs4_database_shutdown() local 219 for (table = db->db_tables; table; table = table->dbt_tnext) { in rfs4_database_shutdown() 220 mutex_enter(&table->dbt_reaper_cv_lock); in rfs4_database_shutdown() 221 table->dbt_reaper_shutdown = TRUE; in rfs4_database_shutdown() 222 cv_broadcast(&table->dbt_reaper_wait); in rfs4_database_shutdown() 224 mutex_exit(&table->dbt_reaper_cv_lock); in rfs4_database_shutdown() 260 rfs4_table_t *table; in rfs4_table_create() local 265 table = kmem_alloc(sizeof (rfs4_table_t), KM_SLEEP); in rfs4_table_create() 266 table->dbt_db = db; in rfs4_table_create() [all …]
|
/titanic_50/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios.c | 65 smbios_test_table_t *table; in smbios_test_table_init() local 71 table = umem_zalloc(sizeof (smbios_test_table_t), UMEM_DEFAULT); in smbios_test_table_init() 72 if (table == NULL) { in smbios_test_table_init() 76 table->stt_data = umem_zalloc(SMBIOS_TEST_ALLOC_SIZE, UMEM_DEFAULT); in smbios_test_table_init() 77 if (table->stt_data == NULL) { in smbios_test_table_init() 78 umem_free(table, sizeof (smbios_test_table_t)); in smbios_test_table_init() 81 table->stt_buflen = SMBIOS_TEST_ALLOC_SIZE; in smbios_test_table_init() 82 table->stt_type = type; in smbios_test_table_init() 83 table->stt_version = version; in smbios_test_table_init() 84 table->stt_nextid = 1; in smbios_test_table_init() [all …]
|
/titanic_50/usr/src/uts/common/ipp/ipgpc/ |
H A D | table.c | 62 hash_table table = taid->table; in ht_insert() local 75 if (((table[x].key == key) && (table[x].info == 1)) || in ht_insert() 76 (table[x].info == 0)) { in ht_insert() 77 table[x].key = key; in ht_insert() 78 table[x].info = 1; in ht_insert() 79 (void) ipgpc_list_insert(&table[x].elements, id); in ht_insert() 80 } else if (table[x].next == NULL) { in ht_insert() 81 table[x].next = kmem_cache_alloc(ht_node_cache, KM_SLEEP); in ht_insert() 82 table[x].next->elements = NULL; in ht_insert() 83 table[x].next->next = NULL; in ht_insert() [all …]
|
H A D | ba_table.c | 48 ba_table_t *table = &bataid->table; in ba_insert() local 60 if (ipgpc_list_insert(&table->masked_values[mskd_val].filter_list, in ba_insert() 66 (void) ipgpc_list_insert(&table->masks, mask); in ba_insert() 68 ++table->masked_values[mskd_val].info; in ba_insert() 91 ba_table_t *table = &bataid->table; in ba_retrieve() local 97 table->masked_values[0].filter_list; in ba_retrieve() 106 for (p = table->masks; p != NULL; p = p->next) { in ba_retrieve() 108 if (bataid->table.masked_values[masked_value].info == 0) { in ba_retrieve() 113 table->masked_values[masked_value].filter_list; in ba_retrieve() 134 ba_table_t *table = &bataid->table; in ba_remove() local [all …]
|
/titanic_50/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…
|
/titanic_50/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
|
/titanic_50/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 254 ib_rcm_info_table(rcm_info_t *rinfo, char **table) in ib_rcm_info_table() argument 273 if (rinfo == NULL || table == NULL) { in ib_rcm_info_table() 319 if (*table == NULL) { in ib_rcm_info_table() 320 *table = malloc(table_size); in ib_rcm_info_table() 322 newtable = realloc(*table, strlen(*table) + table_size); in ib_rcm_info_table() 324 *table = newtable; in ib_rcm_info_table() 326 free(*table); in ib_rcm_info_table() 327 *table = NULL; in ib_rcm_info_table() 332 if (*table == NULL) { in ib_rcm_info_table() 340 (void) strlcat(*table, "\n", sizeof (*table)); in ib_rcm_info_table() [all …]
|
/titanic_50/usr/src/lib/libsqlite/test/ |
H A D | table.test | 17 # $Id: table.test,v 1.22 2003/01/29 18:46:54 drh Exp $ 22 # Create a basic table and verify it is added to sqlite_master 24 do_test table-1.1 { 42 do_test table-1.3 { 44 } {test1 test1 table} 49 do_test table-1.4 { 53 } {test1 test1 table} 57 do_test table-1.5 { 62 # Close and reopen the database. Verify that the table is 65 do_test table-1.6 { [all …]
|
/titanic_50/usr/src/cmd/tbl/ |
H A D | t5.c | 63 table[nlin] = (struct colstr *) alocv((ncol+2)*sizeof(table[0][0])); in gettbl() 74 table[nlin][icol].col = cstore; in gettbl() 75 table[nlin][icol].rcol=0; in gettbl() 79 table[nlin][icol].col = in gettbl() 91 table[nlin][icol].rcol = in gettbl() 92 (char *)maknew(table[nlin][icol].col); in gettbl() 95 table[nlin][icol].rcol = table[nlin][icol].col; in gettbl() 96 table[nlin][icol].col = ""; in gettbl() 101 table[nlin][++icol].col = ""; in gettbl() 106 table[nlin][icol].col = ""; in gettbl() [all …]
|
H A D | t9.c | 26 for(useln=0; useln<MAXLIN && table[useln]==0; useln++); in yetmore() 29 table[0]=table[useln]; in yetmore() 61 table[0][icol].col = dataln; in domore() 62 table[0][icol].rcol=0; in domore() 69 table[0][icol].rcol = maknew(table[0][icol].col); in domore() 72 table[0][icol].rcol = table[0][icol].col; in domore() 73 table[0][icol].col= ""; in domore() 77 table[0][++icol].col = ""; in domore() 81 table[0][icol].col = ""; in domore()
|
/titanic_50/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 186 sata_rcm_info_table(rcm_info_t *rinfo, char **table) in sata_rcm_info_table() argument 203 if (rinfo == NULL || table == NULL) { in sata_rcm_info_table() 250 if (*table == NULL) { in sata_rcm_info_table() 252 *table = calloc(table_size, sizeof (char)); in sata_rcm_info_table() 253 if (*table == NULL) { in sata_rcm_info_table() 257 newtable = realloc(*table, strlen(*table) + table_size); in sata_rcm_info_table() 261 *table = newtable; in sata_rcm_info_table() 269 (void) strcat(*table, "\n"); in sata_rcm_info_table() 273 (void) strcat(*table, " "); in sata_rcm_info_table() 275 (void) strcat(*table, rsrc); in sata_rcm_info_table() [all …]
|
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 206 usb_rcm_info_table(rcm_info_t *rinfo, char **table) in usb_rcm_info_table() argument 225 if (rinfo == NULL || table == NULL) { in usb_rcm_info_table() 272 if (*table == NULL) { in usb_rcm_info_table() 274 *table = calloc(table_size, sizeof (char)); in usb_rcm_info_table() 275 if (*table == NULL) { in usb_rcm_info_table() 281 newtable = realloc(*table, strlen(*table) + table_size); in usb_rcm_info_table() 287 *table = newtable; in usb_rcm_info_table() 294 (void) strcat(*table, "\n"); in usb_rcm_info_table() 298 (void) strcat(*table, " "); in usb_rcm_info_table() 300 (void) strcat(*table, rsrc); in usb_rcm_info_table() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | hsearch.c | 124 static NODE **table; /* The address of the hash table */ variable 129 static TABELEM *table; /* The address of the hash table */ variable 223 table = (TABELEM *) calloc(length, sizeof(TABELEM)); in hcreate() 224 return (table != NULL); in hcreate() 230 free((POINTER) table); in hdestroy() 264 if(table[i].key == NULL) /* Empty slot? */ in hsearch() 266 else if(COMPARE(table[i].key, item.key) == 0) /* Match? */ in hsearch() 267 return(&table[i]); in hsearch() 281 if(table[i].key == NULL) /* Empty slot? */ in hsearch() 283 else if(COMPARE(table[i].key, item.key) == 0) /* Match? */ in hsearch() [all …]
|
/titanic_50/usr/src/cmd/nscd/ |
H A D | nscd_biggest.c | 48 insertn(nsc_keephot_t *table, uint_t n, void *data) in insertn() argument 53 if (n < 1 || table[1].num > n) { in insertn() 57 size = table[0].num; in insertn() 58 if (table[size].num < n) /* biggest so far */ in insertn() 65 if (table[guess].num == n) in insertn() 67 if (table[guess].num > n) in insertn() 76 olddata = table[1].ptr; in insertn() 77 (void) memmove(table + 1, table + 2, in insertn() 79 table[guess].ptr = data; in insertn() 80 table[guess].num = n; in insertn()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | init.c | 53 const sunFm_table_t *table; in init_sunFM() local 55 for (table = sun_fm_tables; table->t_name != NULL; table++) { in init_sunFM() 56 int err = table->t_init(); in init_sunFM() 61 table->t_name)); in init_sunFM() 66 "registration\n", table->t_name); in init_sunFM() 71 "registration failure\n", table->t_name); in init_sunFM() 76 "unknown reason\n", table->t_name); in init_sunFM()
|
/titanic_50/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 253 scsi_rcm_info_table(rcm_info_t *rinfo, char **table) in scsi_rcm_info_table() argument 270 if (rinfo == NULL || table == NULL) in scsi_rcm_info_table() 310 if (*table == NULL) { in scsi_rcm_info_table() 312 *table = calloc(table_size, sizeof (char)); in scsi_rcm_info_table() 313 if (*table == NULL) in scsi_rcm_info_table() 316 newtable = realloc(*table, strlen(*table) + table_size); in scsi_rcm_info_table() 320 *table = newtable; in scsi_rcm_info_table() 326 (void) strcat(*table, "\n"); in scsi_rcm_info_table() 329 (void) strcat(*table, " "); in scsi_rcm_info_table() 330 (void) strcat(*table, rsrc); in scsi_rcm_info_table() [all …]
|
/titanic_50/usr/src/cmd/oawk/ |
H A D | b.c | 835 ccl_chars_t *table; in insert_table() local 846 for (i = 0, table = table_base; i < table_size; i++, table++) { in insert_table() 847 tns = table->cc_ns; in insert_table() 848 tcs = table->cc_cs; in insert_table() 849 tne = table->cc_ne; in insert_table() 850 tce = table->cc_ce; in insert_table() 857 for (; i < table_size; i++, table++) { in insert_table() 858 tns = table->cc_ns; in insert_table() 859 tcs = table->cc_cs; in insert_table() 860 tne = table->cc_ne; in insert_table() [all …]
|
/titanic_50/usr/src/lib/krb5/ss/ |
H A D | invocation.c | 27 register ss_data **table; local 30 table = _ss_table; 33 if (table == (ss_data **) NULL) { 34 table = (ss_data **) malloc(2 * size); 35 table[0] = table[1] = (ss_data *)NULL; 38 for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++) 40 table = (ss_data **) realloc((char *)table, 42 table[sci_idx+1] = (ss_data *) NULL; 43 table[sci_idx] = new_table; 67 _ss_table = table;
|
/titanic_50/usr/src/cmd/spell/ |
H A D | hashlook.c | 37 unsigned *table; variable 63 wp = &table[hindex[t]]; in hashlook() 64 tp = &table[hindex[t+1]]; in hashlook() 124 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime() 125 read(fileno(f), (char *)table, sizeof (*table) * hindex[NI-1]) != in prime() 126 hindex[NI-1] * sizeof (*table)) in prime() 137 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime() 138 fread((char *)table, sizeof (*table), hindex[NI-1], f) != in prime()
|
/titanic_50/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | str.msg | 51 than string table section (%#llx), and will be \ 61 @ MSG_ERR_STRNOTFND "[%d: %s]: String table does not contain string: %s\n" 63 of string table: %s\n" 65 string table to non-NULL value: %s\n" 85 Normally, only string table sections (section type SHT_STRTAB)\n\ 89 string table. This can be used to examine sections that are\n\ 90 known to be in string table format even though they are not\n\ 94 Zero to the end of the string table. The count argument\n\ 99 the string table. This option cannot be used with the final\n\ 100 position in the string table. Attempts to do so will result\n\ [all …]
|
/titanic_50/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 70 info_table_t *table; member 83 static void free_table(info_table_t *table, size_t table_len); 332 info_table_t *table; in merge_rcm_info() local 337 if ((rv = build_table(info, &table, &table_len)) != 0) { in merge_rcm_info() 343 if ((table == NULL) || (table_len == 0)) { in merge_rcm_info() 350 arg.table = table; in merge_rcm_info() 357 free_table(table, table_len); in merge_rcm_info() 470 if ((slot = bsearch(&lookup, arg->table, arg->table_len, in merge_callback() 522 info_table_t *table; in build_table() local 542 table = (info_table_t *)calloc(table_len, sizeof (info_table_t)); in build_table() [all …]
|