Searched defs:tbuf (Results 26 - 50 of 89) sorted by relevance

1234

/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dreadbuf.c368 char *sizebuf, tbuf[16]; local
380 if (read(lbp->fd, tbuf, BYTES_PER_XDR_UNIT) <= 0) {
384 sizebuf = tbuf;
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c321 struct tbuf { struct
374 struct tbuf bufr;
H A Dline.c263 static struct termio tbuf; local
270 if ((*Ioctl)(Ifn, TCGETA, &tbuf) != 0) {
273 tbufs.c_lflag = tbuf.c_lflag;
274 tbufs.c_oflag = tbuf.c_oflag;
275 tbufs.c_iflag = tbuf.c_iflag;
276 tbufs.c_cflag = tbuf.c_cflag;
278 tbufs.c_cc[i] = tbuf.c_cc[i];
318 tbuf.c_lflag = tbufs.c_lflag;
319 tbuf.c_oflag = tbufs.c_oflag;
320 tbuf
[all...]
H A Dconn.c1283 struct tms tbuf; local
1294 endtime = times(&tbuf) + 3*n/4; /* use 3/4 because of scheduler! */
1295 while (times(&tbuf) < endtime) {
H A Dcntrl.c259 char tbuf[TBUFSIZE]; local
498 sprintf(tbuf,"start=0x%lx", startp);
500 sprintf(tbuf,"start=%ld", startp);
502 logent(tbuf, "RESTART");
659 sprintf(tbuf,"start=0x%lx", startp);
661 sprintf(tbuf,"start=%ld", startp);
662 p = tbuf + strlen(tbuf);
668 logent(tbuf, "RESTART");
852 sprintf(tbuf,"star
[all...]
/illumos-gate/usr/src/cmd/captoinfo/
H A Dotermcap.c67 * BUG: Should use a "last" pointer in tbuf, so that searching
78 static char *tbuf; variable
129 tbuf = bp;
211 char *holdtbuf = tbuf;
214 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
216 if (p < tbuf) {
250 tbuf = holdtbuf;
265 Bp = tbuf;
309 char *bp = tbuf;
[all...]
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c100 static char *tbuf = NULL; variable
293 tbuf = buf;
405 if (tbuf != NULL) {
407 tbuf = (char *)realloc(buf, buf_size);
408 if (tbuf == NULL) {
416 buf = tbuf;
447 if (tbuf != NULL) {
449 tbuf = (char *)realloc(buf, buf_size);
450 if (tbuf == NULL) {
458 buf = tbuf;
[all...]
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c53 * BUG: Should use a "last" pointer in tbuf, so that searching
64 static char *tbuf; variable
120 tbuf = bp;
134 tbuf = bp;
224 char *holdtbuf = tbuf;
227 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
229 if (p < tbuf) {
260 tbuf = holdtbuf;
275 Bp = tbuf;
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5sealv3.c61 void *tbuf; local
69 tbuf = MALLOC(rc);
70 if (tbuf == 0)
72 (void) memcpy(tbuf, ptr, rc);
74 (void) memcpy((char *)ptr + bufsiz - rc, tbuf, rc);
75 FREE(tbuf, rc);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_fwlog.c1042 char *tbuf = pwp->iqpt->curpos; local
1045 if (tbuf == NULL) {
1052 tbuf = pwp->iqpt->curpos = pwp->iqpt->head;
1060 n += snprintf(&tbuf[n], (size_left - n),
H A Dpmcs_nvram.c456 char tbuf[80]; local
556 bcopy(bufp, tbuf, strid_length);
557 tbuf[strid_length] = 0;
560 "%s: Product Name: '%s'", __func__, tbuf);
561 pmcs_smhba_add_hba_prop(pwp, DATA_TYPE_STRING, PMCS_MODEL_NAME, tbuf);
573 tbuf[0] = 0;
574 str_len = snprintf(tbuf, 80, "VPD: %c%c = <",
579 tbuf[str_len + idx] = vkvp->value[idx];
584 tbuf[str_len] = '>';
585 tbuf[str_le
[all...]
/illumos-gate/usr/src/cmd/logadm/
H A Dkw.c354 char tbuf[4]; local
356 /* copy % sequence to tbuf */
357 tbuf[0] = '%';
358 tbuf[1] = fn_getc(src);
359 if (tbuf[1] == 'E' || tbuf[1] == 'O') {
361 tbuf[2] = fn_getc(src);
362 tbuf[3] = '\0';
364 tbuf[2] = '\0';
366 if (strftime(buf, MAXDIGITS, tbuf, gmt_t
[all...]
/illumos-gate/usr/src/cmd/acct/
H A Dacctcon1.c54 int tsize = -1; /* used slots in tbuf table */
58 struct tbuf { struct
67 } * tbuf; variable in typeref:struct:tbuf
96 static void update(struct tbuf *);
129 if ((tbuf = (struct tbuf *) calloc(a_tsize,
130 sizeof (struct tbuf))) == NULL) {
243 struct tbuf *tp;
255 for (tp = tbuf; tp <= &tbuf[tsiz
[all...]
H A Dacctcon.c51 int tsize = -1; /* highest index of used slot in tbuf table */
58 struct tbuf { struct
67 } *tbuf; variable in typeref:struct:tbuf
99 static void update(struct tbuf *);
102 static int tcmp(struct tbuf *, struct tbuf *);
133 if ((tbuf = (struct tbuf *)calloc(a_tsize,
134 sizeof (struct tbuf))) == NULL) {
217 struct tbuf *t
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_query_dir.c312 char *tbuf = NULL; local
333 tbuf = kmem_alloc(tbuflen, KM_SLEEP);
362 &args->fa_fi, &args->fa_mi, tbuf, tbuflen);
407 if (tbuf != NULL)
408 kmem_free(tbuf, tbuflen);
/illumos-gate/usr/src/cmd/saf/
H A Dpmadm.c650 char tbuf[SIZE]; /* scratch buffer */ local
699 to = tbuf;
739 (void) fprintf(tfp, "%s", tbuf);
/illumos-gate/usr/src/cmd/ipcs/
H A Dipcs.c119 char tbuf[BUFSIZ]; local
126 (void) memset(tbuf, 0, sizeof (tbuf));
202 (void) strftime(tbuf, sizeof (tbuf), dfmt, localtime(&now));
204 tbuf);
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmach_descrip.c292 caddr_t tbuf = NULL; local
311 if (tbuf != NULL)
312 (*curr_mach_descrip_memops->buf_freep)(tbuf, md_space);
325 tbuf = (caddr_t)(*curr_mach_descrip_memops->buf_allocp)
327 if (tbuf == NULL) {
332 tbuf_pa = va_to_pa(tbuf);
350 tgen = mach_descrip_find_md_gen(tbuf);
370 if (bcmp(curr_mach_descrip->va, tbuf, md_size) != 0) {
429 curr_mach_descrip->va = tbuf;
442 if (tbuf !
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dfio.c493 FILE *obuf, *ibuf, *tbuf = 0, *readstat; local
547 if ((tbuf = fopen(tempname, "r")) == NULL) {
560 if (tbuf)
561 fclose(tbuf);
577 if (tbuf)
578 fclose(tbuf);
583 gotcha = (c == 0 && tbuf == NULL);
584 if (tbuf != NULL) {
585 while ((c = getc(tbuf)) != EOF)
587 fclose(tbuf);
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_dtime.c392 char tbuf[64]; local
399 (void) ctime_r(&t, tbuf, sizeof (tbuf));
401 (void) fprintf(fp, tbuf);
433 makedumpdate(dumpdates_t *ddp, char *tbuf) argument
445 if (!ddp || !tbuf)
447 else if (!(nmp = get_ddname(&tbuf))) {
450 } else if ((ddp->dd_level = get_ddlevel(&tbuf)) < 0) {
453 } else if (!(un_buf = get_ddate(&tbuf))) {
481 char tbuf[BUFSI local
962 char tbuf[64]; local
999 char tbuf[64]; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmodhash.c490 char tbuf[64]; local
493 (void) mdb_snprintf(tbuf, sizeof (tbuf), "%p",
495 tname = tbuf;
/illumos-gate/usr/src/cmd/mdb/common/modules/smbsrv/
H A Dsmbsrv_pcap.c196 char *tbuf; member in struct:req_dump_state
382 dump_state.tbuf = mdb_alloc(dump_state.tbuf_size, UM_SLEEP);
385 mdb_free(dump_state.tbuf, dump_state.tbuf_size);
423 n = mdb_vread(st->tbuf, x, addr);
428 n = write(pcap_fd, st->tbuf, x);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dfksmbcl_main.c68 static char tbuf[TBUFSZ]; variable
445 cnt = fake_getdents(vp, &off, tbuf, TBUFSZ);
450 show_dents(vp, &off, tbuf, cnt);
483 cnt = fake_getdents(vp, &off, tbuf, TBUFSZ);
488 show_dents(vp, &off, tbuf, cnt);
609 cnt = fake_pread(vp, tbuf, TBUFSZ, off);
614 x = write(lfd, tbuf, cnt);
687 cnt = pread(lfd, tbuf, TBUFSZ, off);
692 x = fake_pwrite(vp, tbuf, cnt, off);
/illumos-gate/usr/src/lib/efcode/engine/
H A Denv.c532 char tbuf[CMN_MSG_SIZE]; local
557 strncpy(tbuf, fmt, bytes);
558 strncpy(tbuf+bytes, "%", 1);
559 strncpy(tbuf+bytes+1, fmt+bytes, 1);
561 tbuf[bytes] = 0;
565 tbuf+bytes-3);
567 strncpy(fmtbuf, tbuf, bsize);
573 strncpy(tbuf, fmt, bytes);
574 tbuf[bytes] = 0;
579 strncpy(tbuf, fm
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Ddns_ho.c690 char tbuf[MAXDNAME+1]; local
800 n = dn_expand(ansbuf, eor, cp, tbuf, sizeof tbuf);
801 if (n < 0 || !maybe_ok(pvt->res, tbuf, name_ok)) {
813 n = strlen(tbuf) + 1; /*%< for the \\0 */
818 strcpy(bp, tbuf); /* (checked) */
825 n = dn_expand(ansbuf, eor, cp, tbuf, sizeof tbuf);
826 if (n < 0 || !maybe_dnok(pvt->res, tbuf)) {
845 n = strlen(tbuf)
[all...]

Completed in 327 milliseconds

1234