/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 844 for (i = 0, table = table_base; i < table_size; i++, table++) { in insert_table() 921 if (MLCMPLT(ne, ce, table->cc_ns, (table->cc_cs - 1))) { in insert_table() 924 if (MLCMPLE(table->cc_ns, (table->cc_cs - 1), ne, ce) && in insert_table() 925 MLCMPLE(ne, ce, table->cc_ne, (table->cc_ce + 1))) { in insert_table() 929 if (MLCMPLT(ne, ce, table->cc_ne, table->cc_ce)) { in insert_table() 933 table++; in insert_table() 980 for (i = 0, table = table_base; i < table_size; i++, table++) { in delete_table() 1029 table++; in delete_table() 1039 table->cc_ns, table->cc_cs)) { in delete_table() 1045 } else if (MLCMPGT(table->cc_ne, table->cc_ce, in delete_table() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 310 if (*table == NULL) { 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() 332 (void) strcat(*table, " "); in scsi_rcm_info_table() 335 (void) strcat(*table, " "); in scsi_rcm_info_table() 338 (void) strcat(*table, " "); in scsi_rcm_info_table() [all …]
|
/illumos-gate/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;
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | basl.h | 106 int basl_table_add_pointer(struct basl_table *const table, 109 int basl_table_append_bytes(struct basl_table *table, const void *bytes, 111 int basl_table_append_checksum(struct basl_table *table, uint32_t start, 114 int basl_table_append_content(struct basl_table *table, void *data, 116 int basl_table_append_fwcfg(struct basl_table *table, 119 int basl_table_append_gas(struct basl_table *table, uint8_t space_id, 122 int basl_table_append_header(struct basl_table *table, 126 int basl_table_append_length(struct basl_table *table, uint8_t size); 127 int basl_table_append_pointer(struct basl_table *table, 129 int basl_table_create(struct basl_table **table, struct vmctx *ctx, [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | disk.c | 46 struct ptable *table; member 110 struct ptable *table; in ptable_print() local 146 if (table != NULL) { in ptable_print() 153 ptable_close(table); in ptable_print() 232 struct ptable *table; in disk_open() local 260 table = NULL; in disk_open() 270 if (od->table == NULL) { in disk_open() 341 if (table == NULL) { in disk_open() 364 if (table != NULL) in disk_open() 365 ptable_close(table); in disk_open() [all …]
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | hashlook.c | 35 unsigned *table; variable 61 wp = &table[hindex[t]]; in hashlook() 62 tp = &table[hindex[t+1]]; in hashlook() 122 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime() 123 read(fileno(f), (char *)table, sizeof (*table) * hindex[NI-1]) != in prime() 124 hindex[NI-1] * sizeof (*table)) in prime() 135 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime() 136 fread((char *)table, sizeof (*table), hindex[NI-1], f) != in prime()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | str.msg | 63 of string table: %s\n" 65 string table to non-NULL value: %s\n" 107 symbol table or string table via its sh_link field, then the\n\ 108 associated string table is used.\n" 114 symbol table or string table via its sh_link field, then the\n\ 115 associated string table is used.\n" 122 symbol table or string table via its sh_link field, then the\n\ 123 associated string table is used.\n" 150 from a string table section.\n\ 181 contents of the string table section.\n\ [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios_test_fwinfo.c | 56 smbios_test_table_append_string(table, smbios_fwinfo_id); in smbios_test_fwinfo_mktable_common_fini() 58 smbios_test_table_append_string(table, smbios_fwinfo_mfg); in smbios_test_fwinfo_mktable_common_fini() 59 smbios_test_table_append_string(table, smbios_fwinfo_lsv); in smbios_test_fwinfo_mktable_common_fini() 60 smbios_test_table_str_fini(table); in smbios_test_fwinfo_mktable_common_fini() 61 smbios_test_table_append_eot(table); in smbios_test_fwinfo_mktable_common_fini() 76 smbios_test_table_append_eot(table); in smbios_test_fwinfo_mktable_invlen_base() 92 (void) smbios_test_table_append(table, &fw, sizeof (fw)); in smbios_test_fwinfo_mktable_invlen_comps() 93 smbios_test_fwinfo_mktable_common_fini(table); in smbios_test_fwinfo_mktable_invlen_comps() 104 (void) smbios_test_table_append(table, &fw, sizeof (fw)); in smbios_test_fwinfo_mktable_nocomps() 105 smbios_test_fwinfo_mktable_common_fini(table); in smbios_test_fwinfo_mktable_nocomps() [all …]
|
H A D | smbios_test_proc.c | 85 smbios_test_proc_mktable_25(smbios_test_table_t *table) in smbios_test_proc_mktable_25() argument 92 smbios_test_table_append_string(table, smbios_proc_sock); in smbios_test_proc_mktable_25() 93 smbios_test_table_append_string(table, smbios_proc_mfg); in smbios_test_proc_mktable_25() 97 smbios_test_table_append_string(table, smbios_proc_pn); in smbios_test_proc_mktable_25() 98 smbios_test_table_str_fini(table); in smbios_test_proc_mktable_25() 99 smbios_test_table_append_eot(table); in smbios_test_proc_mktable_25() 110 smbios_test_proc_mktable_36(smbios_test_table_t *table) in smbios_test_proc_mktable_36() argument 127 smbios_test_table_append_string(table, smbios_proc_mfg); in smbios_test_proc_mktable_36() 131 smbios_test_table_append_string(table, smbios_proc_pn); in smbios_test_proc_mktable_36() 132 smbios_test_table_str_fini(table); in smbios_test_proc_mktable_36() [all …]
|
H A D | smbios_test_slot.c | 51 smbios_test_slot_mktable(smbios_test_table_t *table) in smbios_test_slot_mktable() argument 73 smbios_test_table_append_string(table, smbios_test_name); in smbios_test_slot_mktable() 74 smbios_test_table_str_fini(table); in smbios_test_slot_mktable() 76 smbios_test_table_append_eot(table); in smbios_test_slot_mktable() 103 smbios_test_table_append_raw(table, &cont, contlen); in smbios_test_slot_mktable_nopeers() 104 smbios_test_table_append_string(table, smbios_test_name); in smbios_test_slot_mktable_nopeers() 105 smbios_test_table_str_fini(table); in smbios_test_slot_mktable_nopeers() 106 smbios_test_table_append_eot(table); in smbios_test_slot_mktable_nopeers() 122 smbios_test_slot_mktable_35(smbios_test_table_t *table) in smbios_test_slot_mktable_35() argument 152 smbios_test_table_str_fini(table); in smbios_test_slot_mktable_34_peers() [all …]
|
H A D | smbios_test_pinfo.c | 34 smbios_test_pinfo_mktable_amd64(smbios_test_table_t *table) in smbios_test_pinfo_mktable_amd64() argument 44 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_amd64() 45 smbios_test_table_append_eot(table); in smbios_test_pinfo_mktable_amd64() 148 smbios_test_table_append_raw(table, &rv, sizeof (rv)); in smbios_test_pinfo_mktable_riscv() 149 smbios_test_table_append_eot(table); in smbios_test_pinfo_mktable_riscv() 382 smbios_test_table_append_eot(table); in smbios_test_pinfo_mktable_invlen1() 409 smbios_test_table_append_raw(table, &rv, sizeof (rv)); in smbios_test_pinfo_mktable_invlen2() 410 smbios_test_table_append_eot(table); in smbios_test_pinfo_mktable_invlen2() 437 smbios_test_table_append_raw(table, &rv, sizeof (rv)); in smbios_test_pinfo_mktable_invlen3() 438 smbios_test_table_append_eot(table); in smbios_test_pinfo_mktable_invlen3() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_mindex2.cc | 59 if (table != NULL) { in configure() 142 return (table); in getTable() 262 if (table == 0) { in selectMapping() 300 table->mapping.objType = updateMappingObj(table->mapping.tm, in selectMapping() 303 table->mapping.expireType = table->mapping.objType; in selectMapping() 326 t = table->mapping.tm; in selectMapping() 351 t = table->mapping.tm; in selectMapping() 876 table->setEnumMode(0); in queryLDAP() 1021 table->mapping.ttl; in queryLDAP() 1606 tab = table->gettab(); in storeLDAP() [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 70 info_table_t *table; member 332 info_table_t *table; in merge_rcm_info() local 350 arg.table = table; in merge_rcm_info() 522 info_table_t *table; in build_table() local 543 if (table == NULL) in build_table() 575 slot = &table[table_len]; in build_table() 611 free(table); in build_table() 619 *tablep = table; in build_table() 635 if (table != NULL) { in free_table() 638 free(table[index].path); in free_table() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | hashtable.c | 96 free(h->table); in hashtable_expand() 97 h->table = newtable; in hashtable_expand() 105 h->table = newtable; in hashtable_expand() 156 e->next = h->table[index]; in hashtable_insert() 157 h->table[index] = e; in hashtable_insert() 169 e = h->table[index]; in hashtable_search() 193 pE = &(h->table[index]); in hashtable_remove() 220 struct entry **table = h->table; in hashtable_destroy() local 225 e = table[i]; in hashtable_destroy() 234 e = table[i]; in hashtable_destroy() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | keytab.c | 105 kt->table = NULL; in _new_KeyTab() 117 kt->table = (KeySym *) malloc(sizeof(kt->table[0]) * kt->size); in _new_KeyTab() 118 if(!kt->table) { in _new_KeyTab() 149 if(kt->table) in _del_KeyTab() 150 free(kt->table); in _del_KeyTab() 173 KeySym *newtab = (KeySym *) realloc(kt->table, sizeof(kt->table[0]) * in _kt_extend_table() 186 kt->table = newtab; in _kt_extend_table() 315 memmove(kt->table + first, kt->table + first + 1, in _kt_set_keyfn() 358 memmove(kt->table + last + 1, kt->table + last, in _kt_set_keyfn() 420 test = _kt_compare_strings(kt->table[mid].keyseq, kt->table[mid].nc, in _kt_locate_keybinding() [all …]
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prtable.c | 129 if (table->t_size == table->t_nent) { in add_element() 130 if ((table->t_size *= 2) == 0) in add_element() 131 table->t_size = 4; in add_element() 132 table->t_list = Realloc(table->t_list, in add_element() 133 table->t_size * sizeof (long)); in add_element() 135 table->t_list[table->t_nent++] = element; in add_element() 144 for (i = 0; i < table->t_nent; i++) in has_element() 145 if (table->t_list[i] == element) in has_element() 159 if (table->t_nent) { in foreach_element() 160 for (i = 0; i < table->t_nent; i++) in foreach_element() [all …]
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_mmu.c | 72 paddr_t table; in find_pte() local 85 table = top_page_table; in find_pte() 91 pteval = get_pteval(table, index); in find_pte() 97 table = ma_to_pa(pteval & MMU_PAGEMASK); in find_pte() 98 if (table == -1) { in find_pte() 110 set_pteval(table, index, l, pteval); in find_pte() 112 table = new_table; in find_pte() 120 *pa = table + index * pte_size; in find_pte() 121 return (map_pte(table, index)); in find_pte()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | tsol.c | 49 free_table(tnrhc_hash_t **table, int ntable) in free_table() argument 52 if (*table != NULL) in free_table() 53 mdb_free(*table, TNRHC_SIZE * sizeof (**table)); in free_table() 54 table++; in free_table() 65 read_table(const char *symname, tnrhc_hash_t **table, int ntable) in read_table() argument 75 if (mdb_vread(table, ntable * sizeof (*table), in read_table() 80 for (hp = table; hp < table + ntable; hp++) { in read_table() 86 hp - table, addr); in read_table() 87 free_table(table, (hp - table) + 1); in read_table()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | init.c | 134 RSTATUS **table = NULL; in init_requests() local 238 list_append((void ***)&table, (void *)rsp); in init_requests() 245 if (table != NULL) { in init_requests() 248 for (i = 0; table[i] != NULL; i++); in init_requests() 250 qsort((void *)table, i, sizeof(RSTATUS *), in init_requests() 253 for (i = 0; table[i] != NULL; i++) { in init_requests() 254 table[i]->next = table[i + 1]; in init_requests() 255 if (table[i + 1] != NULL) in init_requests() 256 table[i + 1]->prev = table[i]; in init_requests() 259 Request_List = *table; in init_requests() [all …]
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t8.c | 48 s = table[nl][c].col; in putline() 96 s = table[nl][c].col; in putline() 140 s= table[nl][c].col; in putline() 148 if (table[nl][c].rcol) in putline() 154 if (vspen(table[ip][c].col)) in putline() 170 s= table[nl][c].rcol; in putline() 183 if (real(table[nl][c].col)) in putline() 206 if (vspen(table[ip][c].col)) in putline() 229 if (vspen(table[ip][c].col)) in putline() 259 if (vspen(table[nl][c].col) && (nl==0 || (lf=prev(nl))<0 || !vspen(table[lf][c].col))) in putline() [all …]
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 1947 table->table = new_table; in add_lookup_entry() 1960 table->table[table->n_entries].index = table->n_entries; in add_lookup_entry() 1961 table->table[table->n_entries].node = node; in add_lookup_entry() 1962 table->table[table->n_entries].n_usage = 0; in add_lookup_entry() 1963 table->table[table->n_entries].usage = NULL; in add_lookup_entry() 2009 entry = bsearch(&lookup_arg, table->table, table->n_entries, in lookup() 2062 if (table->table[i].name) in empty_table() 2068 if (table->table[i].usage) in empty_table() 2071 if (table->table) in empty_table() 2072 free(table->table); in empty_table() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 540 if (*table == NULL) in fp_rcm_info_table() 543 newtable = realloc(*table, strlen(*table) + table_size); in fp_rcm_info_table() 545 *table = newtable; in fp_rcm_info_table() 547 if (*table == NULL) in fp_rcm_info_table() 553 (void) strcat(*table, "\n"); in fp_rcm_info_table() 556 (void) strcat(*table, " "); in fp_rcm_info_table() 557 (void) strcat(*table, rsrc); in fp_rcm_info_table() 559 (void) strcat(*table, " "); in fp_rcm_info_table() 562 (void) strcat(*table, " "); in fp_rcm_info_table() 565 (void) strcat(*table, " "); in fp_rcm_info_table() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/showmount/ |
H A D | showmount.c | 69 static struct mountbody **table; variable 169 table = calloc(numentries, sizeof (struct mountbody *)); in main() 170 if (table == NULL) { in main() 175 for (ml = result_list, tb = &table[0]; in main() 186 qsort(table, numentries, sizeof (struct mountbody *), sortpath); in main() 188 qsort(table, numentries, sizeof (struct mountbody *), sorthost); in main() 190 for (tb = table; tb < table + numentries; tb++) in main() 195 for (tb = table; tb < table + numentries; tb++) { in main() 202 for (tb = table; tb < table + numentries; tb++) { in main()
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | table.c | 65 store(table, key, datum) in store() argument 66 stringtable table; in store() 74 cur = table[index]; 80 table[index] = new; 85 lookup(table, key) in lookup() argument 86 stringtable table; in lookup() 91 cur = table[tablekey(key)];
|