Home
last modified time | relevance | path

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

123

/freebsd-13-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-13-stable/usr.sbin/mpsutil/
HDmps_debug.c137 char *frame, tmpbuf[128]; in print_sgl() local
146 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
147 mps_parse_flags(flags, SGL_FLAGS, tmpbuf, sizeof(tmpbuf)); in print_sgl()
149 flags, tmpbuf, sge->FlagsLength & 0xffffff, in print_sgl()
162 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
163 mps_parse_flags(sgc->Flags, SGL_FLAGS, tmpbuf, in print_sgl()
164 sizeof(tmpbuf)); in print_sgl()
168 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
173 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
HDmps_show.c238 char tmpbuf[128]; in show_iocfacts() local
261 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
262 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
284 tmpbuf); in show_iocfacts()
296 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
298 "\4NvmeDevices\2ScsiTarget\1ScsiInitiator", tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
299 printf(" ProtocolFlags: 0x%x %s\n", facts->ProtocolFlags, tmpbuf); in show_iocfacts()
/freebsd-13-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-13-stable/libexec/bootpd/
HDgetether.c192 char tmpbuf[sizeof(union DL_primitives) + 16]; local
225 memset(tmpbuf, 0, sizeof(tmpbuf));
226 dlp = (union DL_primitives *) tmpbuf;
229 cbuf.buf = tmpbuf;
236 cbuf.buf = tmpbuf;
237 cbuf.maxlen = sizeof(tmpbuf);
267 memset(tmpbuf, 0, sizeof(tmpbuf));
268 dlp = (union DL_primitives *) tmpbuf;
271 cbuf.buf = tmpbuf;
278 cbuf.buf = tmpbuf;
[all …]
/freebsd-13-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-13-stable/crypto/openssl/crypto/ct/
HDct_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-13-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-13-stable/contrib/ncurses/progs/
HDdump_entry.c74 static DYNBUF tmpbuf; variable
160 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
783 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex()
787 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex()
797 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
800 indent_DYN(&tmpbuf, level); in fmt_complex()
801 strncpy_DYN(&tmpbuf, "%", (size_t) 1); in fmt_complex()
802 strncpy_DYN(&tmpbuf, src, (size_t) 1); in fmt_complex()
806 strncpy_DYN(&tmpbuf, "\n", (size_t) 1); in fmt_complex()
807 indent_DYN(&tmpbuf, level + 1); in fmt_complex()
[all …]
/freebsd-13-stable/sys/dev/sound/pcm/
HDbuffer.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 …]
HDfeeder_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-13-stable/crypto/openssl/engines/
HDe_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-13-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-13-stable/contrib/libedit/
HDsearch.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-13-stable/usr.bin/patch/
HDutil.c331 char *tmpbuf; in makedirs() local
333 if ((tmpbuf = strdup(filename)) == NULL) in makedirs()
337 char *s = strrchr(tmpbuf, '/'); in makedirs()
339 free(tmpbuf); in makedirs()
344 if (mkpath(tmpbuf) != 0) in makedirs()
345 pfatal("creation of %s failed", tmpbuf); in makedirs()
346 free(tmpbuf); in makedirs()
/freebsd-13-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-13-stable/usr.sbin/bluetooth/hccontrol/
HDadv_data.c190 char tmpbuf[5]; in adv_data2str() local
198 (void)snprintf(tmpbuf, sizeof(tmpbuf), "%02x ", data[i]); in adv_data2str()
200 if (strlcat(buffer, tmpbuf, size) > size) in adv_data2str()
/freebsd-13-stable/crypto/openssl/apps/
HDasn1pars.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-13-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-13-stable/crypto/openssl/doc/man3/
HDBIO_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-13-stable/sys/fs/msdosfs/
HDmsdosfs_conv.c242 u_char *c, tmpbuf[5]; in dos2unixfn() local
257 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
274 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-13-stable/usr.bin/rpcgen/
HDrpc_svcout.c188 char tmpbuf[32]; in write_netid_register() local
195 sprintf(tmpbuf, "%s\t\t", sp); in write_netid_register()
196 print_err_message(tmpbuf); in write_netid_register()
210 print_err_message(tmpbuf); in write_netid_register()
231 print_err_message(tmpbuf); in write_netid_register()
966 char tmpbuf[32]; in write_inetd_register() local
989 (void) sprintf(tmpbuf, "%s\t\t", sp); in write_inetd_register()
990 print_err_message(tmpbuf); in write_inetd_register()
1016 print_err_message(tmpbuf); in write_inetd_register()
/freebsd-13-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-13-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()

123