Home
last modified time | relevance | path

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

123

/dragonfly/contrib/file/src/
H A Dprint.c53 char tbuf[256]; in file_mdump() local
160 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, 0)); in file_mdump()
167 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, in file_mdump()
174 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, 0)); in file_mdump()
180 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
187 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
203 tbuf, sizeof(tbuf), m->value.us, m->type)); in file_mdump()
209 file_fmtdate(tbuf, sizeof(tbuf), m->value.h)); in file_mdump()
215 file_fmttime(tbuf, sizeof(tbuf), m->value.h)); in file_mdump()
219 file_fmtnum(tbuf, sizeof(tbuf), m->value.s, 8)); in file_mdump()
[all …]
/dragonfly/usr.bin/finger/
H A Dlprint.c129 snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", in lprint()
131 oddfield = demi_print(tbuf, oddfield); in lprint()
134 snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
136 oddfield = demi_print(tbuf, oddfield); in lprint()
139 snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
145 snprintf(tbuf, sizeof(tbuf), "%s: %s", "Home Phone", in lprint()
147 oddfield = demi_print(tbuf, oddfield); in lprint()
296 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name); in show_text()
303 nr = read(fd, tbuf, sizeof(tbuf)); in show_text()
308 for (p = tbuf, cnt = nr; cnt--; ++p) in show_text()
[all …]
H A Dutil.c72 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); in match()
73 tbuf[sizeof(tbuf) - 1] = '\0'; in match()
290 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); in find_idle_and_ttywrite()
291 if (stat(tbuf, &sb) < 0) { in find_idle_and_ttywrite()
292 warn("%s", tbuf); in find_idle_and_ttywrite()
324 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); in userinfo()
325 tbuf[sizeof(tbuf) - 1] = '\0'; in userinfo()
354 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pw->pw_name); in userinfo()
356 if (stat(tbuf, &sb) < 0) { in userinfo()
358 warn("%s", tbuf); in userinfo()
/dragonfly/contrib/gcc-4.7/libcpp/
H A Dcharset.c792 tbuf.asize = 1; in cpp_host_to_exec_charset()
793 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_host_to_exec_charset()
794 tbuf.len = 0; in cpp_host_to_exec_charset()
1134 if (tbuf->len + nbwc > tbuf->asize) in emit_numeric_escape()
1137 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1152 if (tbuf->len + 1 > tbuf->asize) in emit_numeric_escape()
1155 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1157 tbuf->text[tbuf->len++] = n; in emit_numeric_escape()
1380 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_interpret_string()
1381 tbuf.len = 0; in cpp_interpret_string()
[all …]
/dragonfly/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c342 key.data = (u_char *)tbuf; in main()
394 memmove(tbuf + 1, pwd.pw_name, len); in main()
400 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main()
408 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); in main()
418 memmove(tbuf + 1, pwd.pw_name, len); in main()
485 memmove(tbuf + 1, pwd.pw_name, len); in main()
491 tbuf[0] = LEGACY_VERSION(_PW_KEYBYNUM); in main()
499 tbuf[0] = LEGACY_VERSION(_PW_KEYBYUID); in main()
509 memmove(tbuf + 1, pwd.pw_name, len); in main()
515 tbuf[0] = LEGACY_VERSION(_PW_KEYBYNUM); in main()
[all …]
/dragonfly/libexec/talkd/
H A Dprint.c56 char tbuf[80]; in print_request() local
59 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); in print_request()
60 tp = tbuf; in print_request()
71 char tbuf[80], abuf[80]; in print_response() local
74 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); in print_response()
75 tp = tbuf; in print_response()
/dragonfly/contrib/gcc-8.0/libcpp/
H A Dcharset.c793 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_host_to_exec_charset()
1224 if (tbuf->len + nbwc > tbuf->asize) in emit_numeric_escape()
1227 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1242 if (tbuf->len + 1 > tbuf->asize) in emit_numeric_escape()
1245 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1247 tbuf->text[tbuf->len++] = n; in emit_numeric_escape()
1313 if (tbuf) in convert_hex()
1365 if (tbuf) in convert_oct()
1470 if (tbuf) in convert_escape()
1537 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_interpret_string_1()
[all …]
/dragonfly/usr.sbin/rtadvd/
H A Dadvcap.c81 static char *tbuf; variable
116 tbuf = bp; in getent()
184 char *holdtbuf = tbuf; in tnchktc()
187 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc()
189 if (p < tbuf) { in tnchktc()
217 tbuf = holdtbuf; in tnchktc()
232 Bp = tbuf; in tnamatch()
303 char *bp = tbuf; in tgetnum()
336 char *bp = tbuf; in tgetflag()
363 char *bp = tbuf; in tgetstr()
/dragonfly/sys/ddb/
H A Ddb_examine.c80 char tbuf[24]; in db_examine() local
128 db_format_radix(tbuf, 24, value, FALSE); in db_examine()
129 db_printf("%-*s", width, tbuf); in db_examine()
139 db_format_hex(tbuf, 24, value, FALSE); in db_examine()
140 db_printf("%-*s", width, tbuf); in db_examine()
217 char tbuf[24]; in db_print_cmd() local
219 db_format_radix(tbuf, 24, addr, FALSE); in db_print_cmd()
220 db_printf("%11s", tbuf); in db_print_cmd()
228 char tbuf[24]; in db_print_cmd() local
230 db_format_hex(tbuf, 24, addr, FALSE); in db_print_cmd()
[all …]
H A Ddb_sym.c278 char tbuf[24]; in db_printsym() local
285 db_format_radix(tbuf, 24, (long)off, TRUE); in db_printsym()
286 db_printf("%s", tbuf); in db_printsym()
290 db_format_radix(tbuf, 24, (unsigned long)off, TRUE); in db_printsym()
291 db_printf("%s", tbuf); in db_printsym()
296 db_format_radix(tbuf, 24, (long)d, TRUE); in db_printsym()
297 db_printf("+%s", tbuf); in db_printsym()
H A Ddb_print.c60 char tbuf[24]; in db_show_regs() local
62 db_format_radix(tbuf, 24, offset, TRUE); in db_show_regs()
63 db_printf("+%s", tbuf); in db_show_regs()
/dragonfly/lib/libc/gen/
H A Dsyslog.c135 char *stdp, tbuf[2048], fmt_cpy[1024], timbuf[26], errstr[64]; in vsyslog_unlocked() local
161 tbuf_cookie.base = tbuf; in vsyslog_unlocked()
162 tbuf_cookie.left = sizeof(tbuf); in vsyslog_unlocked()
174 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); in vsyslog_unlocked()
229 cnt = sizeof(tbuf) - tbuf_cookie.left; in vsyslog_unlocked()
232 if (tbuf[cnt - 1] == '\n') in vsyslog_unlocked()
241 v->iov_len = cnt - (stdp - tbuf); in vsyslog_unlocked()
273 if (send(LogFile, tbuf, cnt, 0) < 0) { in vsyslog_unlocked()
279 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog_unlocked()
301 p = strchr(tbuf, '>') + 1; in vsyslog_unlocked()
[all …]
/dragonfly/contrib/gdb-7/gdb/tui/
H A Dtui.c496 struct tchars tbuf;
514 ioctl (FILEDES, TIOCGETC, &tbuf);
515 tbuf.t_intrc = CHK (tbuf.t_intrc, CTRL ('?'));
516 tbuf.t_quitc = CHK (tbuf.t_quitc, CTRL ('\\'));
517 tbuf.t_startc = CHK (tbuf.t_startc, CTRL ('Q'));
518 tbuf.t_stopc = CHK (tbuf.t_stopc, CTRL ('S'));
519 tbuf.t_eofc = CHK (tbuf.t_eofc, CTRL ('D'));
521 ioctl (FILEDES, TIOCSETC, &tbuf);
/dragonfly/crypto/libressl/crypto/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()
358 ret = RSA_public_encrypt(klen, rctx->tbuf, out, in pkey_rsa_encrypt()
[all …]
/dragonfly/crypto/openssh/
H A Dsftp-common.c220 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
244 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); in ls_file()
246 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); in ls_file()
249 tbuf[0] = '\0'; in ls_file()
256 sbuf, tbuf, name); in ls_file()
260 (unsigned long long)st->st_size, tbuf, name); in ls_file()
/dragonfly/sbin/dump/
H A Ditime.c226 char tbuf[BUFSIZ]; in getrecord() local
229 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) in getrecord()
232 if (makedumpdate(ddatep, tbuf) < 0) in getrecord()
244 makedumpdate(struct dumpdates *ddp, char *tbuf) in makedumpdate() argument
248 sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf); in makedumpdate()
/dragonfly/usr.bin/chpass/
H A Dutil.c61 static char tbuf[50]; in ttoa() local
65 sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], in ttoa()
69 *tbuf = '\0'; in ttoa()
70 return (tbuf); in ttoa()
/dragonfly/lib/libutil/
H A Duucplock.c150 char tbuf[sizeof(_PATH_UUCPLOCK) + NAME_MAX]; in uu_unlock() local
152 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, tty_name); in uu_unlock()
153 return unlink(tbuf); in uu_unlock()
/dragonfly/lib/libc/net/
H A Dgethostbydns.c149 char tbuf[MAXDNAME]; in gethostanswer() local
239 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in gethostanswer()
240 if ((n < 0) || !(*name_ok)(tbuf)) { in gethostanswer()
258 n = strlen(tbuf) + 1; /* for the \0 */ in gethostanswer()
263 strcpy(bp, tbuf); in gethostanswer()
269 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in gethostanswer()
270 if (n < 0 || !res_dnok(tbuf)) { in gethostanswer()
280 n = strlen(tbuf) + 1; /* for the \0 */ in gethostanswer()
285 strcpy(bp, tbuf); in gethostanswer()
/dragonfly/usr.bin/tset/
H A Dterm.c44 char tbuf[1024]; /* Termcap entry. */ variable
107 while ((rval = tgetent(tbuf, ttype)) == 0) { in get_termcap_entry()
113 *tcapbufp = tbuf; in get_termcap_entry()
/dragonfly/usr.sbin/rpcbind/
H A Dutil.c128 struct netbuf *serv_nbp = NULL, *hint_nbp = NULL, tbuf; in addrmerge() local
264 tbuf.len = ss.ss_len; in addrmerge()
265 tbuf.maxlen = sizeof(ss); in addrmerge()
266 tbuf.buf = &ss; in addrmerge()
267 ret = taddr2uaddr(nconf, &tbuf); in addrmerge()
/dragonfly/sys/cpu/x86_64/misc/
H A Ddb_disasm.c1332 char tbuf[24]; in db_disasm() local
1432 db_printf("$%s", tbuf); in db_disasm()
1439 db_printf("$%s", tbuf); in db_disasm()
1445 db_printf("$%s", tbuf); in db_disasm()
1452 db_printf("$%s", tbuf); in db_disasm()
1461 db_printf("$%s", tbuf); in db_disasm()
1467 db_printf("$%s", tbuf); in db_disasm()
1474 db_printf("$%s", tbuf); in db_disasm()
1482 db_printf("%s:%s", seg, tbuf); in db_disasm()
1518 db_printf("$%s", tbuf); in db_disasm()
[all …]
/dragonfly/usr.bin/last/
H A Dlast.c299 static char tbuf[TBUFLEN]; in fmttime() local
303 strcpy(tbuf, "????"); in fmttime()
304 return tbuf; in fmttime()
306 strftime(tbuf, sizeof(tbuf), in fmttime()
311 return (tbuf); in fmttime()
/dragonfly/games/adventure/
H A Dio.c566 char *tbuf; in pspeak() local
569 if ((tbuf = (char *) malloc(msg->txtlen + 1)) == NULL) in pspeak()
571 memcpy(tbuf, msg->seekadr, msg->txtlen + 1); /* Room to null */ in pspeak()
572 s = tbuf; in pspeak()
575 while (s - tbuf < msg->txtlen) { /* read line at a time */ in pspeak()
601 free(tbuf); in pspeak()
/dragonfly/usr.bin/tput/
H A Dtput.c55 char *cptr, *term, buf[1024], tbuf[1024]; in main() local
73 if (tgetent(tbuf, term) != 1) in main()
87 prlongname(tbuf); in main()

123