/illumos-gate/usr/src/uts/common/io/xge/hal/include/ |
H A D | xge-os-pal.h | 67 #define __xge_trace(tb) { \ argument 68 int msgsize = xge_os_strlen(tb->msg) + 2; \ 69 int offset = tb->offset; \ 70 if (msgsize != 2 && msgsize < tb->msgbuf_max) { \ 71 int leftsize = tb->size - offset; \ 72 if ((msgsize + tb->msgbuf_max) > leftsize) { \ 73 xge_os_memzero(tb->data + offset, leftsize); \ 75 tb->wrapped_once = 1; \ 77 xge_os_memcpy(tb->data + offset, tb->msg, msgsize-1); \ 78 *(tb->data + offset + msgsize-1) = '\n'; \ [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lstring.c | 66 stringtable *tb = &G(L)->strt; in luaS_resize() local 69 if (newsize > tb->size) { in luaS_resize() 70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 74 for (i=0; i<tb->size; i++) { in luaS_resize() 75 GCObject *p = tb->hash[i]; in luaS_resize() 76 tb->hash[i] = NULL; in luaS_resize() 80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize() 81 tb->hash[h] = p; in luaS_resize() 86 if (newsize < tb->size) { in luaS_resize() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/showmount/ |
H A D | showmount.c | 80 struct mountbody **tb; /* pointer into table */ in main() local 175 for (ml = result_list, tb = &table[0]; in main() 177 ml = ml->ml_next, tb++) { in main() 178 *tb = ml; in main() 190 for (tb = table; tb < table + numentries; tb++) in main() 191 printf("%s:%s\n", (*tb)->ml_hostname, in main() 192 (*tb)->ml_directory); in main() 195 for (tb = table; tb < table + numentries; tb++) { in main() 196 if (strcmp(last, (*tb)->ml_directory)) in main() 197 printf("%s\n", (*tb)->ml_directory); in main() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/dfmounts/ |
H A D | dfmounts.c | 119 struct mountbody **tb, **endtb; in pr_mounts() local 159 tb = table; in pr_mounts() 160 for (; ml != NULL && tb < &table[NTABLEENTRIES]; ml = ml->ml_next) in pr_mounts() 161 *tb++ = ml; in pr_mounts() 162 if (ml != NULL && tb == &table[NTABLEENTRIES]) in pr_mounts() 165 endtb = tb; in pr_mounts() 174 for (tb = table; tb < endtb; tb++) { in pr_mounts() 175 if (*((*tb)->ml_directory) == '\0' || in pr_mounts() 176 *((*tb)->ml_hostname) == '\0') in pr_mounts() 178 if (strcmp(lastpath, (*tb)->ml_directory) == 0) { in pr_mounts() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | iconv.c | 260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) in _win_iconv() argument 281 memcpy(*tb, *fb, fz); in _win_iconv() 294 …if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <… in _win_iconv() 311 while (!(tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)fz, (LPWSTR)*tb, 0))) in _win_iconv() 340 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, 0))) in _win_iconv() 351 if (tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, un, *tb, *tn, 0, 0)) in _win_iconv() 368 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, 0, 0, 0))) in _win_iconv() 386 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, tz, 0, 0))) in _win_iconv() 401 *tb += tz; in _win_iconv() 531 utf2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) in utf2bin() argument [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcon2.c | 43 struct tacct tb; variable 48 tb.ta_sc = 1; in main() 57 tb.ta_uid = cb.ct_uid; in main() 58 CPYN(tb.ta_name, cb.ct_name); in main() 59 tb.ta_con[0] = MINS(cb.ct_con[0]); in main() 60 tb.ta_con[1] = MINS(cb.ct_con[1]); in main() 61 fwrite(&tb, sizeof (tb), 1, stdout); in main()
|
H A D | acctdisk.c | 42 struct tacct tb; variable 50 tb.ta_dc = 1; in main() 52 &tb.ta_uid, in main() 54 &tb.ta_du)) == 3) { in main() 56 CPYN(tb.ta_name, ntmp); in main() 57 fwrite(&tb, sizeof (tb), 1, stdout); in main()
|
H A D | acctprc2.c | 46 struct tacct tb; variable 131 tb.ta_uid = (*(struct utab **)node)->ut_uid; in print_node() 132 CPYN(tb.ta_name, (*(struct utab **)node)->ut_name); in print_node() 133 tb.ta_cpu[0] = ((*(struct utab **)node)->ut_cpu[0]); in print_node() 134 tb.ta_cpu[1] = ((*(struct utab **)node)->ut_cpu[1]); in print_node() 135 tb.ta_kcore[0] = (*(struct utab **)node)->ut_kcore[0]; in print_node() 136 tb.ta_kcore[1] = (*(struct utab **)node)->ut_kcore[1]; in print_node() 137 tb.ta_pc = (*(struct utab **)node)->ut_pc; in print_node() 138 fwrite(&tb, sizeof(tb), 1, stdout); in print_node()
|
H A D | acctprc.c | 50 struct tacct tb; variable 157 tb.ta_uid = (*(struct utab **)node)->ut_uid; in print_node() 158 CPYN(tb.ta_name, (char *)uidtonam((*(struct utab **)node)->ut_uid)); in print_node() 159 tb.ta_cpu[0] = (*(struct utab **)node)->ut_cpu[0]; in print_node() 160 tb.ta_cpu[1] = (*(struct utab **)node)->ut_cpu[1]; in print_node() 161 tb.ta_kcore[0] = (*(struct utab **)node)->ut_kcore[0]; in print_node() 162 tb.ta_kcore[1] = (*(struct utab **)node)->ut_kcore[1]; in print_node() 163 tb.ta_pc = (*(struct utab **)node)->ut_pc; in print_node() 164 fwrite(&tb, sizeof(tb), 1, stdout); in print_node()
|
H A D | acctmerg.c | 55 struct tacct tb[NFILE]; /* current record from each file */ variable 120 prtacct(&tb[i]); in main() 149 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast() 174 getnext(tp-&tb[0]); /* get next one in same file */ in sumcurr() 175 while (tp <= &tb[nfile]) in sumcurr() 181 getnext(tp-&tb[0]); in sumcurr() 221 tp = &tb[i]; in getnext()
|
H A D | acctcon.c | 55 struct tacct tb; variable 501 tb.ta_uid = (*(struct ctab **)node)->ct_uid; in print_node() 502 CPYN(tb.ta_name, (*(struct ctab **)node)->ct_name); in print_node() 503 tb.ta_con[0] = ((*(struct ctab **)node)->ct_con[0]) / 60.0; in print_node() 504 tb.ta_con[1] = ((*(struct ctab **)node)->ct_con[1]) / 60.0; in print_node() 505 tb.ta_sc = (*(struct ctab **)node)->ct_sess; in print_node() 506 fwrite(&tb, sizeof (tb), 1, stdout); in print_node()
|
/illumos-gate/usr/src/uts/common/io/vioif/ |
H A D | vioif.c | 262 vioif_txbuf_t *tb; in vioif_txbuf_alloc() local 266 if ((tb = list_remove_head(&vif->vif_txbufs)) != NULL) { in vioif_txbuf_alloc() 270 return (tb); in vioif_txbuf_alloc() 274 vioif_txbuf_free(vioif_t *vif, vioif_txbuf_t *tb) in vioif_txbuf_free() argument 281 virtio_chain_clear(tb->tb_chain); in vioif_txbuf_free() 282 list_insert_head(&vif->vif_txbufs, tb); in vioif_txbuf_free() 371 vioif_txbuf_t *tb = &vif->vif_txbufs_mem[i]; in vioif_free_bufs() local 376 VERIFY(list_link_active(&tb->tb_link)); in vioif_free_bufs() 377 list_remove(&vif->vif_txbufs, tb); in vioif_free_bufs() 382 VERIFY3P(tb->tb_mp, ==, NULL); in vioif_free_bufs() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | log2.c | 199 double *tb, s; in log2() local 201 tb = (double *) _TBL_log + (i + i + i); in log2() 204 s = (x - tb[0]) * tb[1]; in log2() 205 return (LGH * tb[2] - (LGL * tb[2] - ((B1 * s) * in log2() 211 double *tb, dn, s; in log2() local 219 tb = (double *) _TBL_log + (i + i + i); in log2() 220 s = (x - tb[0]) * tb[1]; in log2() 221 return (dn + (tb[2] * LN10V + ((B1 * s) * in log2()
|
H A D | log10.c | 154 double *tb, dn, dn1, s, z, r, w; in log10() local 197 tb = (double *)_TBL_log + (i + i + i); in log10() 198 s = (x - tb[0]) * tb[1]; in log10() 199 return (LGH * tb[2] - (LGL * tb[2] - ((B1 * s) * in log10() 210 tb = (double *)_TBL_log + (i + i + i); in log10() 211 s = (x - tb[0]) * tb[1]; in log10() 212 dn = dn * LNALO + tb[2] * LG10V; in log10()
|
H A D | log.c | 158 double *tb, dn, dn1, s, z, r, w; in log() local 201 tb = (double *)_TBL_log + (i + i + i); in log() 202 s = (x - tb[0]) * tb[1]; in log() 203 return (tb[2] + ((B1 * s) * (B2 + s * (B3 + s))) * in log() 213 tb = (double *)_TBL_log + (i + i + i); in log() 214 s = (x - tb[0]) * tb[1]; in log() 215 dn = dn * LN2LO + tb[2]; in log()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 237 char *tb = &tmpbuf[0]; in irp_unmarshall_pw() local 258 tb = tmpbuf; in irp_unmarshall_pw() 259 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 260 strlen(tb) == 0) { in irp_unmarshall_pw() 263 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 264 if (*tb) { in irp_unmarshall_pw() 275 tb = tmpbuf; in irp_unmarshall_pw() 276 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 277 strlen(tb) == 0) { in irp_unmarshall_pw() 280 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | base64.c | 51 base64encode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64encode() argument 71 if (tp = (unsigned char*)tb) in base64encode() 99 n = tp - (unsigned char*)tb + 1; in base64encode() 128 n = tp - (unsigned char*)tb + 1; in base64encode() 144 if (tp > (unsigned char*)tb && *(tp - 1) == '\n') in base64encode() 148 n = tp - (unsigned char*)tb; in base64encode() 162 base64decode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64decode() argument 186 if (tp = (unsigned char*)tb) in base64decode() 217 n = tp - (unsigned char*)tb + 4; in base64decode() 259 n = tp - (unsigned char*)tb + 2; in base64decode() [all …]
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_bind.c | 546 CLIENT *tb = NULL; in __yp_dobind_cflookup() local 609 tb = __clnt_create_loopback(YPBINDPROG, YPBINDVERS, &err); in __yp_dobind_cflookup() 610 if (tb == NULL) { in __yp_dobind_cflookup() 623 ypbind_resp = ypbindproc_domain_3(&ypbd, tb); in __yp_dobind_cflookup() 630 clnt_perror(tb, in __yp_dobind_cflookup() 632 clnt_destroy(tb); in __yp_dobind_cflookup() 633 tb = NULL; in __yp_dobind_cflookup() 644 clnt_destroy(tb); in __yp_dobind_cflookup() 645 tb = NULL; in __yp_dobind_cflookup() 648 clnt_destroy(tb); in __yp_dobind_cflookup() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | sa.c | 408 sa_lot_t *tb, *findtb; in sa_add_layout_entry() local 413 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry() 414 tb->lot_attr_count = attr_count; in sa_add_layout_entry() 417 tb->lot_attrs = kmem_alloc(size, KM_SLEEP); in sa_add_layout_entry() 418 bcopy(attrs, tb->lot_attrs, size); in sa_add_layout_entry() 421 tb->lot_num = lot_num; in sa_add_layout_entry() 422 tb->lot_hash = hash; in sa_add_layout_entry() 423 tb->lot_instance = 0; in sa_add_layout_entry() 440 list_create(&tb->lot_idx_tab, sizeof (sa_idx_tab_t), in sa_add_layout_entry() 444 if (sa->sa_attr_table[tb->lot_attrs[i]].sa_length == 0) in sa_add_layout_entry() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer7.c | 74 char tb[20]; in dumpold() local 75 char *s = tb; in dumpold() 80 newr[atoi(tb)] = nr; in dumpold() 83 nr, atoi(tb)); in dumpold() 117 char tb[10]; in recopy() local 118 char *s = tb; in recopy() 127 finalrn = newr[atoi(tb)]; in recopy() 129 finalrn = atoi(tb); in recopy()
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | in.test | 178 CREATE TABLE tb(a INTEGER PRIMARY KEY, b); 179 INSERT INTO tb VALUES(1,1); 180 INSERT INTO tb VALUES(2,2); 181 INSERT INTO tb VALUES(3,3); 182 INSERT INTO tb VALUES(5,5); 183 INSERT INTO tb VALUES(7,7); 184 INSERT INTO tb VALUES(9,9); 185 INSERT INTO tb VALUES(11, 187 SELECT * FROM tb WHERE a<10; 192 SELECT a FROM ta WHERE b IN (SELECT a FROM tb); [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 101 pushtemp(int fd, struct tempblk *tb) in pushtemp() argument 103 tb->fdes = fd; in pushtemp() 104 tb->fstak = tmpfptr; in pushtemp() 105 tmpfptr = tb; in pushtemp() 181 tmpfil(struct tempblk *tb) in tmpfil() argument 205 pushtemp(fd, tb); in tmpfil() 234 struct tempblk tb; in copy() local 240 fd = tmpfil(&tb); in copy()
|
/illumos-gate/usr/src/test/elf-tests/tests/resolution/mixed-hidden-comdat/ |
H A D | main.c | 31 uint64_t tb = test_bss(); in main() local 39 if (tb != CORRECT_BSS) { in main() 41 CORRECT_BSS, tb); in main()
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_samedomain.c | 192 char ta[NS_MAXDNAME], tb[NS_MAXDNAME]; in ns_samename() local 195 ns_makecanon(b, tb, sizeof tb) < 0) in ns_samename() 197 if (strcasecmp(ta, tb) == 0) in ns_samename()
|
/illumos-gate/usr/src/common/ccid/ |
H A D | atr.c | 881 uint8_t tb = data->atr_ti[i].atrti_tb; in atr_t1_cwi() local 882 return (ATR_T1_TB0_CWI(tb)); in atr_t1_cwi() 953 uint8_t tb = data->atr_ti[i].atrti_tb; in atr_t1_bwi() local 954 return (ATR_T1_TB0_BWI(tb)); in atr_t1_bwi() 1369 uint8_t tb; in atr_data_dump_tb() local 1375 tb = atp->atrti_tb; in atr_data_dump_tb() 1379 atp->atrti_ti_val, tb); in atr_data_dump_tb() 1391 ATR_T1_TB0_CWI(tb), in atr_data_dump_tb() 1392 ATR_T1_TB0_BWI(tb)); in atr_data_dump_tb() 1397 (void) fprintf(out, "; SPU: %s", tb == 0 ? "not used" : in atr_data_dump_tb() [all …]
|