Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 25 of 66) sorted by relevance

123

/openbsd/libexec/talkd/
H A Dprint.c54 char tbuf[80], *tp; in print_request() local
57 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); in print_request()
58 tp = tbuf; in print_request()
68 char tbuf[80], *tp, abuf[80], *ap; in print_response() local
71 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); in print_response()
72 tp = tbuf; in print_response()
/openbsd/usr.bin/finger/
H A Dlprint.c101 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", in lprint()
103 oddfield = demi_print(tbuf, oddfield); in lprint()
106 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
108 oddfield = demi_print(tbuf, oddfield); in lprint()
111 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
113 oddfield = demi_print(tbuf, oddfield); in lprint()
117 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
119 oddfield = demi_print(tbuf, oddfield); in lprint()
259 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name); in show_text()
260 if ((fp = fopen(tbuf, "r")) == NULL) in show_text()
H A Dutil.c62 (void)snprintf(tbuf, sizeof(tbuf), "%s%s", _PATH_DEV, w->tty); in find_idle_and_ttywrite()
63 if (stat(tbuf, &sb) == -1) { in find_idle_and_ttywrite()
101 (void)strlcpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); in userinfo()
121 len = snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILSPOOL, in userinfo()
123 if (len >= 0 && len < sizeof(tbuf)) { in userinfo()
124 if (stat(tbuf, &sb) < 0) { in userinfo()
126 warn("%s", tbuf); in userinfo()
142 (void)strlcpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); in match()
/openbsd/gnu/gcc/libcpp/
H A Dcharset.c753 tbuf.asize = 1; in cpp_host_to_exec_charset()
754 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_host_to_exec_charset()
755 tbuf.len = 0; in cpp_host_to_exec_charset()
1087 if (tbuf->len + nbwc > tbuf->asize) in emit_numeric_escape()
1090 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1105 if (tbuf->len + 1 > tbuf->asize) in emit_numeric_escape()
1108 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1110 tbuf->text[tbuf->len++] = n; in emit_numeric_escape()
1315 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_interpret_string()
1316 tbuf.len = 0; in cpp_interpret_string()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/tui/
H A Dtui.c489 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.t_stopc, CTRL ('S'));
512 tbuf.t_eofc = CHK (tbuf.t_eofc, CTRL ('D'));
514 ioctl (FILEDES, TIOCSETC, &tbuf);
/openbsd/lib/libutil/
H A Dlogin_fbtab.c87 char *buf, *toklast, *tbuf, *devnam, *cp; in login_fbtab() local
94 tbuf = NULL; in login_fbtab()
99 if ((tbuf = malloc(len + 1)) == NULL) in login_fbtab()
101 memcpy(tbuf, buf, len); in login_fbtab()
102 tbuf[len] = '\0'; in login_fbtab()
103 buf = tbuf; in login_fbtab()
127 free(tbuf); in login_fbtab()
H A Duucplock.c146 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; in uu_unlock() local
148 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, ttyname); in uu_unlock()
149 return unlink(tbuf); in uu_unlock()
/openbsd/usr.sbin/dhcpd/
H A Ddb.c74 char tbuf[26]; /* "w yyyy/mm/dd hh:mm:ss UTC" */ in write_lease() local
84 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, in write_lease()
86 if (rsltsz == 0 || fprintf(db_file, "\tstarts %s;\n", tbuf) == -1) in write_lease()
89 rsltsz = strftime(tbuf, sizeof(tbuf), DB_TIMEFMT, in write_lease()
91 if (rsltsz == 0 || fprintf(db_file, "\tends %s;\n", tbuf) == -1) in write_lease()
/openbsd/distrib/special/more/
H A Dtermcap.c59 static char *tbuf; /* termcap buffer */ variable
76 tbuf = bp; in tgetent()
135 tbuf = dummy; in tgetent()
158 if (cgetnum(tbuf, id, &num) == 0) in tgetnum()
173 return (cgetcap(tbuf, id, ':') != NULL); in tgetflag()
200 if ((i = cgetstr(tbuf, ids, &s)) < 0) in tgetstr()
/openbsd/lib/libcrypto/rsa/
H A Drsa_pmeth.c96 unsigned char *tbuf; member
164 if (ctx->tbuf != NULL) in setup_tbuf()
180 free(rctx->tbuf); in pkey_rsa_cleanup()
209 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
210 rctx->tbuf[tbslen] = in pkey_rsa_sign()
254 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verifyrecover()
259 if (rctx->tbuf[ret] != in pkey_rsa_verifyrecover()
269 memcpy(rout, rctx->tbuf, ret); in pkey_rsa_verifyrecover()
321 rctx->mgf1md, rctx->tbuf, rctx->saltlen); in pkey_rsa_verify()
362 ret = RSA_public_encrypt(klen, rctx->tbuf, out, in pkey_rsa_encrypt()
[all …]
/openbsd/usr.bin/ssh/
H A Dsftp-common.c217 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
241 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); in ls_file()
243 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); in ls_file()
246 tbuf[0] = '\0'; in ls_file()
253 sbuf, tbuf, name); in ls_file()
257 (unsigned long long)st->st_size, tbuf, name); in ls_file()
/openbsd/gnu/usr.bin/perl/lib/File/
H A DCompare.pm82 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/lib/libc/gen/
H A Dsyslog_r.c78 char *stdp = NULL, tbuf[TBUF_SIZE], fmt_cpy[FMT_SIZE]; in __vsyslog_r() local
98 p = tbuf; in __vsyslog_r()
166 cnt = p - tbuf; in __vsyslog_r()
177 iov[0].iov_len = cnt > stdp - tbuf ? cnt - (stdp - tbuf) : 0; in __vsyslog_r()
187 sendsyslog(tbuf, cnt, data->log_stat & LOG_CONS); in __vsyslog_r()
H A Dvis.c202 char tbuf[5]; in strnvis() local
221 i = vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
223 memcpy(dst, tbuf, i); in strnvis()
236 dst += vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
/openbsd/usr.bin/cvs/
H A Dremove.c141 char *entry, buf[PATH_MAX], tbuf[CVS_TIME_BUFSZ], rbuf[CVS_REV_BUFSZ]; in cvs_remove_local() local
194 ctime_r(&cf->file_ent->ce_mtime, tbuf); in cvs_remove_local()
195 tbuf[strcspn(tbuf, "\n")] = '\0'; in cvs_remove_local()
203 cvs_ent_line_str(cf->file_name, rbuf, tbuf, in cvs_remove_local()
H A Dadd.c501 char revbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ]; in add_entry() local
514 ctime_r(&cf->file_ent->ce_mtime, tbuf); in add_entry()
515 tbuf[strcspn(tbuf, "\n")] = '\0'; in add_entry()
522 cvs_ent_line_str(cf->file_name, revbuf, tbuf, in add_entry()
547 tbuf[0] = '\0'; in add_entry()
549 (void)xsnprintf(tbuf, sizeof(tbuf), "Initial %s", in add_entry()
552 cvs_ent_line_str(cf->file_name, "0", tbuf, kflag ? kbuf : "", in add_entry()
/openbsd/sbin/dump/
H A Ditime.c244 char tbuf[BUFSIZ]; in getrecord() local
247 if (fgets(tbuf, sizeof(tbuf), df) == NULL) in getrecord()
250 if (makedumpdate(ddatep, tbuf) < 0) in getrecord()
276 makedumpdate(struct dumpdates *ddp, char *tbuf) in makedumpdate() argument
281 if (sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf) != 3) in makedumpdate()
/openbsd/usr.bin/login/
H A Dlogin.c143 char tbuf[PATH_MAX + 2], tname[sizeof(_PATH_TTY) + 10]; in main() local
424 if (failures && strcmp(tbuf, username)) { in main()
426 badlogin(tbuf); in main()
429 (void)strlcpy(tbuf, username, sizeof(tbuf)); in main()
701 tbuf[0] = '-'; in main()
702 (void)strlcpy(tbuf + 1, (p = strrchr(shell, '/')) ? in main()
703 p + 1 : shell, sizeof(tbuf) - 1); in main()
746 execlp(shell, tbuf, (char *)NULL); in main()
797 char tbuf[8192], *motd; in motd() local
813 while ((nchars = read(fd, tbuf, sizeof(tbuf))) > 0 && in motd()
[all …]
/openbsd/usr.sbin/mtree/
H A Dspec.c57 char *buf, *tbuf = NULL; in spec() local
71 tbuf = malloc(len + 1); in spec()
72 memcpy(tbuf, buf, len); in spec()
73 tbuf[len] = '\0'; in spec()
74 buf = tbuf; in spec()
163 free(tbuf); in spec()
/openbsd/usr.sbin/rpki-client/
H A Doutput.c202 char hn[NI_MAXHOST], tbuf[80]; in outputheader() local
209 strftime(tbuf, sizeof tbuf, "%a %b %e %H:%M:%S UTC %Y", tp); in outputheader()
219 hn, tbuf, (long long)st->elapsed_time.tv_sec, in outputheader()
H A Doutput-json.c29 char hn[NI_MAXHOST], tbuf[26]; in outputheader_json() local
36 strftime(tbuf, sizeof tbuf, "%FT%TZ", tp); in outputheader_json()
43 json_do_string("buildtime", tbuf); in outputheader_json()
/openbsd/gnu/usr.bin/perl/dist/IO/
H A Dpoll.c49 struct timeval *tbuf = (struct timeval *)0; in poll() local
88 tbuf = &timebuf; in poll()
91 err = select(n+1,&rfd,&wfd,&efd,tbuf); in poll()
/openbsd/gnu/usr.bin/binutils/bfd/
H A Dvms-hdr.c215 static unsigned char tbuf[18]; in get_vms_time_string() local
228 sprintf (tbuf, "%2s-%3s-%s %s", pnt + 8, pnt + 4, pnt + 20, pnt + 11); in get_vms_time_string()
237 Descriptor.Ptr = tbuf; in get_vms_time_string()
242 vms_debug (6, "vmstimestring:'%s'\n", tbuf); in get_vms_time_string()
245 return tbuf; in get_vms_time_string()
/openbsd/gnu/usr.bin/binutils-2.17/bfd/
H A Dvms-hdr.c147 static unsigned char tbuf[18]; in get_vms_time_string() local
161 sprintf ((char *) tbuf, "%2s-%3s-%s %s", in get_vms_time_string()
171 Descriptor.Ptr = tbuf; in get_vms_time_string()
176 vms_debug (6, "vmstimestring:'%s'\n", tbuf); in get_vms_time_string()
179 return tbuf; in get_vms_time_string()
/openbsd/games/hack/
H A Dhack.termcap.c70 static char tbuf[512]; variable
92 tbufptr = tbuf; in startup()
138 if(tbufptr-tbuf > sizeof(tbuf)) error("TERMCAP entry too big...\n"); in startup()

123