Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 1 – 25 of 68) sorted by relevance

123

/freebsd-11-stable/contrib/amd/amd/
HDget_args.c67 char tmpbuf[1024]; in get_version_string() local
87 xsnprintf(tmpbuf, sizeof(tmpbuf), "%s version %s (build %d).\n", in get_version_string()
89 xstrlcat(vers, tmpbuf, len); in get_version_string()
90 xsnprintf(tmpbuf, sizeof(tmpbuf), "Report bugs to %s.\n", PACKAGE_BUGREPORT); in get_version_string()
91 xstrlcat(vers, tmpbuf, len); in get_version_string()
99 xsnprintf(tmpbuf, sizeof(tmpbuf), "Configured by %s@%s on date %s.\n", in get_version_string()
101 xstrlcat(vers, tmpbuf, len); in get_version_string()
102 xsnprintf(tmpbuf, sizeof(tmpbuf), "Built by %s@%s on date %s.\n", in get_version_string()
104 xstrlcat(vers, tmpbuf, len); in get_version_string()
106 xsnprintf(tmpbuf, sizeof(tmpbuf), "cpu=%s (%s-endian), arch=%s, karch=%s.\n", in get_version_string()
[all …]
/freebsd-11-stable/lib/libc/posix1e/
HDacl_to_text.c59 char *buf, *tmpbuf; in _posix1e_acl_to_text() local
90 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text()
95 buf = tmpbuf; in _posix1e_acl_to_text()
117 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text()
122 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text()
128 buf = tmpbuf; in _posix1e_acl_to_text()
145 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
149 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text()
155 buf = tmpbuf; in _posix1e_acl_to_text()
177 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text()
[all …]
/freebsd-11-stable/contrib/ntp/libntp/
HDis_ip_address.c37 char tmpbuf[128]; in is_ip_address() local
63 if (sizeof(tmpbuf) > strlen(host)) { in is_ip_address()
65 strlcpy(tmpbuf, &host[1], sizeof(tmpbuf)); in is_ip_address()
66 pch = strchr(tmpbuf, ']'); in is_ip_address()
70 strlcpy(tmpbuf, host, sizeof(tmpbuf)); in is_ip_address()
75 if (getaddrinfo(tmpbuf, NULL, &hints, &result) == 0) { in is_ip_address()
/freebsd-11-stable/libexec/bootpd/
HDgetether.c194 char tmpbuf[sizeof(union DL_primitives) + 16]; local
227 memset(tmpbuf, 0, sizeof(tmpbuf));
228 dlp = (union DL_primitives *) tmpbuf;
231 cbuf.buf = tmpbuf;
238 cbuf.buf = tmpbuf;
239 cbuf.maxlen = sizeof(tmpbuf);
269 memset(tmpbuf, 0, sizeof(tmpbuf));
270 dlp = (union DL_primitives *) tmpbuf;
273 cbuf.buf = tmpbuf;
280 cbuf.buf = tmpbuf;
[all …]
/freebsd-11-stable/contrib/netbsd-tests/fs/common/
HDfstest_zfs.c102 char tmpbuf[128]; in zfs_fstest_mount() local
107 snprintf(tmpbuf, sizeof(tmpbuf)-1, "blanket=/dev/zfs:%s:%s", in zfs_fstest_mount()
109 setenv("RUMPHIJACK", tmpbuf, 1); in zfs_fstest_mount()
116 snprintf(tmpbuf, sizeof(tmpbuf)-1, "zpool create %s %s", in zfs_fstest_mount()
118 if ((error = system(tmpbuf)) != 0) { in zfs_fstest_mount()
/freebsd-11-stable/contrib/ntp/ntpd/
HDrefclock_neoclock4x.c728 char tmpbuf[80]; in neoclock4x_control() local
733 snprintf(tmpbuf, sizeof(tmpbuf)-1, in neoclock4x_control()
738 tt = add_var(&out->kv_list, sizeof(tmpbuf)-1, RO|DEF); in neoclock4x_control()
739 snprintf(tt, sizeof(tmpbuf)-1, "calc_utc=\"%s\"", tmpbuf); in neoclock4x_control()
903 char tmpbuf[256]; in neol_query_firmware() local
920 memset(tmpbuf, 0x00, sizeof(tmpbuf)); in neol_query_firmware()
934 strlcpy(tmpbuf, "unknown due to timeout", sizeof(tmpbuf)); in neol_query_firmware()
940 strlcpy(tmpbuf, "unknown due to garbage input", sizeof(tmpbuf)); in neol_query_firmware()
966 strlcpy(tmpbuf, "(c)", sizeof(tmpbuf)); in neol_query_firmware()
981 ptr = strstr(&tmpbuf[lastsearch], "S/N"); in neol_query_firmware()
[all …]
/freebsd-11-stable/contrib/ncurses/progs/
HDdump_entry.c68 static DYNBUF tmpbuf; variable
153 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
507 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex()
517 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
520 indent_DYN(&tmpbuf, level); in fmt_complex()
521 strncpy_DYN(&tmpbuf, "%", (size_t) 1); in fmt_complex()
522 strncpy_DYN(&tmpbuf, src, (size_t) 1); in fmt_complex()
526 strncpy_DYN(&tmpbuf, "\n", (size_t) 1); in fmt_complex()
527 indent_DYN(&tmpbuf, level + 1); in fmt_complex()
530 indent_DYN(&tmpbuf, level + 1); in fmt_complex()
[all …]
/freebsd-11-stable/crypto/openssl/engines/
HDe_cswift.c547 char tmpbuf[DECIMAL_SIZE(sw_status) + 1]; in cswift_mod_exp() local
549 sprintf(tmpbuf, "%ld", sw_status); in cswift_mod_exp()
550 ERR_add_error_data(2, "CryptoSwift error number is ", tmpbuf); in cswift_mod_exp()
563 char tmpbuf[DECIMAL_SIZE(sw_status) + 1]; in cswift_mod_exp() local
565 sprintf(tmpbuf, "%ld", sw_status); in cswift_mod_exp()
566 ERR_add_error_data(2, "CryptoSwift error number is ", tmpbuf); in cswift_mod_exp()
684 char tmpbuf[DECIMAL_SIZE(sw_status) + 1]; in cswift_mod_exp_crt() local
686 sprintf(tmpbuf, "%ld", sw_status); in cswift_mod_exp_crt()
687 ERR_add_error_data(2, "CryptoSwift error number is ", tmpbuf); in cswift_mod_exp_crt()
700 char tmpbuf[DECIMAL_SIZE(sw_status) + 1]; in cswift_mod_exp_crt() local
[all …]
/freebsd-11-stable/crypto/openssl/crypto/des/
HDenc_read.c102 static unsigned char *tmpbuf = NULL; in OPENSSL_IMPLEMENT_GLOBAL()
107 if (tmpbuf == NULL) { in OPENSSL_IMPLEMENT_GLOBAL()
108 tmpbuf = OPENSSL_malloc(BSIZE); in OPENSSL_IMPLEMENT_GLOBAL()
109 if (tmpbuf == NULL) in OPENSSL_IMPLEMENT_GLOBAL()
217 DES_pcbc_encrypt(net, tmpbuf, num, sched, iv, DES_DECRYPT); in OPENSSL_IMPLEMENT_GLOBAL()
219 DES_cbc_encrypt(net, tmpbuf, num, sched, iv, DES_DECRYPT); in OPENSSL_IMPLEMENT_GLOBAL()
225 memcpy(buf, tmpbuf, num); in OPENSSL_IMPLEMENT_GLOBAL()
/freebsd-11-stable/sys/dev/sound/pcm/
HDbuffer.c135 if (b->tmpbuf) in sndbuf_free()
136 free(b->tmpbuf, M_DEVBUF); in sndbuf_free()
151 b->tmpbuf = NULL; in sndbuf_free()
165 u_int8_t *tmpbuf; in sndbuf_resize() local
187 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
191 __func__, b, b->tmpbuf, tmpbuf, in sndbuf_resize()
193 if (b->tmpbuf != NULL) in sndbuf_resize()
194 free(b->tmpbuf, M_DEVBUF); in sndbuf_resize()
195 b->tmpbuf = tmpbuf; in sndbuf_resize()
215 u_int8_t *buf, *tmpbuf, *shadbuf; in sndbuf_remalloc() local
[all …]
HDfeeder_mixer.c198 cnt = FEEDER_FEED(c->feeder->source, c, b->tmpbuf, in feed_mixer_rec()
201 sndbuf_acquire(b, b->tmpbuf, cnt); in feed_mixer_rec()
242 cnt = FEEDER_FEED(ch->feeder, ch, bs->tmpbuf, in feed_mixer_rec()
245 sndbuf_acquire(bs, bs->tmpbuf, cnt); in feed_mixer_rec()
/freebsd-11-stable/lib/libedit/
HDsearch.c465 Char tmpbuf[EL_BUFSIZ]; in cv_search() local
469 tmpbuf[0] = '.'; in cv_search()
470 tmpbuf[1] = '*'; in cv_search()
476 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search()
482 ch = tmpbuf[tmplen]; in cv_search()
483 tmpbuf[tmplen] = '\0'; in cv_search()
496 (void) Strncpy(tmpbuf, el->el_search.patbuf, in cv_search()
497 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search()
500 (void) Strncpy(&el->el_search.patbuf[2], tmpbuf, in cv_search()
510 tmpbuf[tmplen++] = '.'; in cv_search()
[all …]
/freebsd-11-stable/contrib/netbsd-tests/lib/libcurses/slave/
HDslave.c60 char *cmdbuf, *tmpbuf, **args, **tmpargs; in process_commands() local
78 if ((tmpbuf = realloc(cmdbuf, maxlen)) == NULL) in process_commands()
81 cmdbuf = tmpbuf; in process_commands()
127 ret = asprintf(&tmpbuf, in process_commands()
134 args[argslen] = tmpbuf; in process_commands()
/freebsd-11-stable/crypto/openssl/crypto/rand/
HDrand_unix.c249 unsigned char tmpbuf[ENTROPY_NEEDED]; in RAND_poll() local
358 r = read(fd, (unsigned char *)tmpbuf + n, in RAND_poll()
397 r = RAND_query_egd_bytes(*egdsocket, (unsigned char *)tmpbuf + n, in RAND_poll()
406 RAND_add(tmpbuf, sizeof(tmpbuf), (double)n); in RAND_poll()
407 OPENSSL_cleanse(tmpbuf, n); in RAND_poll()
/freebsd-11-stable/usr.bin/patch/
HDutil.c332 char *tmpbuf; in makedirs() local
334 if ((tmpbuf = strdup(filename)) == NULL) in makedirs()
338 char *s = strrchr(tmpbuf, '/'); in makedirs()
340 free(tmpbuf); in makedirs()
345 if (mkpath(tmpbuf) != 0) in makedirs()
346 pfatal("creation of %s failed", tmpbuf); in makedirs()
347 free(tmpbuf); in makedirs()
/freebsd-11-stable/lib/libc/inet/
HDnsap_addr.c84 char *tmpbuf = inet_nsap_ntoa_tmpbuf; in inet_nsap_ntoa() local
90 ascii = tmpbuf; in inet_nsap_ntoa()
91 start = tmpbuf; in inet_nsap_ntoa()
/freebsd-11-stable/crypto/openssl/apps/
HDasn1pars.c98 unsigned char *tmpbuf; in MAIN() local
292 tmpbuf = (unsigned char *)str; in MAIN()
303 tmpbuf += j; in MAIN()
306 ctmpbuf = tmpbuf; in MAIN()
323 tmpbuf = at->value.asn1_string->data; in MAIN()
326 str = (char *)tmpbuf; in MAIN()
/freebsd-11-stable/crypto/openssl/doc/crypto/
HDBIO_f_ssl.pod139 char tmpbuf[1024];
191 len = BIO_read(sbio, tmpbuf, 1024);
193 BIO_write(out, tmpbuf, len);
205 char tmpbuf[1024];
295 len = BIO_gets(sbio, tmpbuf, 1024);
297 BIO_write(sbio, tmpbuf, len);
298 BIO_write(out, tmpbuf, len);
300 if((tmpbuf[0] == '\r') || (tmpbuf[0] == '\n')) break;
/freebsd-11-stable/contrib/wpa/src/eap_peer/
HDeap_tnc.c216 struct wpabuf tmpbuf; in eap_tnc_process() local
289 wpabuf_set(&tmpbuf, pos, end - pos); in eap_tnc_process()
290 data->in_buf = &tmpbuf; in eap_tnc_process()
344 if (data->in_buf != &tmpbuf) in eap_tnc_process()
404 if (data->in_buf == &tmpbuf) in eap_tnc_process()
HDeap_ikev2.c337 struct wpabuf tmpbuf; in eap_ikev2_process() local
408 wpabuf_set(&tmpbuf, pos, end - pos); in eap_ikev2_process()
409 data->in_buf = &tmpbuf; in eap_ikev2_process()
413 if (data->in_buf == &tmpbuf) in eap_ikev2_process()
419 if (data->in_buf != &tmpbuf) in eap_ikev2_process()
/freebsd-11-stable/sys/fs/msdosfs/
HDmsdosfs_conv.c241 u_char *c, tmpbuf[5]; in dos2unixfn() local
256 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
273 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), in dos2unixfn()
632 u_char *c, tmpbuf[5]; in win2unixfn() local
669 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
689 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
709 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
/freebsd-11-stable/usr.bin/rpcgen/
HDrpc_svcout.c190 char tmpbuf[32]; in write_netid_register() local
197 sprintf(tmpbuf, "%s\t\t", sp); in write_netid_register()
198 print_err_message(tmpbuf); in write_netid_register()
212 print_err_message(tmpbuf); in write_netid_register()
233 print_err_message(tmpbuf); in write_netid_register()
968 char tmpbuf[32]; in write_inetd_register() local
991 (void) sprintf(tmpbuf, "%s\t\t", sp); in write_inetd_register()
992 print_err_message(tmpbuf); in write_inetd_register()
1018 print_err_message(tmpbuf); in write_inetd_register()
/freebsd-11-stable/sbin/restore/
HDtape.c325 # define tmpbuf tmpspcl.s_spcl in getvol() macro
432 if (gethead(&tmpbuf) == FAIL) { in getvol()
438 if (tmpbuf.c_volume != volno) { in getvol()
440 (intmax_t)tmpbuf.c_volume); in getvol()
444 if (_time64_to_time(tmpbuf.c_date) != dumpdate || in getvol()
445 _time64_to_time(tmpbuf.c_ddate) != dumptime) { in getvol()
446 time_t t = _time64_to_time(tmpbuf.c_date); in getvol()
462 (intmax_t)prevtapea, (intmax_t)tmpbuf.c_tapea); in getvol()
463 if (tmpbuf.c_type == TS_TAPE) { in getvol()
471 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
[all …]
/freebsd-11-stable/contrib/wpa/src/eap_server/
HDeap_server_ikev2.c358 struct wpabuf tmpbuf; in eap_ikev2_process() local
432 wpabuf_set(&tmpbuf, pos, end - pos); in eap_ikev2_process()
433 data->in_buf = &tmpbuf; in eap_ikev2_process()
437 if (data->in_buf == &tmpbuf) in eap_ikev2_process()
462 if (data->in_buf != &tmpbuf) in eap_ikev2_process()
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
HDfsaccess.c63 char tmpbuf[256]; in is_ntfs() local
87 strcpy(tmpbuf, filename); in is_ntfs()
88 machinename = strtok(tmpbuf, "\\"); in is_ntfs()

123