Home
last modified time | relevance | path

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

123

/freebsd-12-stable/contrib/amd/amd/
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()
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-12-stable/lib/libc/posix1e/
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()
124 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, 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()
151 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text()
157 buf = tmpbuf; in _posix1e_acl_to_text()
179 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text()
[all …]
/freebsd-12-stable/usr.sbin/mpsutil/
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()
Dmps_show.c239 char tmpbuf[128]; in show_iocfacts() local
260 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
261 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
283 tmpbuf); in show_iocfacts()
291 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
293 "\4NvmeDevices\2ScsiTarget\1ScsiInitiator", tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
294 printf(" ProtocolFlags: 0x%x %s\n", facts->ProtocolFlags, tmpbuf); in show_iocfacts()
/freebsd-12-stable/contrib/ntp/libntp/
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-stable/libexec/bootpd/
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-stable/contrib/netbsd-tests/fs/common/
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-stable/crypto/openssl/crypto/ct/
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-stable/contrib/ntp/ntpd/
Drefclock_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-12-stable/contrib/ncurses/progs/
Ddump_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-12-stable/sys/dev/sound/pcm/
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
189 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
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()
217 u_int8_t *buf, *tmpbuf, *shadbuf; in sndbuf_remalloc() local
[all …]
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-stable/crypto/openssl/engines/
De_ossltest.c592 unsigned char *tmpbuf; in ossltest_aes128_cbc_cipher() local
595 tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_cbc_cipher()
598 if (tmpbuf == NULL && inl > 0) 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()
626 unsigned char *tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_gcm_cipher() local
629 if (tmpbuf == NULL && inl > 0) in ossltest_aes128_gcm_cipher()
[all …]
/freebsd-12-stable/contrib/netbsd-tests/lib/libcurses/slave/
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-stable/contrib/libedit/
Dsearch.c456 wchar_t tmpbuf[EL_BUFSIZ]; in cv_search() local
460 tmpbuf[0] = '.'; in cv_search()
461 tmpbuf[1] = '*'; in cv_search()
467 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search()
473 ch = tmpbuf[tmplen]; in cv_search()
474 tmpbuf[tmplen] = '\0'; in cv_search()
487 (void) wcsncpy(tmpbuf, el->el_search.patbuf, in cv_search()
488 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search()
491 (void) wcsncpy(&el->el_search.patbuf[2], tmpbuf, in cv_search()
501 tmpbuf[tmplen++] = '.'; in cv_search()
[all …]
/freebsd-12-stable/usr.bin/patch/
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-stable/lib/libc/inet/
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-stable/crypto/openssl/apps/
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-stable/crypto/openssl/doc/man3/
DBIO_f_ssl.pod155 char tmpbuf[1024];
192 len = BIO_read(sbio, tmpbuf, 1024);
195 BIO_write(out, tmpbuf, len);
207 char tmpbuf[1024];
269 len = BIO_gets(sbio, tmpbuf, 1024);
272 BIO_write(sbio, tmpbuf, len);
273 BIO_write(out, tmpbuf, len);
275 if (tmpbuf[0] == '\r' || tmpbuf[0] == '\n')
/freebsd-12-stable/contrib/wpa/src/eap_peer/
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()
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-stable/sys/fs/msdosfs/
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-stable/usr.bin/rpcgen/
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-stable/sbin/restore/
Dtape.c327 # define tmpbuf tmpspcl.s_spcl in getvol() macro
434 if (gethead(&tmpbuf) == FAIL) { in getvol()
440 if (tmpbuf.c_volume != volno) { in getvol()
442 (intmax_t)tmpbuf.c_volume); in getvol()
446 if (_time64_to_time(tmpbuf.c_date) != dumpdate || in getvol()
447 _time64_to_time(tmpbuf.c_ddate) != dumptime) { in getvol()
448 time_t t = _time64_to_time(tmpbuf.c_date); in getvol()
464 (intmax_t)prevtapea, (intmax_t)tmpbuf.c_tapea); in getvol()
465 if (tmpbuf.c_type == TS_TAPE) { in getvol()
473 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
[all …]
/freebsd-12-stable/contrib/wpa/src/eap_server/
Deap_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()

123