Home
last modified time | relevance | path

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

123

/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()
127 buf = tmpbuf; in _posix1e_acl_to_text()
144 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
154 buf = tmpbuf; in _posix1e_acl_to_text()
187 buf = tmpbuf; in _posix1e_acl_to_text()
196 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in _posix1e_acl_to_text()
201 buf = 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()
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/contrib/ncurses/progs/
H A Ddump_entry.c74 static DYNBUF tmpbuf; variable
160 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
801 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
837 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
844 tmpbuf.text[tmpbuf.used++] = '\n'; in fmt_complex()
845 indent_DYN(&tmpbuf, level); in fmt_complex()
857 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
1168 strcpy_DYN(&tmpbuf, 0); in fmt_entry()
1169 strcpy_DYN(&tmpbuf, name); in fmt_entry()
1170 strcpy_DYN(&tmpbuf, "="); in fmt_entry()
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dbuffer.c135 if (b->tmpbuf) in sndbuf_free()
136 free(b->tmpbuf, M_DEVBUF); in sndbuf_free()
152 b->tmpbuf = NULL; in sndbuf_free()
166 u_int8_t *tmpbuf; in sndbuf_resize() local
192 __func__, b, b->tmpbuf, tmpbuf, in sndbuf_resize()
194 if (b->tmpbuf != NULL) in sndbuf_resize()
195 free(b->tmpbuf, M_DEVBUF); in sndbuf_resize()
196 b->tmpbuf = tmpbuf; in sndbuf_resize()
234 if (b->tmpbuf != NULL) in sndbuf_remalloc()
235 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/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 (strncmp(tmpbuf, "-----END", 8) == 0) in read_key()
/freebsd/contrib/libedit/
H A 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()
501 tmpbuf[tmplen++] = '.'; in cv_search()
502 tmpbuf[tmplen++] = '*'; in cv_search()
[all …]
/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()
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()
741 if (tmpbuf != NULL) in ossltest_aes128_gcm_cipher()
742 memcpy(tmpbuf, in, inl); in ossltest_aes128_gcm_cipher()
749 memcpy(out, tmpbuf, inl); 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/crypto/openssl/demos/bio/
H A Dclient-arg.c18 char tmpbuf[1024]; in main() local
98 len = BIO_read(sbio, tmpbuf, 1024); in main()
101 BIO_write(out, tmpbuf, len); in main()
H A Dclient-conf.c19 char tmpbuf[1024]; in main() local
106 len = BIO_read(sbio, tmpbuf, 1024); in main()
109 BIO_write(out, tmpbuf, len); in main()
/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/apps/
H A Dasn1parse.c75 unsigned char *tmpbuf; in asn1parse_main() local
230 tmpbuf = str; in asn1parse_main()
241 tmpbuf += j; in asn1parse_main()
244 ctmpbuf = tmpbuf; in asn1parse_main()
261 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
264 str = tmpbuf; in asn1parse_main()
/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/crypto/openssl/doc/man3/
H A DBIO_f_ssl.pod158 char tmpbuf[1024];
192 len = BIO_read(sbio, tmpbuf, 1024);
195 BIO_write(out, tmpbuf, len);
207 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/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()
/freebsd/sbin/restore/
H A Dtape.c319 # define tmpbuf tmpspcl.s_spcl in getvol() macro
426 if (gethead(&tmpbuf) == FAIL) { in getvol()
432 if (tmpbuf.c_volume != volno) { in getvol()
434 (intmax_t)tmpbuf.c_volume); in getvol()
438 if (_time64_to_time(tmpbuf.c_date) != dumpdate || in getvol()
439 _time64_to_time(tmpbuf.c_ddate) != dumptime) { in getvol()
440 time_t t = _time64_to_time(tmpbuf.c_date); in getvol()
457 if (tmpbuf.c_type == TS_TAPE) { in getvol()
465 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
467 } else if (tmpbuf.c_tapea <= prevtapea) { in getvol()
[all …]

123