Home
last modified time | relevance | path

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

1234

/freebsd/usr.bin/tip/tip/
H A Duucplock.c57 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_lock() local
61 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_lock()
62 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); in uu_lock()
68 fd = open(tbuf, O_RDWR, 0); in uu_lock()
70 perror(tbuf); in uu_lock()
76 perror(tbuf); in uu_lock()
95 perror(tbuf); in uu_lock()
107 (void)unlink(tbuf); in uu_lock()
118 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_unlock() local
120 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_unlock()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_stats.c143 struct l_newstat tbuf; in newstat_copyout() local
145 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout()
147 tbuf.st_ino = buf->st_ino; in newstat_copyout()
148 tbuf.st_mode = buf->st_mode; in newstat_copyout()
150 tbuf.st_uid = buf->st_uid; in newstat_copyout()
151 tbuf.st_gid = buf->st_gid; in newstat_copyout()
163 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout()
658 struct l_statx tbuf; in statx_copyout() local
660 bzero(&tbuf, sizeof(tbuf)); in statx_copyout()
663 tbuf.stx_attributes = 0; in statx_copyout()
[all …]
/freebsd/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 …]
/freebsd/usr.bin/finger/
H A Dlprint.c128 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", in lprint()
130 oddfield = demi_print(tbuf, oddfield); in lprint()
133 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
135 oddfield = demi_print(tbuf, oddfield); in lprint()
138 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint()
144 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", "Home Phone", in lprint()
146 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.c70 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); in match()
71 tbuf[sizeof(tbuf) - 1] = '\0'; in match()
288 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); in find_idle_and_ttywrite()
290 error = stat(tbuf, &sb); in find_idle_and_ttywrite()
301 warn("%s", tbuf); in find_idle_and_ttywrite()
334 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); in userinfo()
335 tbuf[sizeof(tbuf) - 1] = '\0'; in userinfo()
364 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pw->pw_name); in userinfo()
366 if (stat(tbuf, &sb) < 0) { in userinfo()
368 warn("%s", tbuf); in userinfo()
/freebsd/contrib/sendmail/test/
H A Dt_pathconf.c41 char tbuf[100]; local
50 strcpy(tbuf, "TXXXXXX");
51 fd = mkstemp(tbuf);
54 printf("*** Could not create test file %s\n", tbuf);
61 i = pathconf(tbuf, _PC_CHOWN_RESTRICTED);
62 printf("pathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno);
65 printf("fpathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno);
84 (void) unlink(tbuf);
/freebsd/libexec/talkd/
H A Dprint.c55 char tbuf[80]; in print_request() local
58 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); in print_request()
59 tp = tbuf; in print_request()
70 char tbuf[80], abuf[80]; in print_response() local
73 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); in print_response()
74 tp = tbuf; in print_response()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_arbiter.c237 char tbuf[BMAX]; /* temp buffer */ in arb_receive() local
245 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp); in arb_receive()
280 if (!strncmp(tbuf, "TQ", 2)) { in arb_receive()
281 up->qualchar = tbuf[2]; in arb_receive()
285 } else if (!strncmp(tbuf, "SR", 2)) { in arb_receive()
286 strlcpy(up->status, tbuf + 2, in arb_receive()
295 } else if (!strncmp(tbuf, "LA", 2)) { in arb_receive()
296 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive()
300 } else if (!strncmp(tbuf, "LO", 2)) { in arb_receive()
306 } else if (!strncmp(tbuf, "LH", 2)) { in arb_receive()
[all …]
H A Drefclock_acts.c314 char tbuf[sizeof(up->buf)]; in acts_receive() local
329 refclock_gtraw(rbufp, tbuf, octets, &pp->lastrec); in acts_receive()
330 for (tptr = tbuf; *tptr != '\0'; tptr++) { in acts_receive()
362 char tbuf[BMAX]; in acts_message() local
377 strlcpy(tbuf, msg, sizeof(tbuf)); in acts_message()
378 strtok(tbuf, " "); in acts_message()
388 if (strcmp(tbuf, "OK") != 0) { in acts_message()
395 if (!strcmp(tbuf, modem_setup)) in acts_message()
420 if (strcmp(tbuf, "CONNECT") != 0) in acts_message()
434 if (strcmp(tbuf, "NO") == 0) in acts_message()
H A Dntp_loopfilter.c194 char obuf[256], nbuf[256], tbuf[1024]; in sync_status() local
202 snprintf(tbuf, sizeof(tbuf), "%s status: %s -> %s", what, obuf, nbuf); in sync_status()
203 report_event(EVNT_KERN, NULL, tbuf); in sync_status()
464 char tbuf[80]; /* report buffer */ in local_clock() local
493 snprintf(tbuf, sizeof(tbuf), in local_clock()
496 report_event(EVNT_SYSFAULT, NULL, tbuf); in local_clock()
586 snprintf(tbuf, sizeof(tbuf), "%+.6f s", in local_clock()
588 report_event(EVNT_SPIK, NULL, tbuf); in local_clock()
640 snprintf(tbuf, sizeof(tbuf), "%+.6f s", in local_clock()
642 report_event(EVNT_CLOCKRESET, NULL, tbuf); in local_clock()
H A Drefclock_atom.c188 char tbuf[80]; in atom_timer() local
202 snprintf(tbuf, sizeof(tbuf), "%.9f", in atom_timer()
204 record_clock_stats(&peer->srcadr, tbuf); in atom_timer()
H A Drefclock_wwv.c1354 snprintf(tbuf, sizeof(tbuf), in wwv_qrz()
1362 printf("%s\n", tbuf); in wwv_qrz()
1481 snprintf(tbuf, sizeof(tbuf), in wwv_endpoc()
1489 printf("%s\n", tbuf); in wwv_endpoc()
1572 snprintf(tbuf, sizeof(tbuf), in wwv_endpoc()
1580 printf("%s\n", tbuf); in wwv_endpoc()
1859 snprintf(tbuf, sizeof(tbuf), in wwv_rsec()
2024 snprintf(tbuf, sizeof(tbuf), in wwv_rsec()
2031 printf("%s\n", tbuf); in wwv_rsec()
2193 snprintf(tbuf, sizeof(tbuf), in wwv_corr4()
[all …]
/freebsd/usr.sbin/rtadvd/
H A Dadvcap.c82 static char *tbuf; variable
117 tbuf = bp; in getent()
185 char *holdtbuf = tbuf; in tnchktc()
188 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc()
190 if (p < tbuf) { in tnchktc()
218 tbuf = holdtbuf; in tnchktc()
233 Bp = tbuf; in tnamatch()
303 char *bp = tbuf; in tgetnum()
336 char *bp = tbuf; in tgetflag()
363 char *bp = tbuf; in tgetstr()
/freebsd/lib/libc/gen/
H A Dsyslog.c141 char hostname[MAXHOSTNAMELEN], *stdp, tbuf[MAXLINE], fmt_cpy[MAXLINE], in vsyslog1() local
166 tbuf_cookie.base = tbuf; in vsyslog1()
167 tbuf_cookie.left = sizeof(tbuf); in vsyslog1()
201 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); in vsyslog1()
270 cnt = sizeof(tbuf) - tbuf_cookie.left; in vsyslog1()
273 if (tbuf[cnt - 1] == '\n') in vsyslog1()
282 v->iov_len = cnt - (stdp - tbuf); in vsyslog1()
302 if (send(LogFile, tbuf, cnt, 0) < 0) { in vsyslog1()
306 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1()
323 p = strchr(tbuf, '>') + 3; in vsyslog1()
[all …]
/freebsd/crypto/openssl/providers/implementations/asymciphers/
H A Drsa_enc.c157 unsigned char *tbuf; in rsa_encrypt() local
159 if ((tbuf = OPENSSL_malloc(rsasize)) == NULL) { in rsa_encrypt()
166 OPENSSL_free(tbuf); in rsa_encrypt()
180 OPENSSL_free(tbuf); in rsa_encrypt()
185 OPENSSL_free(tbuf); in rsa_encrypt()
234 unsigned char *tbuf; in rsa_decrypt() local
236 if ((tbuf = OPENSSL_malloc(len)) == NULL) { in rsa_decrypt()
247 OPENSSL_free(tbuf); in rsa_decrypt()
255 OPENSSL_free(tbuf); in rsa_decrypt()
270 OPENSSL_free(tbuf); in rsa_decrypt()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c51 unsigned char *tbuf; member
112 if (ctx->tbuf != NULL) in setup_tbuf()
114 if ((ctx->tbuf = in setup_tbuf()
127 OPENSSL_free(rctx->tbuf); in pkey_rsa_cleanup()
170 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
172 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign()
234 memcpy(rout, rctx->tbuf, ret); in pkey_rsa_verifyrecover()
283 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
299 rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
305 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify()
[all …]
/freebsd/sbin/ipfw/
H A Dtables.c385 tbuf += l; in table_print_type()
391 *tbuf++ = ':'; in table_print_type()
412 char tbuf[128]; in table_create() local
433 concat_tokens(tbuf, sizeof(tbuf), tabletypes, in table_create()
457 concat_tokens(tbuf, sizeof(tbuf), tablevaltypes, ", "); in table_create()
459 e, tbuf); in table_create()
661 memset(tbuf, 0, sizeof(tbuf)); in table_do_swap()
707 memset(tbuf, 0, sizeof(tbuf)); in table_get_info()
1912 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry()
1941 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry()
[all …]
/freebsd/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c101 char tbuf[1024]; in main() local
340 key.data = (u_char *)tbuf; in main()
392 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main()
394 memmove(tbuf + 1, pwd.pw_name, len); in main()
400 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main()
402 memmove(tbuf + 1, &store, sizeof(store)); in main()
408 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); in main()
410 memmove(tbuf + 1, &store, sizeof(store)); in main()
418 memmove(tbuf + 1, pwd.pw_name, len); in main()
424 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main()
[all …]
/freebsd/sbin/dump/
H A Ditime.c233 char tbuf[BUFSIZ]; in getrecord() local
236 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) in getrecord()
239 if (makedumpdate(ddatep, tbuf) < 0) in getrecord()
251 makedumpdate(struct dumpdates *ddp, const char *tbuf) in makedumpdate() argument
255 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf); in makedumpdate()
/freebsd/crypto/openssh/
H A Dsftp-common.c222 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
246 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); in ls_file()
248 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); in ls_file()
251 tbuf[0] = '\0'; in ls_file()
258 sbuf, tbuf, name); in ls_file()
262 (unsigned long long)st->st_size, tbuf, name); in ls_file()
/freebsd/crypto/openssh/openbsd-compat/
H A Dvis.c177 char tbuf[5]; in strnvis() local
196 i = vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
198 memcpy(dst, tbuf, i); in strnvis()
211 dst += vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
/freebsd/usr.bin/chpass/
H A Dutil.c64 static char tbuf[50]; in ttoa() local
68 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], in ttoa()
72 *tbuf = '\0'; in ttoa()
73 return (tbuf); in ttoa()
/freebsd/crypto/openssl/providers/implementations/signature/
H A Drsa_sig.c108 unsigned char *tbuf; member
485 if (ctx->tbuf != NULL) in setup_tbuf()
496 if (ctx->tbuf != NULL) in clean_tbuf()
497 OPENSSL_cleanse(ctx->tbuf, RSA_size(ctx->rsa)); in clean_tbuf()
503 OPENSSL_free(ctx->tbuf); in free_tbuf()
504 ctx->tbuf = NULL; in free_tbuf()
574 memcpy(prsactx->tbuf, tbs, tbslen); in rsa_sign()
711 if (rout != prsactx->tbuf) { in rsa_verify_recover()
718 memcpy(rout, prsactx->tbuf, ret); in rsa_verify_recover()
812 prsactx->tbuf, in rsa_verify()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Da_int.c342 unsigned char tbuf[sizeof(r)]; in asn1_string_set_int64() local
352 off = asn1_put_uint64(tbuf, 0 - (uint64_t)r); in asn1_string_set_int64()
355 off = asn1_put_uint64(tbuf, r); in asn1_string_set_int64()
358 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_int64()
381 unsigned char tbuf[sizeof(r)]; in asn1_string_set_uint64() local
385 off = asn1_put_uint64(tbuf, r); in asn1_string_set_uint64()
386 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_uint64()
/freebsd/lib/libutil/
H A Duucplock.c148 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; in uu_unlock() local
150 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, tty_name); in uu_unlock()
151 return unlink(tbuf); in uu_unlock()

1234