| /freebsd-12.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-12.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-12.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-12.1/contrib/gcclibs/libcpp/ |
| H A D | charset.c | 753 tbuf.asize = 1; in cpp_host_to_exec_charset() 754 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_host_to_exec_charset() 755 tbuf.len = 0; in cpp_host_to_exec_charset() 1087 if (tbuf->len + nbwc > tbuf->asize) in emit_numeric_escape() 1090 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape() 1105 if (tbuf->len + 1 > tbuf->asize) in emit_numeric_escape() 1108 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape() 1110 tbuf->text[tbuf->len++] = n; in emit_numeric_escape() 1315 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_interpret_string() 1316 tbuf.len = 0; in cpp_interpret_string() [all …]
|
| /freebsd-12.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-12.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_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_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()
|
| /freebsd-12.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-12.1/lib/libc/gen/ |
| H A D | syslog.c | 166 tbuf_cookie.base = tbuf; in vsyslog1() 167 tbuf_cookie.left = sizeof(tbuf); in vsyslog1() 200 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); in vsyslog1() 257 cnt = sizeof(tbuf) - tbuf_cookie.left; in vsyslog1() 260 if (tbuf[cnt - 1] == '\n') in vsyslog1() 269 v->iov_len = cnt - (stdp - tbuf); in vsyslog1() 298 if (send(LogFile, tbuf, cnt, 0) < 0) { in vsyslog1() 306 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1() 322 if (send(LogFile, tbuf, cnt, 0) >= 0) in vsyslog1() 339 p = strchr(tbuf, '>') + 3; in vsyslog1() [all …]
|
| /freebsd-12.1/contrib/gdb/gdb/tui/ |
| H A D | tui.c | 489 struct tchars tbuf; 508 ioctl (FILEDES, TIOCGETC, &tbuf); 509 tbuf.t_intrc = CHK (tbuf.t_intrc, CTRL ('?')); 510 tbuf.t_quitc = CHK (tbuf.t_quitc, CTRL ('\\')); 511 tbuf.t_startc = CHK (tbuf.t_startc, CTRL ('Q')); 512 tbuf.t_stopc = CHK (tbuf.t_stopc, CTRL ('S')); 513 tbuf.t_eofc = CHK (tbuf.t_eofc, CTRL ('D')); 515 ioctl (FILEDES, TIOCSETC, &tbuf);
|
| /freebsd-12.1/sbin/ipfw/ |
| H A D | tables.c | 376 tbuf += l; in table_print_type() 382 *tbuf++ = ':'; in table_print_type() 403 char tbuf[128]; in table_create() local 424 concat_tokens(tbuf, sizeof(tbuf), tabletypes, in table_create() 448 concat_tokens(tbuf, sizeof(tbuf), tablevaltypes, ", "); in table_create() 450 e, tbuf); in table_create() 645 memset(tbuf, 0, sizeof(tbuf)); in table_do_swap() 691 memset(tbuf, 0, sizeof(tbuf)); in table_get_info() 1866 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry() 1888 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry() [all …]
|
| /freebsd-12.1/sys/dev/ed/ |
| H A D | if_ed_novell.c | 236 char pbuf0[ED_PAGE_SIZE], pbuf[ED_PAGE_SIZE], tbuf[ED_PAGE_SIZE]; in ed_probe_gwether() local 248 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); in ed_probe_gwether() 249 if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) { in ed_probe_gwether() 253 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); in ed_probe_gwether() 254 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) { in ed_probe_gwether() 268 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); in ed_probe_gwether() 269 if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) { in ed_probe_gwether() 273 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); in ed_probe_gwether() 274 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) in ed_probe_gwether()
|
| /freebsd-12.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-12.1/sys/compat/linux/ |
| H A D | linux_stats.c | 155 struct l_newstat tbuf; in newstat_copyout() local 157 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout() 159 tbuf.st_ino = buf->st_ino; in newstat_copyout() 160 tbuf.st_mode = buf->st_mode; in newstat_copyout() 161 tbuf.st_nlink = buf->st_nlink; in newstat_copyout() 162 tbuf.st_uid = buf->st_uid; in newstat_copyout() 163 tbuf.st_gid = buf->st_gid; in newstat_copyout() 164 tbuf.st_rdev = buf->st_rdev; in newstat_copyout() 165 tbuf.st_size = buf->st_size; in newstat_copyout() 173 tbuf.st_blocks = buf->st_blocks; in newstat_copyout() [all …]
|
| /freebsd-12.1/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 362 key.data = (u_char *)tbuf; in main() 414 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 416 memmove(tbuf + 1, pwd.pw_name, len); in main() 422 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() 424 memmove(tbuf + 1, &store, sizeof(store)); in main() 430 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); in main() 432 memmove(tbuf + 1, &store, sizeof(store)); in main() 438 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); in main() 440 memmove(tbuf + 1, pwd.pw_name, len); in main() 446 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); in main() [all …]
|
| /freebsd-12.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-12.1/release/picobsd/tinyware/login/ |
| H A D | pico-login.c | 163 char tbuf[MAXPATHLEN + 2]; local 179 badlogin(tbuf); 312 badlogin(tbuf); 314 (void)strlcpy(tbuf, username, sizeof(tbuf)); 700 strlcpy(tbuf, cw, sizeof(tbuf)); 702 snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR, 719 if (snprintf(tbuf, sizeof(tbuf), "-%s", 721 sizeof(tbuf)) { 727 execlp(shell, tbuf, (char *)0); 968 char tbuf[256]; local [all …]
|
| /freebsd-12.1/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-12.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-12.1/contrib/file/src/ |
| H A D | print.c | 55 char tbuf[26]; in file_mdump() local 159 file_fmttime(m->value.l, 0, tbuf)); in file_mdump() 166 file_fmttime(m->value.l, FILE_T_LOCAL, tbuf)); in file_mdump() 172 file_fmttime(m->value.q, 0, tbuf)); in file_mdump() 178 file_fmttime(m->value.q, FILE_T_LOCAL, tbuf)); in file_mdump() 184 file_fmttime(m->value.q, FILE_T_WINDOWS, tbuf)); in file_mdump()
|
| /freebsd-12.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-12.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()
|