Home
last modified time | relevance | path

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

1234

/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dtrace.c183 char addrbuf[128], tmpbuf[200], *str; in trace_format() local
206 if (fmt[len] == '\0' || len > sizeof(tmpbuf) - 1) in trace_format()
208 memcpy(tmpbuf, fmt, len); in trace_format()
209 tmpbuf[len] = '\0'; in trace_format()
213 if (strcmp(tmpbuf, "int") == 0) { in trace_format()
215 } else if (strcmp(tmpbuf, "long") == 0) { in trace_format()
217 } else if (strcmp(tmpbuf, "str") == 0) { in trace_format()
220 } else if (strcmp(tmpbuf, "lenstr") == 0) { in trace_format()
227 } else if (strcmp(tmpbuf, "hexlenstr") == 0) { in trace_format()
236 } else if (strcmp(tmpbuf, "hashlenstr") == 0) { in trace_format()
[all …]
/freebsd/lib/libc/posix1e/
H A Dacl_to_text.c58 char *buf, *tmpbuf; in _posix1e_acl_to_text() local
89 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text()
94 buf = tmpbuf; in _posix1e_acl_to_text()
116 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text()
121 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text()
127 buf = tmpbuf; in _posix1e_acl_to_text()
144 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
148 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text()
154 buf = tmpbuf; in _posix1e_acl_to_text()
176 len = asprintf(&tmpbuf, " in _posix1e_acl_to_text()
[all...]
/freebsd/usr.sbin/mpsutil/
H A Dmps_debug.c136 char *frame, tmpbuf[128]; in print_sgl() local
145 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
146 mps_parse_flags(flags, SGL_FLAGS, tmpbuf, sizeof(tmpbuf)); in print_sgl()
148 flags, tmpbuf, sge->FlagsLength & 0xffffff, in print_sgl()
161 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
162 mps_parse_flags(sgc->Flags, SGL_FLAGS, tmpbuf, in print_sgl()
163 sizeof(tmpbuf)); in print_sgl()
167 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
172 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
H A Dmps_show.c237 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()
295 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
297 "\4NvmeDevices\2ScsiTarget\1ScsiInitiator", tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
298 printf(" ProtocolFlags: 0x%x %s\n", facts->ProtocolFlags, tmpbuf); in show_iocfacts()
/freebsd/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/libexec/bootpd/
H A Dgetether.c190 char tmpbuf[sizeof(union DL_primitives) + 16]; local
223 memset(tmpbuf, 0, sizeof(tmpbuf));
224 dlp = (union DL_primitives *) tmpbuf;
227 cbuf.buf = tmpbuf;
234 cbuf.buf = tmpbuf;
235 cbuf.maxlen = sizeof(tmpbuf);
265 memset(tmpbuf, 0, sizeof(tmpbuf));
266 dlp = (union DL_primitives *) tmpbuf;
269 cbuf.buf = tmpbuf;
276 cbuf.buf = tmpbuf;
[all …]
/freebsd/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/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/contrib/ntp/ntpd/
H A 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, "unknow in neol_query_firmware()
[all...]
/freebsd/contrib/ncurses/progs/
H A Ddump_entry.c74 static DYNBUF tmpbuf; variable
158 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
788 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex()
792 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex()
802 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
805 indent_DYN(&tmpbuf, level); in fmt_complex()
806 strncpy_DYN(&tmpbuf, "%", (size_t) 1); in fmt_complex()
807 strncpy_DYN(&tmpbuf, src, (size_t) 1); in fmt_complex()
811 strncpy_DYN(&tmpbuf, "\n", (size_t) 1); in fmt_complex()
812 indent_DYN(&tmpbuf, level + 1); in fmt_complex()
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dbuffer.c132 free(b->tmpbuf, M_DEVBUF); in sndbuf_free()
146 b->tmpbuf = NULL; in sndbuf_free()
160 u_int8_t *tmpbuf; in sndbuf_resize() local
182 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
186 __func__, b, b->tmpbuf, tmpbuf, in sndbuf_resize()
188 free(b->tmpbuf, M_DEVBUF); in sndbuf_resize()
189 b->tmpbuf = tmpbuf; in sndbuf_resize()
209 u_int8_t *buf, *tmpbuf, *shadbuf; in sndbuf_remalloc() local
221 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
226 free(b->tmpbuf, M_DEVBUF); in sndbuf_remalloc()
[all …]
/freebsd/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/contrib/libedit/
H A Dsearch.c459 wchar_t tmpbuf[EL_BUFSIZ]; in cv_search() local
463 tmpbuf[0] = '.'; in cv_search()
464 tmpbuf[1] = '*'; in cv_search()
470 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search()
476 ch = tmpbuf[tmplen]; in cv_search()
477 tmpbuf[tmplen] = '\0'; in cv_search()
490 (void) wcsncpy(tmpbuf, el->el_search.patbuf, in cv_search()
491 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search()
494 (void) wcsncpy(&el->el_search.patbuf[2], tmpbuf, in cv_search()
504 tmpbuf[tmplen++] = '.'; in cv_search()
[all …]
/freebsd/crypto/openssl/test/testutil/
H A Dstanza.c43 char tmpbuf[128]; in read_key() local
53 while (BIO_gets(s->fp, tmpbuf, sizeof(tmpbuf))) { in read_key()
55 if (!TEST_int_gt(BIO_puts(s->key, tmpbuf), 0)) in read_key()
57 if (HAS_PREFIX(tmpbuf, "-----END")) in read_key()
/freebsd/crypto/openssl/engines/
H A De_ossltest.c700 unsigned char *tmpbuf; in ossltest_aes128_cbc_cipher() local
703 tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_cbc_cipher()
706 if (tmpbuf == NULL && inl > 0) in ossltest_aes128_cbc_cipher()
710 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
711 memcpy(tmpbuf, in, inl); in ossltest_aes128_cbc_cipher()
717 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
718 memcpy(out, tmpbuf, inl); in ossltest_aes128_cbc_cipher()
719 OPENSSL_free(tmpbuf); in ossltest_aes128_cbc_cipher()
734 unsigned char *tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_gcm_cipher() local
737 if (tmpbuf == NULL && inl > 0) in ossltest_aes128_gcm_cipher()
[all …]
/freebsd/usr.bin/patch/
H A Dutil.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/lib/libc/inet/
H A Dnsap_addr.c80 char *tmpbuf = inet_nsap_ntoa_tmpbuf; in inet_nsap_ntoa() local
86 ascii = tmpbuf; in inet_nsap_ntoa()
87 start = tmpbuf; in inet_nsap_ntoa()
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dadv_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/crypto/openssl/demos/bio/
H A Dclient-arg.c18 char tmpbuf[1024]; in main() local
99 len = BIO_read(sbio, tmpbuf, 1024); in main()
102 BIO_write(out, tmpbuf, len); in main()
H A Dclient-conf.c19 char tmpbuf[1024]; in main() local
107 len = BIO_read(sbio, tmpbuf, 1024); in main()
110 BIO_write(out, tmpbuf, len); in main()
/freebsd/crypto/openssl/apps/
H A Dasn1parse.c75 unsigned char *tmpbuf; in asn1parse_main() local
233 tmpbuf = str; in asn1parse_main()
244 tmpbuf += j; in asn1parse_main()
247 ctmpbuf = tmpbuf; in asn1parse_main()
264 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
267 str = tmpbuf; in asn1parse_main()
/freebsd/sys/kern/
H A Dkern_jailmeta.c560 char *tmpbuf; in jm_sysctl_env() local
569 tmpbuf = ∅ in jm_sysctl_env()
574 tmpbuf = malloc(outlen, M_PRISON, M_NOWAIT); in jm_sysctl_env()
575 error = (tmpbuf == NULL) ? ENOMEM : 0; in jm_sysctl_env()
577 memcpy(tmpbuf, arg1, outlen); in jm_sysctl_env()
588 SYSCTL_OUT(req, tmpbuf, outlen); in jm_sysctl_env()
589 if (tmpbuf != &empty) in jm_sysctl_env()
590 free(tmpbuf, M_PRISON); in jm_sysctl_env()
/freebsd/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()
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_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/usr.bin/rpcgen/
H A Drpc_svcout.c180 char tmpbuf[32]; in write_netid_register() local
187 sprintf(tmpbuf, "%s\t\t", sp); in write_netid_register()
188 print_err_message(tmpbuf); in write_netid_register()
202 print_err_message(tmpbuf); in write_netid_register()
223 print_err_message(tmpbuf); in write_netid_register()
958 char tmpbuf[32]; in write_inetd_register() local
981 (void) sprintf(tmpbuf, "%s\t\t", sp); in write_inetd_register()
982 print_err_message(tmpbuf); in write_inetd_register()
1008 print_err_message(tmpbuf); in write_inetd_register()

1234