/openbsd-current/libexec/talkd/ |
H A D | print.c | 54 char tbuf[80], *tp; local 57 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); 58 tp = tbuf; 68 char tbuf[80], *tp, abuf[80], *ap; local 71 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); 72 tp = tbuf;
|
/openbsd-current/distrib/special/more/ |
H A D | termcap.c | 48 * BUG: Should use a "last" pointer in tbuf, so that searching 59 static char *tbuf; /* termcap buffer */ variable 76 tbuf = bp; 135 tbuf = dummy; 158 if (cgetnum(tbuf, id, &num) == 0) 173 return (cgetcap(tbuf, id, ':') != NULL); 200 if ((i = cgetstr(tbuf, ids, &s)) < 0)
|
/openbsd-current/usr.sbin/dhcpd/ |
H A D | db.c | 74 char tbuf[26]; /* "w yyyy/mm/dd hh:mm:ss UTC" */ local 84 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, 86 if (rsltsz == 0 || fprintf(db_file, "\tstarts %s;\n", tbuf) == -1) 89 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, 91 if (rsltsz == 0 || fprintf(db_file, "\tends %s;\n", tbuf) == -1)
|
/openbsd-current/lib/libutil/ |
H A D | login_fbtab.c | 87 char *buf, *toklast, *tbuf, *devnam, *cp; local 94 tbuf = NULL; 99 if ((tbuf = malloc(len + 1)) == NULL) 101 memcpy(tbuf, buf, len); 102 tbuf[len] = '\0'; 103 buf = tbuf; 127 free(tbuf);
|
H A D | uucplock.c | 146 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; local 148 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, ttyname); 149 return unlink(tbuf);
|
/openbsd-current/usr.bin/finger/ |
H A D | lprint.c | 101 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", 103 oddfield = demi_print(tbuf, oddfield); 106 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 108 oddfield = demi_print(tbuf, oddfield); 111 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 113 oddfield = demi_print(tbuf, oddfield); 117 (void)snprintf(tbuf, sizeo [all...] |
H A D | extern.h | 35 extern char tbuf[1024]; /* Temp buffer for anybody. */
|
H A D | util.c | 62 (void)snprintf(tbuf, sizeof(tbuf), "%s%s", _PATH_DEV, w->tty); 63 if (stat(tbuf, &sb) == -1) { 101 (void)strlcpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); 121 len = snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILSPOOL, 123 if (len >= 0 && len < sizeof(tbuf)) { 124 if (stat(tbuf, &sb) < 0) { 126 warn("%s", tbuf); [all...] |
/openbsd-current/gnu/usr.bin/binutils/gdb/tui/ |
H A D | tui.c | 489 struct tchars tbuf; 507 ioctl (FILEDES, TIOCGETC, &tbuf); 508 tbuf.t_intrc = CHK (tbuf.t_intrc, CTRL ('?')); 509 tbuf.t_quitc = CHK (tbuf.t_quitc, CTRL ('\\')); 510 tbuf.t_startc = CHK (tbuf.t_startc, CTRL ('Q')); 511 tbuf.t_stopc = CHK (tbuf [all...] |
/openbsd-current/lib/libc/gen/ |
H A D | syslog_r.c | 78 char *stdp = NULL, tbuf[TBUF_SIZE], fmt_cpy[FMT_SIZE]; local 98 p = tbuf; 166 cnt = p - tbuf; 177 iov[0].iov_len = cnt > stdp - tbuf ? cnt - (stdp - tbuf) : 0; 187 sendsyslog(tbuf, cnt, data->log_stat & LOG_CONS);
|
H A D | vis.c | 202 char tbuf[5]; local 221 i = vis(tbuf, c, flag, *++src) - tbuf; 223 memcpy(dst, tbuf, i); 236 dst += vis(tbuf, c, flag, *++src) - tbuf;
|
/openbsd-current/gnu/gcc/libcpp/ |
H A D | charset.c | 734 struct _cpp_strbuf tbuf; local 753 tbuf.asize = 1; 754 tbuf.text = XNEWVEC (uchar, tbuf.asize); 755 tbuf.len = 0; 757 if (!APPLY_CONVERSION (pfile->narrow_cset_desc, sbuf, 1, &tbuf)) 762 if (tbuf.len != 1) 769 c = tbuf.text[0]; 770 free(tbuf.text); 1038 struct _cpp_strbuf *tbuf, boo 1036 convert_ucn(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1071 emit_numeric_escape(cpp_reader *pfile, cppchar_t n, struct _cpp_strbuf *tbuf, bool wide) argument 1121 convert_hex(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1172 convert_oct(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1209 convert_escape(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1308 struct _cpp_strbuf tbuf; local [all...] |
/openbsd-current/usr.bin/ssh/ |
H A D | sftp-common.c | 217 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local 241 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); 243 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); 246 tbuf[0] = '\0'; 253 sbuf, tbuf, name); 257 (unsigned long long)st->st_size, tbuf, name);
|
/openbsd-current/usr.bin/cvs/ |
H A D | remove.c | 141 char *entry, buf[PATH_MAX], tbuf[CVS_TIME_BUFSZ], rbuf[CVS_REV_BUFSZ]; local 194 ctime_r(&cf->file_ent->ce_mtime, tbuf); 195 tbuf[strcspn(tbuf, "\n")] = '\0'; 203 cvs_ent_line_str(cf->file_name, rbuf, tbuf,
|
H A D | add.c | 501 char revbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ]; local 514 ctime_r(&cf->file_ent->ce_mtime, tbuf); 515 tbuf[strcspn(tbuf, "\n")] = '\0'; 522 cvs_ent_line_str(cf->file_name, revbuf, tbuf, 547 tbuf[0] = '\0'; 549 (void)xsnprintf(tbuf, sizeof(tbuf), "Initial %s", 552 cvs_ent_line_str(cf->file_name, "0", tbuf, kflag ? kbuf : "",
|
/openbsd-current/gnu/usr.bin/perl/lib/File/ |
H A D | Compare.pm | 82 my ($fr,$tr,$fbuf,$tbuf); 83 $fbuf = $tbuf = ''; 85 unless (defined($tr = read(TO,$tbuf,$fr)) && $tbuf eq $fbuf) { 89 goto fail_inner if defined($tr = read(TO,$tbuf,$size)) && $tr > 0;
|
/openbsd-current/lib/libcrypto/rsa/ |
H A D | rsa_pmeth.c | 96 unsigned char *tbuf; member in struct:__anon6 164 if (ctx->tbuf != NULL) 166 if ((ctx->tbuf = calloc(1, EVP_PKEY_size(pk->pkey))) == NULL) { 180 free(rctx->tbuf); 209 memcpy(rctx->tbuf, tbs, tbslen); 210 rctx->tbuf[tbslen] = 212 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, sig, 225 if (!RSA_padding_add_PKCS1_PSS_mgf1(rsa, rctx->tbuf, 228 ret = RSA_private_encrypt(RSA_size(rsa), rctx->tbuf, 254 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, [all...] |
/openbsd-current/gnu/usr.bin/perl/dist/IO/ |
H A D | poll.c | 49 struct timeval *tbuf = (struct timeval *)0; local 88 tbuf = &timebuf; 91 err = select(n+1,&rfd,&wfd,&efd,tbuf);
|
/openbsd-current/games/hack/ |
H A D | hack.termcap.c | 70 static char tbuf[512]; variable 92 tbufptr = tbuf; 138 if(tbufptr-tbuf > sizeof(tbuf)) error("TERMCAP entry too big...\n");
|
/openbsd-current/usr.sbin/rpki-client/ |
H A D | output.c | 202 char hn[NI_MAXHOST], tbuf[80]; local 209 strftime(tbuf, sizeof tbuf, "%a %b %e %H:%M:%S UTC %Y", tp); 219 hn, tbuf, (long long)st->elapsed_time.tv_sec,
|
/openbsd-current/usr.sbin/mtree/ |
H A D | spec.c | 57 char *buf, *tbuf = NULL; local 71 tbuf = malloc(len + 1); 72 memcpy(tbuf, buf, len); 73 tbuf[len] = '\0'; 74 buf = tbuf; 163 free(tbuf);
|
/openbsd-current/sbin/dump/ |
H A D | itime.c | 244 char tbuf[BUFSIZ]; local 247 if (fgets(tbuf, sizeof(tbuf), df) == NULL) 250 if (makedumpdate(ddatep, tbuf) < 0) 276 makedumpdate(struct dumpdates *ddp, char *tbuf) argument 281 if (sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf) != 3)
|
/openbsd-current/usr.bin/login/ |
H A D | login.c | 143 char tbuf[PATH_MAX + 2], tname[sizeof(_PATH_TTY) + 10]; local 424 if (failures && strcmp(tbuf, username)) { 426 badlogin(tbuf); 429 (void)strlcpy(tbuf, username, sizeof(tbuf)); 701 tbuf[0] = '-'; 702 (void)strlcpy(tbuf + 1, (p = strrchr(shell, '/')) ? 703 p + 1 : shell, sizeof(tbuf) - 1); 746 execlp(shell, tbuf, (char *)NULL); 797 char tbuf[819 local [all...] |
/openbsd-current/gnu/usr.bin/binutils/bfd/ |
H A D | vms-hdr.c | 215 static unsigned char tbuf[18]; local 228 sprintf (tbuf, "%2s-%3s-%s %s", pnt + 8, pnt + 4, pnt + 20, pnt + 11); 237 Descriptor.Ptr = tbuf; 242 vms_debug (6, "vmstimestring:'%s'\n", tbuf); 245 return tbuf;
|
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | vms-hdr.c | 147 static unsigned char tbuf[18]; local 161 sprintf ((char *) tbuf, "%2s-%3s-%s %s", 171 Descriptor.Ptr = tbuf; 176 vms_debug (6, "vmstimestring:'%s'\n", tbuf); 179 return tbuf;
|