Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/amd/amd/
H A Dget_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()
99 xsnprintf(tmpbuf, sizeof(tmpbuf), "Configured by %s@%s on date %s.\n", in get_version_string()
102 xsnprintf(tmpbuf, sizeof(tmpbuf), "Built by %s@%s on date %s.\n", in get_version_string()
106 xsnprintf(tmpbuf, sizeof(tmpbuf), "cpu=%s (%s-endian), arch=%s, karch=%s.\n", in get_version_string()
112 xsnprintf(tmpbuf, sizeof(tmpbuf), "domain=%s, host=%s, hostd=%s.\n", in get_version_string()
117 mapc_showtypes(tmpbuf, sizeof(tmpbuf)); in get_version_string()
120 ops_showamfstypes(tmpbuf, sizeof(tmpbuf)); in get_version_string()
[all …]
/freebsd-12.1/lib/libc/posix1e/
H A Dacl_to_text.c61 char *buf, *tmpbuf; in _posix1e_acl_to_text() local
92 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text()
97 buf = tmpbuf; in _posix1e_acl_to_text()
119 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text()
130 buf = tmpbuf; in _posix1e_acl_to_text()
147 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
157 buf = tmpbuf; in _posix1e_acl_to_text()
190 buf = tmpbuf; in _posix1e_acl_to_text()
199 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in _posix1e_acl_to_text()
204 buf = tmpbuf; in _posix1e_acl_to_text()
[all …]
/freebsd-12.1/usr.sbin/mpsutil/
H A Dmps_debug.c141 char *frame, tmpbuf[128]; in print_sgl() local
151 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
152 mps_parse_flags(flags, SGL_FLAGS, tmpbuf, sizeof(tmpbuf)); in print_sgl()
154 flags, tmpbuf, sge->FlagsLength & 0xffffff, in print_sgl()
167 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
168 mps_parse_flags(sgc->Flags, SGL_FLAGS, tmpbuf, in print_sgl()
169 sizeof(tmpbuf)); in print_sgl()
173 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
178 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
H A Dmps_show.c204 char tmpbuf[128]; in show_iocfacts() local
225 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
226 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
248 tmpbuf); in show_iocfacts()
256 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
258 "\4NvmeDevices\2ScsiTarget\1ScsiInitiator", tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
259 printf(" ProtocolFlags: 0x%x %s\n", facts->ProtocolFlags, tmpbuf); in show_iocfacts()
/freebsd-12.1/contrib/ntp/libntp/
H A Dis_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-12.1/libexec/bootpd/
H A Dgetether.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-12.1/contrib/netbsd-tests/fs/common/
H A Dfstest_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-12.1/crypto/openssl/crypto/ct/
H A Dct_vfy.c31 unsigned char tmpbuf[12]; in sct_ctx_update() local
52 p = tmpbuf; in sct_ctx_update()
58 if (!EVP_DigestUpdate(ctx, tmpbuf, p - tmpbuf)) in sct_ctx_update()
76 p = tmpbuf; in sct_ctx_update()
79 if (!EVP_DigestUpdate(ctx, tmpbuf, 3)) in sct_ctx_update()
85 p = tmpbuf; in sct_ctx_update()
87 if (!EVP_DigestUpdate(ctx, tmpbuf, 2)) in sct_ctx_update()
/freebsd-12.1/contrib/ntp/ntpd/
H A Drefclock_neoclock4x.c728 char tmpbuf[80]; in neoclock4x_control() local
733 snprintf(tmpbuf, sizeof(tmpbuf)-1, 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()
990 tmpbuf[len++] = ' '; in neol_query_firmware()
1003 tmpbuf[len] = '\0'; in neol_query_firmware()
[all …]
/freebsd-12.1/contrib/ncurses/progs/
H A Ddump_entry.c68 static DYNBUF tmpbuf; variable
153 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
517 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
552 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
559 tmpbuf.text[tmpbuf.used++] = '\n'; in fmt_complex()
560 indent_DYN(&tmpbuf, level); in fmt_complex()
571 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
831 strcpy_DYN(&tmpbuf, 0); in fmt_entry()
832 strcpy_DYN(&tmpbuf, name); in fmt_entry()
833 strcpy_DYN(&tmpbuf, "="); in fmt_entry()
[all …]
/freebsd-12.1/sys/dev/sound/pcm/
H A Dbuffer.c137 if (b->tmpbuf) in sndbuf_free()
138 free(b->tmpbuf, M_DEVBUF); in sndbuf_free()
153 b->tmpbuf = NULL; in sndbuf_free()
167 u_int8_t *tmpbuf; in sndbuf_resize() local
193 __func__, b, b->tmpbuf, tmpbuf, in sndbuf_resize()
195 if (b->tmpbuf != NULL) in sndbuf_resize()
196 free(b->tmpbuf, M_DEVBUF); in sndbuf_resize()
197 b->tmpbuf = tmpbuf; in sndbuf_resize()
235 if (b->tmpbuf != NULL) in sndbuf_remalloc()
236 free(b->tmpbuf, M_DEVBUF); in sndbuf_remalloc()
[all …]
H A Dfeeder_mixer.c200 cnt = FEEDER_FEED(c->feeder->source, c, b->tmpbuf, in feed_mixer_rec()
203 sndbuf_acquire(b, b->tmpbuf, cnt); in feed_mixer_rec()
244 cnt = FEEDER_FEED(ch->feeder, ch, bs->tmpbuf, in feed_mixer_rec()
247 sndbuf_acquire(bs, bs->tmpbuf, cnt); in feed_mixer_rec()
/freebsd-12.1/crypto/openssl/engines/
H A De_ossltest.c592 unsigned char *tmpbuf; in ossltest_aes128_cbc_cipher() local
595 tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_cbc_cipher()
602 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
603 memcpy(tmpbuf, in, inl); in ossltest_aes128_cbc_cipher()
609 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
610 memcpy(out, tmpbuf, inl); in ossltest_aes128_cbc_cipher()
611 OPENSSL_free(tmpbuf); in ossltest_aes128_cbc_cipher()
633 if (tmpbuf != NULL) in ossltest_aes128_gcm_cipher()
634 memcpy(tmpbuf, in, inl); in ossltest_aes128_gcm_cipher()
641 memcpy(out, tmpbuf, inl); in ossltest_aes128_gcm_cipher()
[all …]
/freebsd-12.1/contrib/netbsd-tests/lib/libcurses/slave/
H A Dslave.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-12.1/lib/libedit/
H A Dsearch.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()
510 tmpbuf[tmplen++] = '.'; in cv_search()
511 tmpbuf[tmplen++] = '*'; in cv_search()
[all …]
/freebsd-12.1/usr.bin/patch/
H A Dutil.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-12.1/lib/libc/inet/
H A Dnsap_addr.c86 char *tmpbuf = inet_nsap_ntoa_tmpbuf; in inet_nsap_ntoa() local
92 ascii = tmpbuf; in inet_nsap_ntoa()
93 start = tmpbuf; in inet_nsap_ntoa()
/freebsd-12.1/crypto/openssl/apps/
H A Dasn1pars.c70 unsigned char *tmpbuf; in asn1parse_main() local
223 tmpbuf = str; in asn1parse_main()
234 tmpbuf += j; in asn1parse_main()
237 ctmpbuf = tmpbuf; in asn1parse_main()
254 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
257 str = tmpbuf; in asn1parse_main()
/freebsd-12.1/crypto/openssl/doc/man3/
H A DBIO_f_ssl.pod156 char tmpbuf[1024];
198 len = BIO_read(sbio, tmpbuf, 1024);
201 BIO_write(out, tmpbuf, len);
213 char tmpbuf[1024];
275 len = BIO_gets(sbio, tmpbuf, 1024);
278 BIO_write(sbio, tmpbuf, len);
279 BIO_write(out, tmpbuf, len);
281 if (tmpbuf[0] == '\r' || tmpbuf[0] == '\n')
/freebsd-12.1/contrib/wpa/src/eap_peer/
H A Deap_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()
H A Deap_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-12.1/sys/fs/msdosfs/
H A Dmsdosfs_conv.c243 u_char *c, tmpbuf[5]; in dos2unixfn() local
258 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
275 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), in dos2unixfn()
634 u_char *c, tmpbuf[5]; in win2unixfn() local
671 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
691 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
711 c = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
/freebsd-12.1/usr.bin/rpcgen/
H A Drpc_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-12.1/sbin/restore/
H A Dtape.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()
463 if (tmpbuf.c_type == TS_TAPE) { in getvol()
471 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
473 } else if (tmpbuf.c_tapea <= prevtapea) { in getvol()
[all …]
/freebsd-12.1/contrib/ntp/lib/isc/win32/
H A Dfsaccess.c63 char tmpbuf[256]; in is_ntfs() local
87 strcpy(tmpbuf, filename); in is_ntfs()
88 machinename = strtok(tmpbuf, "\\"); in is_ntfs()

123