/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | strcspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 53 tbl[0] = 1; 54 tbl[3] = tbl[2] = tbl[1] = 0; 56 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 57 tbl[idx] = 0; 62 tbl[id [all...] |
H A D | strspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 53 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; 55 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 56 tbl[idx] = 0; 61 tbl[idx] |= bit; 67 if ((tbl[id [all...] |
/illumos-gate/usr/src/cmd/eqn/ |
H A D | e.h | 77 } tbl; typedef in typeref:struct:s_tbl
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 37 Hash_tbl * tbl; local 39 if ((tbl = malloc(sizeof (Hash_tbl))) == 0) 42 if ((tbl->t_entry = calloc((unsigned)(sizeof (Hash_ent *)), size)) == 0) 45 tbl->t_ident = ident; 46 tbl->t_type = type; 47 tbl->t_size = size; 49 return (tbl); 54 get_hash(Hash_tbl * tbl, Addr key, Half id, int mode) argument 60 if (tbl->t_type == HASH_STR) 65 bucket = hashval % tbl [all...] |
H A D | inspect.c | 151 Hash_tbl *tbl; local 171 for (APLIST_TRAVERSE(crle->c_inotbls, idx, tbl)) { 172 if (tbl->t_ident == dev) { 178 if ((tbl = make_hash(crle->c_inobkts, HASH_INT, dev)) == NULL) 180 if (aplist_append(&crle->c_inotbls, tbl, AL_CNT_CRLE) == NULL) 187 if ((ent = get_hash(tbl, ino, 0, 197 obj->o_tbl = tbl; 658 Hash_tbl *tbl; local 664 for (APLIST_TRAVERSE(crle->c_inotbls, idx, tbl)) { 665 if (tbl [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_data.c | 40 getdata(struct tbl_node *tbl, struct tbl_span *dp, argument 59 mandoc_msg(MANDOCERR_TBLDATA_EXTRA, tbl->parse, 84 while (p[*pos] && p[*pos] != tbl->opts.tab) 94 tbl->part = TBL_PART_CDATA; 119 tbl->parse, ln, sv, dat->string); 123 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) argument 128 dat = tbl->last_span->last; 132 if (p[pos] == tbl->opts.tab) { 133 tbl->part = TBL_PART_DATA; 136 getdata(tbl, tb 164 newspan(struct tbl_node *tbl, int line, struct tbl_row *rp) argument 185 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos) argument [all...] |
H A D | tbl.c | 1 /* $Id: tbl.c,v 1.40 2015/10/06 18:32:20 schwarze Exp $ */ 35 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) argument 46 if (tbl->part == TBL_PART_OPTS) { 47 tbl->part = TBL_PART_LAYOUT; 67 tbl_option(tbl, ln, p, &pos); 75 switch (tbl->part) { 77 tbl_layout(tbl, ln, p, pos); 80 return tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN; 85 tbl_data(tbl, ln, p, pos); 92 struct tbl_node *tbl; local 105 tbl_free(struct tbl_node *tbl) argument 137 tbl_restart(int line, int pos, struct tbl_node *tbl) argument 149 tbl_span(struct tbl_node *tbl) argument 164 struct tbl_node *tbl; local [all...] |
H A D | tbl_layout.c | 61 mods(struct tbl_node *tbl, struct tbl_cell *cp, argument 85 mandoc_msg(MANDOCERR_TBLLAYOUT_PAR, tbl->parse, 114 mandoc_msg(MANDOCERR_TBLLAYOUT_MOD, tbl->parse, 143 tbl->parse, ln, *pos - 1, NULL); 146 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl->parse, 159 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse, 181 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse, 188 cell(struct tbl_node *tbl, struct tbl_row *rp, argument 202 tbl->parse, ln, *pos, NULL); 221 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl 249 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) argument 337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
H A D | tbl_opts.c | 65 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) argument 83 mandoc_vmsg(MANDOCERR_TBLOPT_EQN, tbl->parse, 90 tbl->opts.tab = p[*pos]; 98 tbl->opts.decimal = p[*pos]; 106 tbl->parse, ln, *pos, keys[key].name); 109 tbl->parse, ln, *pos, "%s want %d have %d", 123 tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs) argument 145 tbl->parse, ln, pos, "%c", p[pos]); 159 mandoc_vmsg(MANDOCERR_TBLOPT_BAD, tbl->parse, 169 tbl [all...] |
H A D | out.c | 103 * all rows and cells in the table. The function pointers in "tbl" are 107 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp, argument 123 assert(NULL == tbl->cols); 124 tbl->cols = mandoc_calloc((size_t)sp->opts->cols, 146 col = tbl->cols + icol; 150 tblcalc_data(tbl, col, opts, dp); 163 col = tbl->cols + icol; 182 col = tbl->cols + icol; 205 * Emulate a bug in GNU tbl width calculation that 221 col = tbl 234 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp) argument 265 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, const struct tbl_dat *dp) argument 279 tblcalc_number(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp) argument [all...] |
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t1.c | 25 /* required by GCOS because file is passed to "tbl" by troff preprocessor */ 64 exit(tbl(argc,argv)); 68 tbl(int argc, char **argv) function 121 (void) fprintf(stderr, gettext("tbl: Invalid option " 123 (void) fprintf(stderr, gettext("Usage: tbl [ -me ] "
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_nat.c | 90 * The function doing the work... The tbl parameter determines whith table 95 enum which_tbl tbl) 118 if (tbl == show_nat) 129 if (tbl == show_nat) 94 ilb_show_info(ilb_handle_t h, char *buf, size_t *num, boolean_t *end, enum which_tbl tbl) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_nat.c | 125 ilbadm_show_info(int argc, char *argv[], enum which_tbl tbl) argument 160 if (tbl == show_nat) 178 if (tbl == show_nat) 187 if (tbl == show_nat)
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 63 get_hash(hash *tbl, char *key) argument 68 if (tbl->hash_type == String_Key) { 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; 74 if (tbl->hash_type == String_Key) { 95 new->key = ((tbl->hash_type == String_Key)?strdup(key):key); 98 * hook into chain from tbl... 101 new->left_entry = tbl 114 find_hash(hash *tbl, const char *key) argument 137 del_hash(hash *tbl, const char *key) argument 201 operate_hash(hash *tbl, void (*ptr)(), const char *usr_arg) argument 215 operate_hash_addr(hash *tbl, void (*ptr)(), const char *usr_arg) argument 229 destroy_hash(hash *tbl, int (*ptr)(), const char *usr_arg) argument [all...] |
H A D | perfcnt.c | 67 static hash *tbl; variable 125 tbl = make_hash(213); 221 dep = (d_entry **)get_hash(tbl, (char *)sym_name); 255 (void) operate_hash(tbl, scanlist, NULL);
|
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/ |
H A D | libefi.c | 62 efi_get_table(EFI_GUID *tbl) argument 69 if (!memcmp(id, tbl, sizeof(EFI_GUID)))
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | htbl.c | 54 htp->tbl = (hashb_t *) 59 temp = &htp->tbl[i]; 75 cur = &htp->tbl[i]; 93 free((char *)htp->tbl); 94 htp->tbl = NULL; 127 cur = &htp->tbl[bucket]; 174 iterate_hash(htbl_t *tbl) argument 183 new->table = tbl; 185 for (i = 0; i < tbl->size; i++) { 186 cur = &tbl 205 htbl_t *tbl; local 251 elements_in_table(htbl_t *tbl) argument [all...] |
H A D | htbl.h | 52 unsigned int size; /* size of tbl in buckets */ 53 hashb_t *tbl; /* ptr to buckets */ member in struct:htbl
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_uobj.c | 519 "UOBJ FIND: id %d in tbl 0x%P - tbl empty", uo_id, 566 * tbl - Pointer to the user object managment table to 581 sol_ofs_uobj_get_read(sol_ofs_uobj_table_t *tbl, uint32_t uo_id) argument 585 uobj = ofs_uobj_find(tbl, uo_id, 1); 606 * tbl - Pointer to the user object managment table to 621 sol_ofs_uobj_get_write(sol_ofs_uobj_table_t *tbl, uint32_t uo_id) argument 626 uobj = ofs_uobj_find(tbl, uo_id, 1);
|
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_cck_common.c | 292 * Search key in tbl[0] <= tbl[1] <= ... <= tbl[n-1]. Return 0 if not found. 293 * tbl[0] is a special element for non-identical conversion. 296 kiconv_binsearch(uint32_t key, void *tbl, size_t nitems) argument 303 table = (kiconv_table_t *)tbl;
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | iconv.c | 337 iconv_open_private(const char *lib, const char *tbl) argument 395 cdpath->_icv_state = (void *)(*fptr)(tbl);
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prtable.c | 91 add_uid(uidtbl_t *tbl, char *name) argument 95 if (tbl->n_size == tbl->n_nent) { /* reallocation */ 96 if ((tbl->n_size *= 2) == 0) 97 tbl->n_size = 4; /* first time */ 98 tbl->n_list = Realloc(tbl->n_list, tbl->n_size*sizeof (uid_t)); 101 uid = &tbl->n_list[tbl 111 has_uid(uidtbl_t *tbl, uid_t uid) argument 169 add_zone(zonetbl_t *tbl, char *str) argument 209 has_zone(zonetbl_t *tbl, zoneid_t id) argument 228 convert_zone(zonetbl_t *tbl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fabric.c | 278 fab_erpt_tbl_t *tbl) 280 const char *class = tbl->err_class; 296 fab_erpt_tbl_t *tbl) 298 const char *class = tbl->err_class; 315 fab_erpt_tbl_t *tbl) 317 const char *class = tbl->err_class; 335 fab_erpt_tbl_t *tbl) 337 const char *class = tbl->err_class; 354 fab_erpt_tbl_t *tbl) 356 const char *class = tbl 277 fab_prep_pci_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 295 fab_prep_pci_bdg_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 314 fab_prep_pci_bdg_ctl_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 334 fab_prep_pcie_ce_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 353 fab_prep_pcie_ue_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 393 fab_prep_pcie_sue_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 430 fab_prep_pcix_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 529 fab_prep_pcix_bdg_sec_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 548 fab_prep_pcix_bdg_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 642 fab_prep_pcie_nadv_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 667 fab_prep_pcie_rc_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 719 fab_prep_pcie_fake_rc_erpt(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, fab_erpt_tbl_t *tbl) argument 775 fab_err_tbl_t *tbl; local [all...] |
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_alg_hash.c | 158 del_server(hash_server_t *tbl, size_t hash_size, ilb_server_t *host) argument 163 if (tbl[i].server == host) { 167 tbl[j] = tbl[j + 1]; 174 tbl[hash_size - 1].server = NULL; 175 tbl[hash_size - 1].enabled = B_FALSE;
|
/illumos-gate/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 129 int32_t *tbl; local 170 &tbl, &nelem)) == 0) { 172 if ((tbl[cnt] != DSCPMK_UNCHANGED_DSCP) && (tbl[cnt] != 174 dscpmk_data->dscp_map[cnt] = tbl[cnt]; 265 int32_t *tbl; local 322 &tbl, &nelem)) == 0) { 324 if ((tbl[cnt] != DSCPMK_UNCHANGED_DSCP) && (tbl[cnt] != 326 dscpmk_data->dscp_map[cnt] = tbl[cn [all...] |