/freebsd/usr.bin/tip/tip/ |
H A D | uucplock.c | 57 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 D | linux_stats.c | 143 struct l_newstat tbuf; in newstat_copyout() local 145 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout() 146 tbuf.st_dev = linux_new_encode_dev(buf->st_dev); in newstat_copyout() 147 tbuf.st_ino = buf->st_ino; in newstat_copyout() 148 tbuf.st_mode = buf->st_mode; in newstat_copyout() 149 tbuf.st_nlink = buf->st_nlink; in newstat_copyout() 150 tbuf.st_uid = buf->st_uid; in newstat_copyout() 151 tbuf.st_gid = buf->st_gid; in newstat_copyout() 152 tbuf.st_rdev = linux_new_encode_dev(buf->st_rdev); in newstat_copyout() 153 tbuf.st_size = buf->st_size; in newstat_copyout() [all …]
|
/freebsd/usr.bin/finger/ |
H A D | lprint.c | 128 (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() 140 oddfield = demi_print(tbuf, oddfield); 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() 297 if ((fd = open(tbuf, O_RDONLY)) < 0 || fstat(fd, &sb) || in show_text() [all …]
|
H A D | util.c | 70 (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/file/src/ |
H A D | print.c | 53 char tbuf[256]; in file_mdump() local 161 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, 0)); in file_mdump() 168 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, in file_mdump() 175 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, 0)); in file_mdump() 181 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump() 188 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump() 204 tbuf, sizeof(tbuf), m->value.us, m->type)); in file_mdump() 210 file_fmtdate(tbuf, sizeof(tbuf), m->value.h)); in file_mdump() 216 file_fmttime(tbuf, sizeof(tbuf), m->value.h)); in file_mdump() 220 file_fmtnum(tbuf, sizeof(tbuf), m->value.s, 8)); in file_mdump() [all …]
|
/freebsd/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/libexec/talkd/ |
H A D | print.c | 55 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 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, "L 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, "CONNEC in acts_message() [all...] |
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), " in local_clock() [all...] |
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 | 1303 char tbuf[TBUF]; /* monitor buffer */ in wwv_qrz() local 1354 snprintf(tbuf, sizeof(tbuf), in wwv_qrz() 1359 record_clock_stats(&peer->srcadr, tbuf); in wwv_qrz() 1362 printf("%s\n", tbuf); in wwv_qrz() 1403 char tbuf[TBUF]; /* monitor buffer */ in wwv_endpoc() local 1481 snprintf(tbuf, sizeof(tbuf), in wwv_endpoc() 1486 record_clock_stats(&peer->srcadr, tbuf); in wwv_endpoc() 1489 printf("%s\n", tbuf); in wwv_endpoc() 1758 char tbuf[TBUF]; /* monitor buffer */ wwv_rsec() local 2127 char tbuf[TBUF]; /* monitor buffer */ wwv_corr4() local [all...] |
/freebsd/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/lib/libc/gen/ |
H A D | syslog.c | 141 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 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() 172 ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(prsactx->libctx, tbuf, in rsa_encrypt() 180 OPENSSL_free(tbuf); in rsa_encrypt() 183 ret = RSA_public_encrypt(rsasize, tbuf, out, prsactx->rsa, 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() 240 ret = RSA_private_decrypt(inlen, in, tbuf, prsactx->rsa, in rsa_decrypt() [all …]
|
/freebsd/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() 171 rctx->tbuf[tbslen] = RSA_X931_hash_id(EVP_MD_get_type(rctx->md)); in pkey_rsa_sign() 172 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign() 185 rctx->tbuf, tbs, in pkey_rsa_sign() 189 ret = RSA_private_encrypt(RSA_size(rsa), rctx->tbuf, in pkey_rsa_sign() 220 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, rsa, in pkey_rsa_verifyrecover() [all …]
|
/freebsd/sbin/ipfw/ |
H A D | tables.c | 376 table_print_type(char *tbuf, size_t size, uint8_t type, uint8_t tflags) in table_print_type() argument 384 l = snprintf(tbuf, size, "%s", tname); in table_print_type() 385 tbuf += l; in table_print_type() 391 *tbuf++ = ':'; in table_print_type() 393 print_flags_buffer(tbuf, size, flowtypecmds, tflags); in table_print_type() 412 char tbuf[128]; in table_create() local 433 concat_tokens(tbuf, sizeof(tbuf), tabletypes, in table_create() 437 *av, tbuf); in table_create() 457 concat_tokens(tbuf, sizeof(tbuf), tablevaltypes, ", "); in table_create() 459 e, tbuf); in table_create() [all …]
|
/freebsd/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 101 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() 416 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 418 memmove(tbuf + 1, pwd.pw_name, len); in main() [all …]
|
/freebsd/sbin/dump/ |
H A D | itime.c | 233 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 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/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/usr.bin/chpass/ |
H A D | util.c | 64 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 D | rsa_sig.c | 108 unsigned char *tbuf; member 485 if (ctx->tbuf != NULL) in setup_tbuf() 487 if ((ctx->tbuf = OPENSSL_malloc(RSA_size(ctx->rsa))) == 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() 575 prsactx->tbuf[tbslen] = RSA_X931_hash_id(prsactx->mdnid); in rsa_sign() 576 ret = RSA_private_encrypt(tbslen + 1, prsactx->tbuf, in rsa_sign() [all …]
|
/freebsd/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/lib/libutil/ |
H A D | uucplock.c | 148 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()
|