| /freebsd-14.2/usr.bin/tip/tip/ |
| H A D | uucplock.c | 65 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_lock() local 69 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_lock() 70 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); in uu_lock() 76 fd = open(tbuf, O_RDWR, 0); in uu_lock() 78 perror(tbuf); in uu_lock() 84 perror(tbuf); in uu_lock() 103 perror(tbuf); in uu_lock() 115 (void)unlink(tbuf); in uu_lock() 126 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_unlock() local 128 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_unlock() [all …]
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_stats.c | 143 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() 672 struct l_statx tbuf; in statx_copyout() local 674 bzero(&tbuf, sizeof(tbuf)); in statx_copyout() 677 tbuf.stx_attributes = 0; in statx_copyout() [all …]
|
| /freebsd-14.2/contrib/file/src/ |
| H A D | print.c | 53 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-14.2/usr.bin/finger/ |
| H A D | lprint.c | 135 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", in lprint() 137 oddfield = demi_print(tbuf, oddfield); in lprint() 140 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint() 142 oddfield = demi_print(tbuf, oddfield); in lprint() 145 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint() 151 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", "Home Phone", in lprint() 153 oddfield = demi_print(tbuf, oddfield); in lprint() 303 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name); in show_text() 310 nr = read(fd, tbuf, sizeof(tbuf)); in show_text() 315 for (p = tbuf, cnt = nr; cnt--; ++p) in show_text() [all …]
|
| H A D | util.c | 77 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); in match() 78 tbuf[sizeof(tbuf) - 1] = '\0'; in match() 295 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); in find_idle_and_ttywrite() 297 error = stat(tbuf, &sb); in find_idle_and_ttywrite() 308 warn("%s", tbuf); in find_idle_and_ttywrite() 341 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); in userinfo() 342 tbuf[sizeof(tbuf) - 1] = '\0'; in userinfo() 371 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pw->pw_name); in userinfo() 373 if (stat(tbuf, &sb) < 0) { in userinfo() 375 warn("%s", tbuf); in userinfo()
|
| /freebsd-14.2/contrib/sendmail/test/ |
| H A D | t_pathconf.c | 41 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-14.2/libexec/talkd/ |
| H A D | print.c | 61 char tbuf[80]; in print_request() local 64 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); in print_request() 65 tp = tbuf; in print_request() 76 char tbuf[80], abuf[80]; in print_response() local 79 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); in print_response() 80 tp = tbuf; in print_response()
|
| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | refclock_arbiter.c | 237 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 D | refclock_acts.c | 314 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 D | ntp_loopfilter.c | 194 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 D | refclock_atom.c | 188 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 D | refclock_wwv.c | 1354 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-14.2/usr.sbin/rtadvd/ |
| H A D | advcap.c | 82 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-14.2/lib/libc/gen/ |
| H A D | syslog.c | 143 char hostname[MAXHOSTNAMELEN], *stdp, tbuf[MAXLINE], fmt_cpy[MAXLINE], in vsyslog1() local 168 tbuf_cookie.base = tbuf; in vsyslog1() 169 tbuf_cookie.left = sizeof(tbuf); in vsyslog1() 203 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); in vsyslog1() 272 cnt = sizeof(tbuf) - tbuf_cookie.left; in vsyslog1() 275 if (tbuf[cnt - 1] == '\n') in vsyslog1() 284 v->iov_len = cnt - (stdp - tbuf); in vsyslog1() 304 if (send(LogFile, tbuf, cnt, 0) < 0) { in vsyslog1() 308 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1() 325 p = strchr(tbuf, '>') + 3; in vsyslog1() [all …]
|
| /freebsd-14.2/crypto/openssl/providers/implementations/asymciphers/ |
| H A D | rsa_enc.c | 157 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-14.2/crypto/openssl/crypto/rsa/ |
| H A D | rsa_pmeth.c | 51 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-14.2/sbin/ipfw/ |
| H A D | tables.c | 385 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() 1911 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry() 1940 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry() [all …]
|
| /freebsd-14.2/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 352 key.data = (u_char *)tbuf; in main() 404 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 406 memmove(tbuf + 1, pwd.pw_name, len); in main() 412 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() 414 memmove(tbuf + 1, &store, sizeof(store)); in main() 420 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); in main() 422 memmove(tbuf + 1, &store, sizeof(store)); in main() 428 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 430 memmove(tbuf + 1, pwd.pw_name, len); in main() 436 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() [all …]
|
| /freebsd-14.2/sbin/dump/ |
| H A D | itime.c | 239 char tbuf[BUFSIZ]; in getrecord() local 242 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) in getrecord() 245 if (makedumpdate(ddatep, tbuf) < 0) in getrecord() 257 makedumpdate(struct dumpdates *ddp, const char *tbuf) in makedumpdate() argument 261 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf); in makedumpdate()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | sftp-common.c | 222 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-14.2/crypto/openssh/openbsd-compat/ |
| H A D | vis.c | 177 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-14.2/usr.bin/chpass/ |
| H A D | util.c | 70 static char tbuf[50]; in ttoa() local 74 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], in ttoa() 78 *tbuf = '\0'; in ttoa() 79 return (tbuf); in ttoa()
|
| /freebsd-14.2/crypto/openssl/providers/implementations/signature/ |
| H A D | rsa_sig.c | 108 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-14.2/crypto/openssl/crypto/asn1/ |
| H A D | a_int.c | 342 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-14.2/lib/libutil/ |
| H A D | uucplock.c | 150 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; 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()
|