/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/fs.d/nfs/showmount/ |
H A D | showmount.c | 79 struct mountbody **tb; /* pointer into table */ in main() local 190 for (ml = result_list, tb = &table[0]; in main() 192 ml = ml->ml_next, tb++) { in main() 193 *tb = ml; in main() 205 for (tb = table; tb < table + numentries; tb++) in main() 206 printf("%s:%s\n", (*tb)->ml_hostname, in main() 207 (*tb)->ml_directory); in main() 210 for (tb = table; tb < table + numentries; tb++) { in main() 211 if (strcmp(last, (*tb)->ml_directory)) in main() 212 printf("%s\n", (*tb)->ml_directory); in main() [all …]
|
/titanic_50/usr/src/cmd/fs.d/nfs/dfmounts/ |
H A D | dfmounts.c | 121 struct mountbody **tb, **endtb; local 175 tb = table; 176 for (; ml != NULL && tb < &table[NTABLEENTRIES]; ml = ml->ml_next) 177 *tb++ = ml; 178 if (ml != NULL && tb == &table[NTABLEENTRIES]) 181 endtb = tb; 190 for (tb = table; tb < endtb; tb++) { 191 if (*((*tb)->ml_directory) == '\0' || 192 *((*tb)->ml_hostname) == '\0') 194 if (strcmp(lastpath, (*tb)->ml_directory) == 0) { [all …]
|
/titanic_50/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 | 51 struct tacct tb; variable 158 tb.ta_uid = (*(struct utab **)node)->ut_uid; in print_node() 159 CPYN(tb.ta_name, (char *)uidtonam((*(struct utab **)node)->ut_uid)); in print_node() 160 tb.ta_cpu[0] = (*(struct utab **)node)->ut_cpu[0]; in print_node() 161 tb.ta_cpu[1] = (*(struct utab **)node)->ut_cpu[1]; in print_node() 162 tb.ta_kcore[0] = (*(struct utab **)node)->ut_kcore[0]; in print_node() 163 tb.ta_kcore[1] = (*(struct utab **)node)->ut_kcore[1]; in print_node() 164 tb.ta_pc = (*(struct utab **)node)->ut_pc; in print_node() 165 fwrite(&tb, sizeof(tb), 1, stdout); in print_node()
|
H A D | acctmerg.c | 56 struct tacct tb[NFILE]; /* current record from each file */ variable 121 prtacct(&tb[i]); in main() 150 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast() 175 getnext(tp-&tb[0]); /* get next one in same file */ in sumcurr() 176 while (tp <= &tb[nfile]) in sumcurr() 182 getnext(tp-&tb[0]); in sumcurr() 222 tp = &tb[i]; in getnext()
|
H A D | acctcon.c | 57 struct tacct tb; variable 502 tb.ta_uid = (*(struct ctab **)node)->ct_uid; in print_node() 503 CPYN(tb.ta_name, (*(struct ctab **)node)->ct_name); in print_node() 504 tb.ta_con[0] = ((*(struct ctab **)node)->ct_con[0]) / 60.0; in print_node() 505 tb.ta_con[1] = ((*(struct ctab **)node)->ct_con[1]) / 60.0; in print_node() 506 tb.ta_sc = (*(struct ctab **)node)->ct_sess; in print_node() 507 fwrite(&tb, sizeof (tb), 1, stdout); in print_node()
|
/titanic_50/usr/src/lib/libast/common/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 …]
|
H A D | omitted.c | 588 char tb[PATH_MAX]; in link() local 593 if (execrate(tp, tb, sizeof(tb), 1)) in link() 594 tp = tb; in link() 722 char tb[PATH_MAX]; in rename() local 727 if (execrate(tp, tb, sizeof(tb), 1)) in rename() 728 tp = tb; in rename()
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libast/common/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 …]
|
/titanic_50/usr/src/cmd/calendar/ |
H A D | calprog.c | 223 char *tb, *ob; in generate() local 227 tb = timebuf; in generate() 229 while (*tb) in generate() 230 if (isspace(*tb)) { in generate() 231 ++tb; in generate() 245 if (isalpha(*tb)) { in generate() 247 *ob++ = toupper(*tb); in generate() 248 *ob++ = tolower(*tb++); in generate() 253 *ob++ = *tb++; in generate() 254 if (*(tb - 1) == '0') in generate()
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 241 char *tb = &tmpbuf[0]; in irp_unmarshall_pw() local 262 tb = tmpbuf; in irp_unmarshall_pw() 263 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 264 strlen(tb) == 0) { in irp_unmarshall_pw() 267 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 268 if (*tb) { in irp_unmarshall_pw() 279 tb = tmpbuf; in irp_unmarshall_pw() 280 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 281 strlen(tb) == 0) { in irp_unmarshall_pw() 284 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | sa.c | 409 sa_lot_t *tb, *findtb; in sa_add_layout_entry() local 414 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry() 415 tb->lot_attr_count = attr_count; in sa_add_layout_entry() 416 tb->lot_attrs = kmem_alloc(sizeof (sa_attr_type_t) * attr_count, in sa_add_layout_entry() 418 bcopy(attrs, tb->lot_attrs, sizeof (sa_attr_type_t) * attr_count); in sa_add_layout_entry() 419 tb->lot_num = lot_num; in sa_add_layout_entry() 420 tb->lot_hash = hash; in sa_add_layout_entry() 421 tb->lot_instance = 0; in sa_add_layout_entry() 438 list_create(&tb->lot_idx_tab, sizeof (sa_idx_tab_t), in sa_add_layout_entry() 442 if (sa->sa_attr_table[tb->lot_attrs[i]].sa_length == 0) in sa_add_layout_entry() [all …]
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/refer/ |
H A D | refer7.c | 76 char tb[20]; in dumpold() local 77 char *s = tb; in dumpold() 82 newr[atoi(tb)] = nr; in dumpold() 85 nr, atoi(tb)); in dumpold() 119 char tb[10]; in recopy() local 120 char *s = tb; in recopy() 129 finalrn = newr[atoi(tb)]; in recopy() 131 finalrn = atoi(tb); in recopy()
|
/titanic_50/usr/src/lib/libsqlite/test/ |
H A D | in.test | 180 CREATE TABLE tb(a INTEGER PRIMARY KEY, b); 181 INSERT INTO tb VALUES(1,1); 182 INSERT INTO tb VALUES(2,2); 183 INSERT INTO tb VALUES(3,3); 184 INSERT INTO tb VALUES(5,5); 185 INSERT INTO tb VALUES(7,7); 186 INSERT INTO tb VALUES(9,9); 187 INSERT INTO tb VALUES(11, 189 SELECT * FROM tb WHERE a<10; 194 SELECT a FROM ta WHERE b IN (SELECT a FROM tb); [all …]
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_samedomain.c | 196 char ta[NS_MAXDNAME], tb[NS_MAXDNAME]; in ns_samename() local 199 ns_makecanon(b, tb, sizeof tb) < 0) in ns_samename() 201 if (strcasecmp(ta, tb) == 0) in ns_samename()
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | sa_impl.h | 268 #define SA_HDR_SIZE_MATCH_LAYOUT(hdr, tb) \ argument 270 (tb->lot_var_sizes > 1 ? P2ROUNDUP((tb->lot_var_sizes - 1) * \
|
/titanic_50/usr/src/cmd/mdb/common/modules/nca/ |
H A D | nca.c | 440 tb_t tb; in nca_timer() local 470 for (tb_addr = ti.head; tb_addr != NULL; tb_addr = tb.next) { in nca_timer() 471 if (mdb_vread(&tb, sizeof (tb_t), (uintptr_t)tb_addr) == -1) { in nca_timer() 476 mdb_printf(" %ld", tick2msec(tb.exec - lbolt)); in nca_timer() 477 first_exec = tb.exec; in nca_timer() 479 mdb_printf(" %+lld", tick2msec(tb.exec - first_exec)); in nca_timer() 481 if (!show_encap || tb.head == NULL) in nca_timer() 485 for (te_addr = tb.head; te_addr != NULL; te_addr = te.next) { in nca_timer()
|