Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 25 of 214) sorted by relevance

123456789

/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl.c37 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_read() argument
48 if (tbl->part == TBL_PART_OPTS) { in tbl_read()
49 tbl->part = TBL_PART_LAYOUT; in tbl_read()
69 tbl_option(tbl, ln, p, &pos); in tbl_read()
77 switch (tbl->part) { in tbl_read()
79 tbl_layout(tbl, ln, p, pos); in tbl_read()
82 tbl_cdata(tbl, ln, p, pos); in tbl_read()
85 tbl_data(tbl, ln, p, pos); in tbl_read()
93 struct tbl_node *tbl; in tbl_alloc() local
95 tbl = mandoc_calloc(1, sizeof(*tbl)); in tbl_alloc()
[all …]
H A Dtbl_layout.c65 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() argument
207 cell(struct tbl_node *tbl, struct tbl_row *rp, in cell() argument
255 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell()
262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
266 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_layout() argument
286 tbl->part = TBL_PART_DATA; in tbl_layout()
293 if (tbl->first_row == NULL) { in tbl_layout()
294 tbl->first_row = tbl->last_row = in tbl_layout()
297 if (tbl->first_row->first == NULL) { in tbl_layout()
300 cell_alloc(tbl, tbl->first_row, in tbl_layout()
[all …]
H A Dtbl_data.c43 getdata(struct tbl_node *tbl, struct tbl_span *dp, in getdata() argument
59 while (*ccp != '\0' && *ccp != tbl->opts.tab) in getdata()
168 tbl->part = TBL_PART_CDATA; in getdata()
197 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_cdata() argument
202 dat = tbl->last_span->last; in tbl_cdata()
206 if (tbl->opts.opts & TBL_OPT_NOSPACE) in tbl_cdata()
209 if (p[pos] == tbl->opts.tab) { in tbl_cdata()
210 tbl->part = TBL_PART_DATA; in tbl_cdata()
213 getdata(tbl, tbl->last_span, ln, p, &pos); in tbl_cdata()
216 tbl->part = TBL_PART_DATA; in tbl_cdata()
[all …]
H A Dout.c117 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first, in tblcalc() argument
135 assert(tbl->cols == NULL); in tblcalc()
136 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc()
155 tbl->cols[++maxcol].spacing = SIZE_MAX; in tblcalc()
156 col = tbl->cols + icol; in tblcalc()
168 (*tbl->sulen)(&su, tbl->arg); in tblcalc()
181 width = tblcalc_data(tbl, in tblcalc()
221 col = tbl->cols + icol; in tblcalc()
243 width = tbl->cols[icol].width; in tblcalc()
245 width += tbl->cols[icol].spacing; in tblcalc()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/
H A Dsb_to_utf8_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = 1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = 2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
78 tbl[k].size = ICV_TYPE_ILLEGAL_CHAR; in main()
79 tbl[k].u8 = 0; in main()
89 tbl[k].u8 = l; in main()
[all …]
H A Dutf8_to_sb_generator.c42 to_utf8_table_component_t tbl[256]; in main() local
53 tbl[i].size = (signed char)1; in main()
54 tbl[i].u8 = (unsigned int)i; in main()
56 tbl[i].size = (signed char)2; in main()
57 tbl[i].u8 = (unsigned int)i; in main()
59 tbl[i].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
60 tbl[i].u8 = 0; in main()
82 tbl[k].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
83 tbl[k].u8 = 0; in main()
93 tbl[k].u8 = l; in main()
[all …]
H A Dcp720_to_utf8_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = 1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = 2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
90 tbl[k].u8 = l; in main()
92 tbl[k].size = 1; in main()
94 tbl[k].size = 2; in main()
[all …]
H A Dutf8_to_cp720_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = (signed char)1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = (signed char)2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
89 tbl[k].u8 = l; in main()
91 tbl[k].size = (signed char)1; in main()
93 tbl[k].size = (signed char)2; in main()
[all …]
H A Dsb_to_ucs4_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = 1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = 2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
78 tbl[k].size = ICV_TYPE_ILLEGAL_CHAR; in main()
79 tbl[k].u8 = 0; in main()
89 tbl[k].u8 = l; in main()
[all …]
H A Ducs4_to_sb_generator.c42 to_utf8_table_component_t tbl[256]; in main() local
53 tbl[i].size = (signed char)1; in main()
54 tbl[i].u8 = (unsigned int)i; in main()
56 tbl[i].size = (signed char)2; in main()
57 tbl[i].u8 = (unsigned int)i; in main()
59 tbl[i].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
60 tbl[i].u8 = 0; in main()
82 tbl[k].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
83 tbl[k].u8 = 0; in main()
93 tbl[k].u8 = l; in main()
[all …]
H A Dcp720_to_ucs4_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = 1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = 2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
90 tbl[k].u8 = l; in main()
92 tbl[k].size = 1; in main()
94 tbl[k].size = 2; in main()
[all …]
H A Ducs4_to_cp720_generator.c37 to_utf8_table_component_t tbl[256]; in main() local
48 tbl[i].size = (signed char)1; in main()
49 tbl[i].u8 = (unsigned int)i; in main()
51 tbl[i].size = (signed char)2; in main()
52 tbl[i].u8 = (unsigned int)i; in main()
54 tbl[i].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main()
55 tbl[i].u8 = 0; in main()
89 tbl[k].u8 = l; in main()
91 tbl[k].size = (signed char)1; in main()
93 tbl[k].size = (signed char)2; in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dhash.c63 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 …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dtrigger2.test57 {CREATE TEMP TABLE tbl (a, b);}
58 {CREATE TABLE tbl (a, b);}
59 {CREATE TABLE tbl (a INTEGER PRIMARY KEY, b);}
60 {CREATE TEMPORARY TABLE tbl (a INTEGER PRIMARY KEY, b);}
61 {CREATE TABLE tbl (a, b PRIMARY KEY);}
62 {CREATE TABLE tbl (a, b); CREATE INDEX tbl_idx ON tbl(b);}
63 {CREATE TEMP TABLE tbl (a, b); CREATE INDEX tbl_idx ON tbl(b);}
70 DROP TABLE tbl;
77 INSERT INTO tbl VALUES(1, 2);
78 INSERT INTO tbl VALUES(3, 4);
[all …]
H A Dtrigger3.test18 # catchsql { DROP TABLE tbl; }
19 catchsql { CREATE TABLE tbl (a, b, c) }
22 CREATE TRIGGER before_tbl_insert BEFORE INSERT ON tbl BEGIN SELECT CASE
26 CREATE TRIGGER after_tbl_insert AFTER INSERT ON tbl BEGIN SELECT CASE
36 INSERT INTO tbl VALUES (5, 5, 6);
37 INSERT INTO tbl VALUES (1, 5, 6);
42 SELECT * FROM tbl;
47 execsql {SELECT * FROM tbl}
54 INSERT INTO tbl VALUES (5, 5, 6);
55 INSERT INTO tbl VALUES (2, 5, 6);
[all …]
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.c91 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 …]
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dhash.c36 Hash_tbl * tbl; in make_hash() local
38 if ((tbl = malloc(sizeof (Hash_tbl))) == 0) in make_hash()
41 tbl->t_entry = calloc(size, (unsigned)(sizeof (Hash_ent *))); in make_hash()
42 if (tbl->t_entry == NULL) { in make_hash()
43 free(tbl); in make_hash()
47 tbl->t_ident = ident; in make_hash()
48 tbl->t_type = type; in make_hash()
49 tbl->t_size = size; in make_hash()
51 return (tbl); in make_hash()
56 get_hash(Hash_tbl * tbl, Addr key, Half id, int mode) in get_hash() argument
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dimmu_dmar.c55 static void dmar_table_destroy(dmar_table_t *tbl);
290 parse_drhd(char *uhead, dmar_table_t *tbl) in parse_drhd() argument
299 ASSERT(tbl); in parse_drhd()
338 list_insert_tail(&(tbl->tbl_drhd_list[drhd->dr_seg]), drhd); in parse_drhd()
348 parse_rmrr(char *uhead, dmar_table_t *tbl) in parse_rmrr() argument
357 ASSERT(tbl); in parse_rmrr()
401 list_insert_tail(&(tbl->tbl_rmrr_list[rmrr->rm_seg]), rmrr); in parse_rmrr()
417 dmar_table_t *tbl; in dmar_parse() local
440 tbl = kmem_zalloc(sizeof (dmar_table_t), KM_SLEEP); in dmar_parse()
441 mutex_init(&(tbl->tbl_lock), NULL, MUTEX_DEFAULT, NULL); in dmar_parse()
[all …]
/illumos-gate/usr/src/boot/libsa/string/
H A Dstrcspn.c46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strcspn() local
53 tbl[0] = 1; in strcspn()
54 tbl[3] = tbl[2] = tbl[1] = 0; in strcspn()
56 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strcspn()
57 tbl[idx] = 0; in strcspn()
62 tbl[idx] |= bit; in strcspn()
68 if ((tbl[idx] & bit) != 0) in strcspn()
H A Dstrspn.c46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strspn() local
53 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; in strspn()
55 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strspn()
56 tbl[idx] = 0; in strspn()
61 tbl[idx] |= bit; in strspn()
67 if ((tbl[idx] & bit) == 0) in strspn()
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.c52 htp->tbl = (hashb_t *) in init_hash()
57 temp = &htp->tbl[i]; in init_hash()
73 cur = &htp->tbl[i]; in destroy_hash()
91 free((char *)htp->tbl); in destroy_hash()
92 htp->tbl = NULL; in destroy_hash()
125 cur = &htp->tbl[bucket]; in add_fcall()
172 iterate_hash(htbl_t *tbl) in iterate_hash() argument
181 new->table = tbl; in iterate_hash()
183 for (i = 0; i < tbl->size; i++) { in iterate_hash()
184 cur = &tbl->tbl[i]; in iterate_hash()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/binarytables/test/
H A Dmkmnmcstbl.c44 } tbl[0x10000]; variable
72 tbl[i].size = 0; in main()
103 if (tbl[k].size != 0) { in main()
107 tbl[k].u4 = l; in main()
108 tbl[k].from = k; in main()
111 tbl[k].size = 1; in main()
113 tbl[k].size = 2; in main()
115 tbl[k].size = 3; in main()
117 tbl[k].size = 4; in main()
119 tbl[k].size = 5; in main()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_fabric.c299 fab_erpt_tbl_t *tbl) in fab_prep_pci_erpt() argument
301 const char *class = tbl->err_class; in fab_prep_pci_erpt()
317 fab_erpt_tbl_t *tbl) in fab_prep_pci_bdg_erpt() argument
319 const char *class = tbl->err_class; in fab_prep_pci_bdg_erpt()
336 fab_erpt_tbl_t *tbl) in fab_prep_pci_bdg_ctl_erpt() argument
338 const char *class = tbl->err_class; in fab_prep_pci_bdg_ctl_erpt()
356 fab_erpt_tbl_t *tbl) in fab_prep_pcie_ce_erpt() argument
358 const char *class = tbl->err_class; in fab_prep_pcie_ce_erpt()
375 fab_erpt_tbl_t *tbl) in fab_prep_pcie_ue_erpt() argument
377 const char *class = tbl->err_class; in fab_prep_pcie_ue_erpt()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/
H A Drfs4.c88 rfs4_table_t tbl; in rfs4_tbl_dcmd() local
124 if (mdb_vread(&tbl, sizeof (tbl), addr) == -1) { in rfs4_tbl_dcmd()
157 if (mdb_readstr(name, sizeof (name), (uintptr_t)tbl.dbt_name) == -1) { in rfs4_tbl_dcmd()
162 sizeof (name), name, tbl.dbt_debug, tbl.dbt_count, tbl.dbt_len, in rfs4_tbl_dcmd()
163 tbl.dbt_indices, tbl.dbt_idxcnt, tbl.dbt_maxcnt); in rfs4_tbl_dcmd()
167 mdb_printf("db = %p\n", tbl.dbt_db); in rfs4_tbl_dcmd()
169 common_rwlock(tbl.dbt_t_lock)); in rfs4_tbl_dcmd()
171 common_mutex(tbl.dbt_lock)); in rfs4_tbl_dcmd()
172 mdb_printf("id_space = %p\n", tbl.dbt_id_space); in rfs4_tbl_dcmd()
173 mdb_printf("min_cache_time = %lu\n", tbl.dbt_min_cache_time); in rfs4_tbl_dcmd()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_dictionary.cc359 print_table(db_table_desc *tbl) in print_table() argument
361 if (tbl == NULL) in print_table()
363 printf("%s: %d\n", tbl->table_name, tbl->hashval); in print_table()
596 transfer_aux(XDR* x, pptr tbl) in transfer_aux() argument
598 return (xdr_db_dict_desc_p(x, (db_dict_desc_p *) tbl)); in transfer_aux()
952 db_table_desc *tbl = NULL, *clone = NULL, *next_td = NULL; in merge_dict() local
958 tbl = tempdict.dictionary->tables.tables_val[i]; in merge_dict()
959 if (!tbl) in merge_dict()
961 retval = db_clone_bucket(tbl, &clone); in merge_dict()
1016 db_table_desc *tbl = NULL; in copyfile() local
[all …]

123456789