/titanic_44/usr/src/cmd/mandoc/ |
H A D | tbl.c | 33 tbl_read(struct tbl_node *tbl, int ln, const char *p, int offs) in tbl_read() argument 48 if (TBL_PART_OPTS == tbl->part && len) in tbl_read() 50 tbl->part = TBL_PART_LAYOUT; in tbl_read() 54 switch (tbl->part) { in tbl_read() 56 return(tbl_option(tbl, ln, p) ? ROFF_IGN : ROFF_ERR); in tbl_read() 58 return(tbl_layout(tbl, ln, p) ? ROFF_IGN : ROFF_ERR); in tbl_read() 60 return(tbl_cdata(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); in tbl_read() 69 return(tbl_data(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); in tbl_read() 75 struct tbl_node *tbl; in tbl_alloc() local 77 tbl = mandoc_calloc(1, sizeof(struct tbl_node)); in tbl_alloc() [all …]
|
H A D | tbl_data.c | 38 data(struct tbl_node *tbl, struct tbl_span *dp, in data() argument 66 tbl->parse, ln, *pos, NULL); in data() 94 while (p[*pos] && p[*pos] != tbl->opts.tab) in data() 104 tbl->part = TBL_PART_CDATA; in data() 133 tbl->parse, ln, sv, NULL); in data() 140 tbl_cdata(struct tbl_node *tbl, int ln, const char *p) in tbl_cdata() argument 148 dat = tbl->last_span->last; in tbl_cdata() 152 if (p[pos] == tbl->opts.tab) { in tbl_cdata() 153 tbl->part = TBL_PART_DATA; in tbl_cdata() 155 return(data(tbl, tbl->last_span, ln, p, &pos)); in tbl_cdata() [all …]
|
H A D | tbl_layout.c | 67 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() argument 119 tbl->parse, ln, *pos, NULL); in mods() 136 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in mods() 178 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in mods() 202 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in mods() 208 cell(struct tbl_node *tbl, struct tbl_row *rp, in cell() argument 228 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in cell() 245 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in cell() 252 mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, in cell() 265 if (TBL_CELL_DOWN == c && rp == tbl->first_row) { in cell() [all …]
|
H A D | out.c | 142 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp) in tblcalc() argument 154 assert(NULL == tbl->cols); in tblcalc() 155 tbl->cols = mandoc_calloc in tblcalc() 174 col = &tbl->cols[dp->layout->head->ident]; in tblcalc() 175 tblcalc_data(tbl, col, sp->opts, dp); in tblcalc() 181 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, in tblcalc_data() argument 192 sz = (*tbl->len)(1, tbl->arg); in tblcalc_data() 203 tblcalc_literal(tbl, col, dp); in tblcalc_data() 206 tblcalc_number(tbl, col, opts, dp); in tblcalc_data() 217 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, in tblcalc_literal() argument [all …]
|
H A D | tbl_opts.c | 85 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, enum tbl_ident key) in arg() argument 96 mandoc_msg(MANDOCERR_TBL, tbl->parse, in arg() 112 mandoc_msg(MANDOCERR_TBL, tbl->parse, in arg() 118 mandoc_msg(MANDOCERR_TBL, tbl->parse, in arg() 124 if ('\0' != (tbl->opts.tab = p[(*pos)++])) in arg() 127 mandoc_msg(MANDOCERR_TBL, tbl->parse, in arg() 139 tbl->opts.linesize = atoi(buf); in arg() 143 mandoc_msg(MANDOCERR_TBL, tbl->parse, ln, *pos, NULL); in arg() 146 if ('\0' != (tbl->opts.decimal = p[(*pos)++])) in arg() 149 mandoc_msg(MANDOCERR_TBL, tbl->parse, in arg() [all …]
|
H A D | tbl_html.c | 59 h->tbl.len = html_tbl_len; in html_tblopen() 60 h->tbl.slen = html_tbl_strlen; in html_tblopen() 61 tblcalc(&h->tbl, sp); in html_tblopen() 70 col = &h->tbl.cols[hp->ident]; in html_tblopen() 137 assert(h->tbl.cols); in print_tbl() 138 free(h->tbl.cols); in print_tbl() 139 h->tbl.cols = NULL; in print_tbl()
|
H A D | tbl_term.c | 89 tp->tbl.len = term_tbl_len; in term_tbl() 90 tp->tbl.slen = term_tbl_strlen; in term_tbl() 91 tp->tbl.arg = tp; in term_tbl() 93 tblcalc(&tp->tbl, sp); in term_tbl() 144 col = &tp->tbl.cols[hp->ident]; in term_tbl() 182 assert(tp->tbl.cols); in term_tbl() 183 free(tp->tbl.cols); in term_tbl() 184 tp->tbl.cols = NULL; in term_tbl() 202 width = tp->tbl.cols[hp->ident].width; in tbl_rulewidth() 354 width += tp->tbl.cols[hp->ident].width + 3; in tbl_literal()
|
/titanic_44/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 63 get_hash(hash *tbl, char *key) in get_hash() argument 68 if (tbl->hash_type == String_Key) { in get_hash() 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; in get_hash() 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; in get_hash() 74 if (tbl->hash_type == String_Key) { in get_hash() 95 new->key = ((tbl->hash_type == String_Key)?strdup(key):key); in get_hash() 101 new->left_entry = tbl->start; in get_hash() 102 tbl->start = new; in get_hash() 107 new->next_entry = tbl->table[bucket]; in get_hash() 108 tbl->table[bucket] = new; in get_hash() [all …]
|
/titanic_44/usr/src/lib/libsqlite/test/ |
H A D | trigger2.test | 59 {CREATE TEMP TABLE tbl (a, b);} 60 {CREATE TABLE tbl (a, b);} 61 {CREATE TABLE tbl (a INTEGER PRIMARY KEY, b);} 62 {CREATE TEMPORARY TABLE tbl (a INTEGER PRIMARY KEY, b);} 63 {CREATE TABLE tbl (a, b PRIMARY KEY);} 64 {CREATE TABLE tbl (a, b); CREATE INDEX tbl_idx ON tbl(b);} 65 {CREATE TEMP TABLE tbl (a, b); CREATE INDEX tbl_idx ON tbl(b);} 72 DROP TABLE tbl; 79 INSERT INTO tbl VALUES(1, 2); 80 INSERT INTO tbl VALUES(3, 4); [all …]
|
H A D | trigger3.test | 20 # catchsql { DROP TABLE tbl; } 21 catchsql { CREATE TABLE tbl (a, b, c) } 24 CREATE TRIGGER before_tbl_insert BEFORE INSERT ON tbl BEGIN SELECT CASE 28 CREATE TRIGGER after_tbl_insert AFTER INSERT ON tbl BEGIN SELECT CASE 38 INSERT INTO tbl VALUES (5, 5, 6); 39 INSERT INTO tbl VALUES (1, 5, 6); 44 SELECT * FROM tbl; 49 execsql {SELECT * FROM tbl} 56 INSERT INTO tbl VALUES (5, 5, 6); 57 INSERT INTO tbl VALUES (2, 5, 6); [all …]
|
/titanic_44/usr/src/cmd/prstat/ |
H A D | prtable.c | 91 add_uid(uidtbl_t *tbl, char *name) in add_uid() argument 95 if (tbl->n_size == tbl->n_nent) { /* reallocation */ in add_uid() 96 if ((tbl->n_size *= 2) == 0) in add_uid() 97 tbl->n_size = 4; /* first time */ in add_uid() 98 tbl->n_list = Realloc(tbl->n_list, tbl->n_size*sizeof (uid_t)); in add_uid() 101 uid = &tbl->n_list[tbl->n_nent++]; in add_uid() 111 has_uid(uidtbl_t *tbl, uid_t uid) in has_uid() argument 115 if (tbl->n_nent) { /* do linear search if table is not empty */ in has_uid() 116 for (i = 0; i < tbl->n_nent; i++) in has_uid() 117 if (tbl->n_list[i] == uid) in has_uid() [all …]
|
/titanic_44/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 37 Hash_tbl * tbl; in make_hash() local 39 if ((tbl = malloc(sizeof (Hash_tbl))) == 0) in make_hash() 42 if ((tbl->t_entry = calloc((unsigned)(sizeof (Hash_ent *)), size)) == 0) in make_hash() 45 tbl->t_ident = ident; in make_hash() 46 tbl->t_type = type; in make_hash() 47 tbl->t_size = size; in make_hash() 49 return (tbl); in make_hash() 54 get_hash(Hash_tbl * tbl, Addr key, Half id, int mode) in get_hash() argument 60 if (tbl->t_type == HASH_STR) in get_hash() 65 bucket = hashval % tbl->t_size; in get_hash() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/ |
H A D | immu_dmar.c | 52 static void dmar_table_destroy(dmar_table_t *tbl); 287 parse_drhd(char *uhead, dmar_table_t *tbl) in parse_drhd() argument 296 ASSERT(tbl); in parse_drhd() 335 list_insert_tail(&(tbl->tbl_drhd_list[drhd->dr_seg]), drhd); in parse_drhd() 345 parse_rmrr(char *uhead, dmar_table_t *tbl) in parse_rmrr() argument 354 ASSERT(tbl); in parse_rmrr() 398 list_insert_tail(&(tbl->tbl_rmrr_list[rmrr->rm_seg]), rmrr); in parse_rmrr() 414 dmar_table_t *tbl; in dmar_parse() local 437 tbl = kmem_zalloc(sizeof (dmar_table_t), KM_SLEEP); in dmar_parse() 438 mutex_init(&(tbl->tbl_lock), NULL, MUTEX_DEFAULT, NULL); in dmar_parse() [all …]
|
/titanic_44/usr/src/cmd/truss/ |
H A D | htbl.c | 54 htp->tbl = (hashb_t *) in init_hash() 59 temp = &htp->tbl[i]; in init_hash() 75 cur = &htp->tbl[i]; in destroy_hash() 93 free((char *)htp->tbl); in destroy_hash() 94 htp->tbl = NULL; in destroy_hash() 127 cur = &htp->tbl[bucket]; in add_fcall() 174 iterate_hash(htbl_t *tbl) in iterate_hash() argument 183 new->table = tbl; in iterate_hash() 185 for (i = 0; i < tbl->size; i++) { in iterate_hash() 186 cur = &tbl->tbl[i]; in iterate_hash() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_trace.c | 142 if (_sd_trace_table[cd].tbl) in _sdbc_tr_configure() 171 _sd_trace_table[cd].tbl = t; in _sdbc_tr_configure() 195 if (tt->tbl == NULL) continue; in _sdbc_tr_deconfigure() 196 size = tt->tbl->tt_max * sizeof (_sdtr_t) + in _sdbc_tr_deconfigure() 202 nsc_kmem_free(tt->tbl, size); in _sdbc_tr_deconfigure() 204 tt->tbl = NULL; in _sdbc_tr_deconfigure() 238 if ((t = _sd_trace_table[-1].tbl) == NULL) in _sd_alert() 243 if ((t = _sd_trace_table[cd].tbl) == NULL) { in _sd_alert() 247 if ((t = _sd_trace_table[-1].tbl) == NULL) in _sd_alert() 308 if ((t = _sd_trace_table[-1].tbl) == NULL) in _sd_trace() [all …]
|
/titanic_44/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fabric.c | 278 fab_erpt_tbl_t *tbl) in fab_prep_pci_erpt() argument 280 const char *class = tbl->err_class; in fab_prep_pci_erpt() 296 fab_erpt_tbl_t *tbl) in fab_prep_pci_bdg_erpt() argument 298 const char *class = tbl->err_class; in fab_prep_pci_bdg_erpt() 315 fab_erpt_tbl_t *tbl) in fab_prep_pci_bdg_ctl_erpt() argument 317 const char *class = tbl->err_class; in fab_prep_pci_bdg_ctl_erpt() 335 fab_erpt_tbl_t *tbl) in fab_prep_pcie_ce_erpt() argument 337 const char *class = tbl->err_class; in fab_prep_pcie_ce_erpt() 354 fab_erpt_tbl_t *tbl) in fab_prep_pcie_ue_erpt() argument 356 const char *class = tbl->err_class; in fab_prep_pcie_ue_erpt() [all …]
|
/titanic_44/usr/src/cmd/eqn/ |
H A D | lookup.c | 23 tbl *keytbl[TBLSIZE]; /* key words */ 24 tbl *restbl[TBLSIZE]; /* reserved words */ 25 tbl *deftbl[TBLSIZE]; /* user-defined names */ 202 tbl * 203 lookup(tbl *tblp[], char *name, char *defn) in lookup() 205 tbl *p; in lookup() 223 p = (tbl *) malloc(sizeof (tbl)); in lookup()
|
/titanic_44/usr/src/lib/libnisdb/ |
H A D | db_dictionary.cc | 358 print_table(db_table_desc *tbl) in print_table() argument 360 if (tbl == NULL) in print_table() 362 printf("%s: %d\n", tbl->table_name, tbl->hashval); in print_table() 595 transfer_aux(XDR* x, pptr tbl) in transfer_aux() argument 597 return (xdr_db_dict_desc_p(x, (db_dict_desc_p *) tbl)); in transfer_aux() 951 db_table_desc *tbl = NULL, *clone = NULL, *next_td = NULL; in merge_dict() local 957 tbl = tempdict.dictionary->tables.tables_val[i]; in merge_dict() 958 if (!tbl) in merge_dict() 960 retval = db_clone_bucket(tbl, &clone); in merge_dict() 1015 db_table_desc *tbl = NULL; in copyfile() local [all …]
|
H A D | nis_db.cc | 127 db_table_desc *tbl = 0; in tableDB() local 135 dbase = InUseDictionary->find_table(intName, &tbl); in tableDB() 340 db_table_desc * tbl = NULL; in db_first_entry() local 341 db * dbase = InUseDictionary->find_table(table_name, &tbl); in db_first_entry() 343 if (tbl == NULL || dbase == NULL) in db_first_entry() 350 query = InUseDictionary->translate_to_query(tbl, in db_first_entry() 412 db_table_desc * tbl = NULL; in __db_list_entries() local 413 db * dbase = InUseDictionary->find_table(table_name, &tbl, in __db_list_entries() 416 if (tbl == NULL || dbase == NULL) in __db_list_entries() 422 query = InUseDictionary->translate_to_query(tbl, in __db_list_entries() [all …]
|
/titanic_44/usr/src/cmd/devfsadm/ |
H A D | devfsadm.h | 180 #define DEVFSADM_CREATE_INIT_V0(tbl) \ argument 183 (sizeof (tbl) / sizeof (devfsadm_create_t)), \ 184 ((devfsadm_create_t *)(tbl)) } 186 #define DEVFSADM_REMOVE_INIT_V0(tbl)\ argument 189 (sizeof (tbl) / sizeof (devfsadm_remove_t)), \ 190 ((devfsadm_remove_t *)(tbl)) } 192 #define DEVFSADM_REMOVE_INIT_V1(tbl)\ argument 195 (sizeof (tbl) / sizeof (devfsadm_remove_V1_t)), \ 196 ((devfsadm_remove_V1_t *)(tbl)) }
|
/titanic_44/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_fip.c | 877 fip_vhub_table_t *tbl; in eib_fip_parse_vhub_table() local 910 tbl = (fip_vhub_table_t *)(void *)pkt; in eib_fip_parse_vhub_table() 911 hdr = &(tbl->vt_fip_header); in eib_fip_parse_vhub_table() 925 desc_tbl = &(tbl->vt_vhub_table); in eib_fip_parse_vhub_table() 1263 eib_fip_update_eport_state(eib_t *ss, eib_vhub_table_t *tbl, in eib_fip_update_eport_state() argument 1267 mutex_enter(&tbl->tb_lock); in eib_fip_update_eport_state() 1268 if (tbl->tb_eport_state != eport_state) { in eib_fip_update_eport_state() 1272 tbl->tb_eport_state, eport_state); in eib_fip_update_eport_state() 1273 tbl->tb_eport_state = eport_state; in eib_fip_update_eport_state() 1275 mutex_exit(&tbl->tb_lock); in eib_fip_update_eport_state() [all …]
|
/titanic_44/usr/src/cmd/sa/ |
H A D | sadp.c | 207 struct var tbl; variable 470 FETCH_IV (X1_V, tbl); 471 Debug dump_v_struct (&tbl); 472 sbuf = malloc(sizeof (struct buf) * tbl.v_buf); 475 phybuf = malloc(sizeof (struct buf) * tbl.v_pbuf); 570 FETCH_IAL(X1_BUF, sbuf, tbl.v_buf*sizeof (struct buf)); 575 FETCH_IAL(X1_PBUF, phybuf, tbl.v_pbuf*sizeof (struct buf)); 780 if ((temp1 < setup[X1_BUF].n_value) || (index > tbl.v_buf)){ in testbuf() 783 if (index < tbl.v_pbuf){ in testbuf() 1420 dump_v_struct (tbl) [all …]
|
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | zap.c | 145 zap_table_grow(zap_t *zap, zap_table_phys_t *tbl, in zap_table_grow() argument 157 ASSERT(tbl->zt_blk != 0); in zap_table_grow() 158 ASSERT(tbl->zt_numblks > 0); in zap_table_grow() 160 if (tbl->zt_nextblk != 0) { in zap_table_grow() 161 newblk = tbl->zt_nextblk; in zap_table_grow() 163 newblk = zap_allocate_blocks(zap, tbl->zt_numblks * 2); in zap_table_grow() 164 tbl->zt_nextblk = newblk; in zap_table_grow() 165 ASSERT0(tbl->zt_blks_copied); in zap_table_grow() 167 tbl->zt_blk << bs, tbl->zt_numblks << bs, in zap_table_grow() 175 b = tbl->zt_blks_copied; in zap_table_grow() [all …]
|
/titanic_44/usr/src/lib/krb5/ss/ |
H A D | execute_cmd.c | 37 static struct _ss_request_entry * get_request (tbl, idx) in get_request() argument 38 ss_request_table * tbl; in get_request() 41 struct _ss_request_table *tbl1 = (struct _ss_request_table *) tbl; 46 #define get_request(tbl,idx) ((tbl) -> requests + (idx)) argument
|
/titanic_44/usr/src/uts/intel/io/pciex/ |
H A D | pcieb_x86.c | 463 x86_error_tbl_t *tbl; in pcieb_intel_serr_workaround() local 479 tbl = x86_error_init_tbl; in pcieb_intel_serr_workaround() 480 for (i = 0; i < x86_error_init_tbl_len; i++, tbl++) { in pcieb_intel_serr_workaround() 481 if (!((vid == tbl->vendor_id) && in pcieb_intel_serr_workaround() 482 (did >= tbl->device_id_low) && in pcieb_intel_serr_workaround() 483 (did <= tbl->device_id_high) && in pcieb_intel_serr_workaround() 484 (rid >= tbl->rev_id_low) && in pcieb_intel_serr_workaround() 485 (rid <= tbl->rev_id_high))) in pcieb_intel_serr_workaround() 491 reg = tbl->error_regs; in pcieb_intel_serr_workaround() 492 for (j = 0; j < tbl->error_regs_len; j++, reg++) { in pcieb_intel_serr_workaround()
|