| /freebsd-13.1/usr.bin/tip/tip/ |
| H A D | uucplock.c | 67 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_lock() local 71 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_lock() 72 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); in uu_lock() 78 fd = open(tbuf, O_RDWR, 0); in uu_lock() 80 perror(tbuf); in uu_lock() 86 perror(tbuf); in uu_lock() 105 perror(tbuf); in uu_lock() 117 (void)unlink(tbuf); in uu_lock() 128 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; in uu_unlock() local 130 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_unlock() [all …]
|
| /freebsd-13.1/usr.bin/finger/ |
| H A D | lprint.c | 137 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", in lprint() 139 oddfield = demi_print(tbuf, oddfield); in lprint() 142 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint() 144 oddfield = demi_print(tbuf, oddfield); in lprint() 147 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", in lprint() 153 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", "Home Phone", in lprint() 155 oddfield = demi_print(tbuf, oddfield); in lprint() 305 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name); in show_text() 312 nr = read(fd, tbuf, sizeof(tbuf)); in show_text() 317 for (p = tbuf, cnt = nr; cnt--; ++p) in show_text() [all …]
|
| H A D | util.c | 79 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); in match() 80 tbuf[sizeof(tbuf) - 1] = '\0'; in match() 297 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); in find_idle_and_ttywrite() 299 error = stat(tbuf, &sb); in find_idle_and_ttywrite() 310 warn("%s", tbuf); in find_idle_and_ttywrite() 343 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); in userinfo() 344 tbuf[sizeof(tbuf) - 1] = '\0'; in userinfo() 373 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pw->pw_name); in userinfo() 375 if (stat(tbuf, &sb) < 0) { in userinfo() 377 warn("%s", tbuf); in userinfo()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_stats.c | 176 struct l_newstat tbuf; in newstat_copyout() local 178 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout() 180 tbuf.st_ino = buf->st_ino; in newstat_copyout() 183 tbuf.st_uid = buf->st_uid; in newstat_copyout() 184 tbuf.st_gid = buf->st_gid; in newstat_copyout() 196 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout() 202 struct l_statx tbuf; in statx_copyout() local 204 bzero(&tbuf, sizeof(tbuf)); in statx_copyout() 205 tbuf.stx_mask = STATX_ALL; in statx_copyout() 207 tbuf.stx_attributes = 0; in statx_copyout() [all …]
|
| /freebsd-13.1/contrib/sendmail/test/ |
| H A D | t_pathconf.c | 39 char tbuf[100]; local 48 strcpy(tbuf, "TXXXXXX"); 49 fd = mkstemp(tbuf); 52 printf("*** Could not create test file %s\n", tbuf); 59 i = pathconf(tbuf, _PC_CHOWN_RESTRICTED); 60 printf("pathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno); 63 printf("fpathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno); 82 (void) unlink(tbuf);
|
| /freebsd-13.1/libexec/talkd/ |
| H A D | print.c | 63 char tbuf[80]; in print_request() local 66 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); in print_request() 67 tp = tbuf; in print_request() 78 char tbuf[80], abuf[80]; in print_response() local 81 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); in print_response() 82 tp = tbuf; in print_response()
|
| /freebsd-13.1/contrib/file/src/ |
| H A D | print.c | 53 char tbuf[256]; in file_mdump() local 160 file_fmttime(tbuf, sizeof(tbuf), m->value.l, 0)); in file_mdump() 167 file_fmttime(tbuf, sizeof(tbuf), m->value.l, in file_mdump() 174 file_fmttime(tbuf, sizeof(tbuf), m->value.q, 0)); in file_mdump() 180 file_fmttime(tbuf, sizeof(tbuf), m->value.q, in file_mdump() 187 file_fmttime(tbuf, sizeof(tbuf), m->value.q, in file_mdump() 203 m->value.us, m->type, tbuf, sizeof(tbuf))); in file_mdump() 214 (void) file_print_guid(tbuf, sizeof(tbuf), in file_mdump() 216 (void) fprintf(stderr, "%s", tbuf); in file_mdump()
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | refclock_arbiter.c | 243 char tbuf[BMAX]; /* temp buffer */ in arb_receive() local 251 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp); in arb_receive() 286 if (!strncmp(tbuf, "TQ", 2)) { in arb_receive() 287 up->qualchar = tbuf[2]; in arb_receive() 291 } else if (!strncmp(tbuf, "SR", 2)) { in arb_receive() 292 strlcpy(up->status, tbuf + 2, in arb_receive() 300 } else if (!strncmp(tbuf, "LA", 2)) { in arb_receive() 301 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive() 305 } else if (!strncmp(tbuf, "LO", 2)) { in arb_receive() 311 } else if (!strncmp(tbuf, "LH", 2)) { in arb_receive() [all …]
|
| H A D | ntp_loopfilter.c | 197 char obuf[256], nbuf[256], tbuf[1024]; in sync_status() local 205 snprintf(tbuf, sizeof(tbuf), "%s status: %s -> %s", what, obuf, nbuf); in sync_status() 206 report_event(EVNT_KERN, NULL, tbuf); in sync_status() 467 char tbuf[80]; /* report buffer */ in local_clock() local 496 snprintf(tbuf, sizeof(tbuf), in local_clock() 499 report_event(EVNT_SYSFAULT, NULL, tbuf); in local_clock() 589 snprintf(tbuf, sizeof(tbuf), "%+.6f s", in local_clock() 591 report_event(EVNT_SPIK, NULL, tbuf); in local_clock() 643 snprintf(tbuf, sizeof(tbuf), "%+.6f s", in local_clock() 645 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_acts.c | 320 char tbuf[sizeof(up->buf)]; in acts_receive() local 335 refclock_gtraw(rbufp, tbuf, octets, &pp->lastrec); in acts_receive() 336 for (tptr = tbuf; *tptr != '\0'; tptr++) { in acts_receive() 369 char tbuf[BMAX]; in acts_message() local 384 strlcpy(tbuf, msg, sizeof(tbuf)); in acts_message() 385 strtok(tbuf, " "); in acts_message() 395 if (strcmp(tbuf, "OK") != 0) { in acts_message() 402 if (!strcmp(tbuf, modem_setup)) in acts_message() 427 if (strcmp(tbuf, "CONNECT") != 0) in acts_message() 441 if (strcmp(tbuf, "NO") == 0) in acts_message()
|
| 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-13.1/usr.sbin/rtadvd/ |
| H A D | advcap.c | 83 static char *tbuf; variable 118 tbuf = bp; in getent() 186 char *holdtbuf = tbuf; in tnchktc() 189 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 191 if (p < tbuf) { in tnchktc() 219 tbuf = holdtbuf; in tnchktc() 234 Bp = tbuf; in tnamatch() 304 char *bp = tbuf; in tgetnum() 337 char *bp = tbuf; in tgetflag() 364 char *bp = tbuf; in tgetstr()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | syslog.c | 172 tbuf_cookie.base = tbuf; in vsyslog1() 173 tbuf_cookie.left = sizeof(tbuf); in vsyslog1() 207 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); in vsyslog1() 269 cnt = sizeof(tbuf) - tbuf_cookie.left; in vsyslog1() 272 if (tbuf[cnt - 1] == '\n') in vsyslog1() 281 v->iov_len = cnt - (stdp - tbuf); in vsyslog1() 310 if (send(LogFile, tbuf, cnt, 0) < 0) { in vsyslog1() 318 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1() 334 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1() 351 p = strchr(tbuf, '>') + 3; in vsyslog1() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/rsa/ |
| H A D | rsa_pmeth.c | 44 unsigned char *tbuf; member 104 if (ctx->tbuf != NULL) in setup_tbuf() 118 OPENSSL_free(rctx->tbuf); in pkey_rsa_cleanup() 157 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign() 159 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign() 219 memcpy(rout, rctx->tbuf, ret); in pkey_rsa_verifyrecover() 264 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify() 280 rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify() 286 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify() 310 ret = RSA_public_encrypt(klen, rctx->tbuf, out, in pkey_rsa_encrypt() [all …]
|
| /freebsd-13.1/sbin/ipfw/ |
| H A D | tables.c | 384 tbuf += l; in table_print_type() 390 *tbuf++ = ':'; in table_print_type() 411 char tbuf[128]; in table_create() local 432 concat_tokens(tbuf, sizeof(tbuf), tabletypes, in table_create() 456 concat_tokens(tbuf, sizeof(tbuf), tablevaltypes, ", "); in table_create() 458 e, tbuf); in table_create() 660 memset(tbuf, 0, sizeof(tbuf)); in table_do_swap() 706 memset(tbuf, 0, sizeof(tbuf)); in table_get_info() 1884 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry() 1906 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry() [all …]
|
| /freebsd-13.1/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 354 key.data = (u_char *)tbuf; in main() 406 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 408 memmove(tbuf + 1, pwd.pw_name, len); in main() 414 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() 416 memmove(tbuf + 1, &store, sizeof(store)); in main() 422 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); in main() 424 memmove(tbuf + 1, &store, sizeof(store)); in main() 430 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 432 memmove(tbuf + 1, pwd.pw_name, len); in main() 438 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() [all …]
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | sftp-common.c | 220 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local 240 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); in ls_file() 242 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); in ls_file() 245 tbuf[0] = '\0'; in ls_file() 252 sbuf, tbuf, name); in ls_file() 256 (unsigned long long)st->st_size, tbuf, name); in ls_file()
|
| /freebsd-13.1/sbin/dump/ |
| H A D | itime.c | 241 char tbuf[BUFSIZ]; in getrecord() local 244 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) in getrecord() 247 if (makedumpdate(ddatep, tbuf) < 0) in getrecord() 259 makedumpdate(struct dumpdates *ddp, const char *tbuf) in makedumpdate() argument 263 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf); in makedumpdate()
|
| /freebsd-13.1/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-13.1/usr.bin/chpass/ |
| H A D | util.c | 72 static char tbuf[50]; in ttoa() local 76 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], in ttoa() 80 *tbuf = '\0'; in ttoa() 81 return (tbuf); in ttoa()
|
| /freebsd-13.1/crypto/openssl/crypto/asn1/ |
| H A D | a_int.c | 334 unsigned char tbuf[sizeof(r)]; in asn1_string_set_int64() local 344 off = asn1_put_uint64(tbuf, 0 - (uint64_t)r); in asn1_string_set_int64() 347 off = asn1_put_uint64(tbuf, r); in asn1_string_set_int64() 350 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_int64() 373 unsigned char tbuf[sizeof(r)]; in asn1_string_set_uint64() local 377 off = asn1_put_uint64(tbuf, r); in asn1_string_set_uint64() 378 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_uint64()
|
| /freebsd-13.1/usr.bin/tset/ |
| H A D | term.c | 51 static char tbuf[1024]; /* Termcap entry. */ variable 114 while ((rval = tgetent(tbuf, ttype)) == 0) { in get_termcap_entry() 120 *tcapbufp = tbuf; in get_termcap_entry()
|
| /freebsd-13.1/lib/libutil/ |
| H A D | uucplock.c | 151 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; in uu_unlock() local 153 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, tty_name); in uu_unlock() 154 return unlink(tbuf); in uu_unlock()
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | gethostbydns.c | 153 char tbuf[MAXDNAME]; in gethostanswer() local 243 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in gethostanswer() 244 if ((n < 0) || !(*name_ok)(tbuf)) { in gethostanswer() 262 n = strlen(tbuf) + 1; /* for the \0 */ in gethostanswer() 267 strcpy(bp, tbuf); in gethostanswer() 273 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in gethostanswer() 274 if (n < 0 || !res_dnok(tbuf)) { in gethostanswer() 284 n = strlen(tbuf) + 1; /* for the \0 */ in gethostanswer() 289 strcpy(bp, tbuf); in gethostanswer()
|