/titanic_50/usr/src/cmd/mail/ |
H A D | lock.c | 38 char tbuf[80]; in lock() local 44 (void) snprintf(tbuf, sizeof (tbuf), in lock() 49 strcpy(tbuf, "Cannot create temp lock file\n"); in lock() 52 strcpy(tbuf, "Error writing pid to lock file\n"); in lock() 55 strcpy(tbuf, "Creation of lockfile failed after 10 tries"); in lock() 58 strcpy(tbuf, "Cannot link temp lockfile to lockfile\n"); in lock() 61 strcpy(tbuf, "Cannot set mandatory file lock on temp lockfile\n"); in lock() 64 errmsg(E_LOCK, tbuf); in lock()
|
H A D | savehdrs.c | 40 char tbuf[HDRSIZ]; local 68 (void) snprintf(tbuf, sizeof (tbuf), 72 pushlist(H_RECEIVED, HEAD, tbuf, FALSE);
|
/titanic_50/usr/src/cmd/acct/ |
H A D | acctcon.c | 60 struct tbuf { struct 69 } *tbuf; argument 101 static void update(struct tbuf *); 104 static int tcmp(struct tbuf *, struct tbuf *); 135 if ((tbuf = (struct tbuf *)calloc(a_tsize, in main() 136 sizeof (struct tbuf))) == NULL) { in main() 219 struct tbuf *tp; in loop() 231 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop() 249 update(&tbuf[iline()]); in loop() 296 if (EQN(wb.ut_line, tbuf[i].tline)) in iline() [all …]
|
H A D | acctcon1.c | 58 struct tbuf { struct 67 } * tbuf; argument 96 static void update(struct tbuf *); 129 if ((tbuf = (struct tbuf *) calloc(a_tsize, in main() 130 sizeof (struct tbuf))) == NULL) { in main() 243 struct tbuf *tp; in loop() 255 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop() 271 update(&tbuf[iline()]); in loop() 318 if (EQN(wb.ut_line, tbuf[i].tline)) in iline() 322 if ((tbuf = (struct tbuf *) realloc(tbuf, a_tsize * in iline() [all …]
|
/titanic_50/usr/src/ucblib/libtermcap/ |
H A D | termcap.c | 50 static char *tbuf; variable 77 tbuf = bp; in tgetent() 92 tbuf = cp; in tgetent() 94 tbuf = bp; in tgetent() 159 char *holdtbuf = tbuf; in tnchktc() 162 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 164 if (p < tbuf) { in tnchktc() 171 tngetsize(tbuf); in tnchktc() 192 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc() 195 tbuf = holdtbuf; in tnchktc() [all …]
|
/titanic_50/usr/src/cmd/vgrind/ |
H A D | vgrindefs.c | 30 static char *tbuf; variable 58 tbuf = bp; in tgetent() 115 char *holdtbuf = tbuf; in tnchktc() 118 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 120 if (p<tbuf) { in tnchktc() 147 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc() 150 tbuf = holdtbuf; in tnchktc() 165 Bp = tbuf; in tnamatch() 209 char *bp = tbuf; in tgetnum() 241 char *bp = tbuf; in tgetflag() [all …]
|
/titanic_50/usr/src/cmd/hal/hald/ |
H A D | logger.c | 142 char tbuf[256]; in logger_emit() local 176 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime); in logger_emit() 181 …snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/10… in logger_emit() 183 …snprintf (logmsg, sizeof(logmsg), "%s.%03d %s %s:%d: %s\n", tbuf, (int)(tnow.tv_usec/1000), pri, f… in logger_emit() 214 char tbuf[256]; in logger_forward_debug() local 231 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime); in logger_forward_debug() 234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); in logger_forward_debug() 236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); in logger_forward_debug()
|
/titanic_50/usr/src/uts/common/xen/dtrace/ |
H A D | xdt.c | 312 } tbuf; variable 501 (knp++)->value.ui64 = tbuf.stat_dropped_recs; in xdt_kstat_update() 622 tbuf.size = tbuf_op.size; in xdt_attach_trace_buffers() 623 tbuf.start_mfn = (mfn_t)tbuf_op.buffer_mfn; in xdt_attach_trace_buffers() 624 tbuf.cnt = xdt_ncpus; in xdt_attach_trace_buffers() 626 ASSERT(tbuf.start_mfn != MFN_INVALID); in xdt_attach_trace_buffers() 627 ASSERT(tbuf.cnt > 0); in xdt_attach_trace_buffers() 629 len = tbuf.size * tbuf.cnt; in xdt_attach_trace_buffers() 630 tbuf.va = vmem_alloc(heap_arena, len, VM_SLEEP); in xdt_attach_trace_buffers() 632 if ((err = xdt_map_trace_buffers(tbuf.start_mfn, tbuf.va, len)) != 0) { in xdt_attach_trace_buffers() [all …]
|
/titanic_50/usr/src/lib/efcode/engine/ |
H A D | env.c | 532 char tbuf[CMN_MSG_SIZE]; in fmt_str() local 557 strncpy(tbuf, fmt, bytes); in fmt_str() 558 strncpy(tbuf+bytes, "%", 1); in fmt_str() 559 strncpy(tbuf+bytes+1, fmt+bytes, 1); in fmt_str() 561 tbuf[bytes] = 0; in fmt_str() 565 tbuf+bytes-3); in fmt_str() 567 strncpy(fmtbuf, tbuf, bsize); in fmt_str() 573 strncpy(tbuf, fmt, bytes); in fmt_str() 574 tbuf[bytes] = 0; in fmt_str() 579 strncpy(tbuf, fmt, bytes); in fmt_str() [all …]
|
/titanic_50/usr/src/cmd/captoinfo/ |
H A D | otermcap.c | 78 static char *tbuf; variable 129 tbuf = bp; in _tgetent() 211 char *holdtbuf = tbuf; in otnchktc() 214 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in otnchktc() 216 if (p < tbuf) { in otnchktc() 250 tbuf = holdtbuf; in otnchktc() 265 Bp = tbuf; in otnamatch() 309 char *bp = tbuf; in otgetnum() 341 char *bp = tbuf; in otgetflag() 367 char *bp = tbuf; in otgetstr()
|
H A D | captoinfo.c | 175 char *tbuf = bp; in checktermcap() local 179 tbuf = tskip(tbuf); in checktermcap() 180 while (*tbuf == '\t' || *tbuf == ' ' || *tbuf == ':') in checktermcap() 181 tbuf++; in checktermcap() 183 if (*tbuf == 0) in checktermcap() 187 if (*tbuf == '.') { in checktermcap() 190 "commented out.\n", tbuf[1], tbuf[2]); in checktermcap() 191 if (!capsearch(boolcodes, oboolcodes, tbuf + 1) && in checktermcap() 192 !capsearch(numcodes, onumcodes, tbuf + 1) && in checktermcap() 193 !capsearch(strcodes, ostrcodes, tbuf + 1)) in checktermcap() [all …]
|
/titanic_50/usr/src/cmd/tip/ |
H A D | remcap.c | 64 static char *tbuf; variable 120 tbuf = bp; in tgetent() 134 tbuf = bp; in getent() 224 char *holdtbuf = tbuf; in tnchktc() 227 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 229 if (p < tbuf) { in tnchktc() 260 tbuf = holdtbuf; in tnchktc() 275 Bp = tbuf; in tnamatch() 324 char *bp = tbuf; in tgetnum() 356 char *bp = tbuf; in tgetflag() [all …]
|
/titanic_50/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_dtime.c | 392 char tbuf[64]; in put_ddate() local 399 (void) ctime_r(&t, tbuf, sizeof (tbuf)); in put_ddate() 401 (void) fprintf(fp, tbuf); in put_ddate() 433 makedumpdate(dumpdates_t *ddp, char *tbuf) in makedumpdate() argument 445 if (!ddp || !tbuf) in makedumpdate() 447 else if (!(nmp = get_ddname(&tbuf))) { in makedumpdate() 450 } else if ((ddp->dd_level = get_ddlevel(&tbuf)) < 0) { in makedumpdate() 453 } else if (!(un_buf = get_ddate(&tbuf))) { in makedumpdate() 481 char tbuf[BUFSIZ]; in getrecord() local 487 if (getaline(fp, tbuf, sizeof (tbuf)) != tbuf) in getrecord() [all …]
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | line.c | 263 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.c_iflag = tbufs.c_iflag; [all …]
|
H A D | logent.c | 190 struct tms tbuf; in millitick() local 195 past = times(&tbuf); in millitick() 198 now = times(&tbuf); in millitick() 212 struct timeb tbuf; in millitick() local 222 ftime(&tbuf); in millitick() 223 rval = (tbuf.time - tbuf1.time) * 1000 in millitick() 224 + tbuf.millitm - tbuf1.millitm; in millitick() 225 tbuf1 = tbuf; in millitick()
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | symlink.c | 62 char *tbuf; in symlinkat() local 89 tbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in symlinkat() 90 if ((error = copyinstr(target, tbuf, MAXPATHLEN, &tlen)) == 0) { in symlinkat() 95 tbuf, CRED(), NULL, 0); in symlinkat() 98 tbuf, error); in symlinkat() 100 kmem_free(tbuf, MAXPATHLEN); in symlinkat()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_smb.c | 1056 char tbuf[256]; in interpret_negprot() local 1086 tbuf[0] = '\0'; in interpret_negprot() 1090 length = strlcpy(tbuf, (char *)protodata, in interpret_negprot() 1091 sizeof (tbuf)); in interpret_negprot() 1095 i, tbuf); in interpret_negprot() 1104 snprintf(xtra, xsz, " Dialect[%d]=%s", last, tbuf); in interpret_negprot() 1164 tbuf[0] = '\0'; in interpret_negprot() 1166 (void) unicode2ascii(tbuf, sizeof (tbuf), in interpret_negprot() 1167 protodata, 2 * sizeof (tbuf)); in interpret_negprot() 1169 (void) strlcpy(tbuf, (char *)protodata, in interpret_negprot() [all …]
|
/titanic_50/usr/src/cmd/logadm/ |
H A D | kw.c | 354 char tbuf[4]; in kw_expand() local 357 tbuf[0] = '%'; in kw_expand() 358 tbuf[1] = fn_getc(src); in kw_expand() 359 if (tbuf[1] == 'E' || tbuf[1] == 'O') { in kw_expand() 361 tbuf[2] = fn_getc(src); in kw_expand() 362 tbuf[3] = '\0'; in kw_expand() 364 tbuf[2] = '\0'; in kw_expand() 366 if (strftime(buf, MAXDIGITS, tbuf, gmt_tm) == 0) in kw_expand() 368 fn_puts(dst, tbuf); in kw_expand()
|
/titanic_50/usr/src/lib/libbsm/common/ |
H A D | audit_rexd.c | 159 char *tbuf; /* temporary buffer */ local 242 if ((tbuf = malloc(tlen)) == NULL) { 246 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); 247 (void) au_write(rd, au_to_text(tbuf)); 248 (void) free(tbuf); 277 char *tbuf; /* temporary buffer */ local 359 if ((tbuf = malloc(tlen)) == NULL) { 364 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); 365 (void) au_write(rd, au_to_text(tbuf)); 366 (void) free(tbuf);
|
H A D | audit_rexecd.c | 135 char *tbuf; /* temporary buffer */ local 216 if ((tbuf = malloc(tlen)) == NULL) { 220 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); 221 (void) au_write(rd, au_to_text(tbuf)); 222 (void) free(tbuf); 246 char *tbuf; /* temporary buffer */ local 324 if ((tbuf = malloc(tlen)) == NULL) { 327 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); 328 (void) au_write(rd, au_to_text(tbuf)); 329 (void) free(tbuf);
|
/titanic_50/usr/src/cmd/sendmail/db/log/ |
H A D | log_get.c | 101 char *np, *tbuf; local 106 fail = np = tbuf = NULL; 267 if ((ret = __os_malloc(len, NULL, &tbuf)) != 0) 276 if ((ret = __os_read(dblp->c_fd, tbuf, len, &nr)) != 0) { 287 memcpy((u_int8_t *)tbuf + nr, lp->buf, len - nr); 291 if ((ret = __db_retcopy(dbt, tbuf, len, 294 __os_free(tbuf, 0); 295 tbuf = NULL; 326 if (tbuf != NULL) 327 __os_free(tbuf, 0);
|
/titanic_50/usr/src/cmd/strings/ |
H A D | strings.c | 100 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;
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | sftp-common.c | 198 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local 215 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); in ls_file() 217 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); in ls_file() 220 tbuf[0] = '\0'; in ls_file() 225 (unsigned long long)st->st_size, tbuf, name); in ls_file()
|
/titanic_50/usr/src/cmd/audio/utilities/ |
H A D | AudioPipe.cc | 107 char *tbuf; // current buffer pointer in ReadData() local 111 tbuf = (char *)buf; in ReadData() 118 err = AudioUnixfile::ReadData((void*)tbuf, remain, pos); in ReadData() 126 tbuf += remain; in ReadData()
|
/titanic_50/usr/src/cmd/script/ |
H A D | script.c | 185 char tbuf[BUFSIZ]; in dooutput() local 190 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in dooutput() 191 fprintf(fscript, gettext("Script started on %s\n"), tbuf); in dooutput() 245 char tbuf[BUFSIZ]; in done() local 249 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in done() 250 fprintf(fscript, gettext("\nscript done on %s\n"), tbuf); in done()
|