Home
last modified time | relevance | path

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

123

/dragonfly/lib/libposix1e/
H A Dacl_to_text.c52 char *buf, *tmpbuf; in acl_to_text() local
79 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in acl_to_text()
86 buf = tmpbuf; in acl_to_text()
120 buf = tmpbuf; in acl_to_text()
136 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in acl_to_text()
148 buf = tmpbuf; in acl_to_text()
169 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in acl_to_text()
181 buf = tmpbuf; in acl_to_text()
190 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in acl_to_text()
197 buf = tmpbuf; in acl_to_text()
[all …]
/dragonfly/usr.sbin/mpsutil/
H A Dmps_debug.c142 char *frame, tmpbuf[128]; in print_sgl() local
152 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
153 mps_parse_flags(flags, SGL_FLAGS, tmpbuf, sizeof(tmpbuf)); in print_sgl()
155 flags, tmpbuf, sge->FlagsLength & 0xffffff, in print_sgl()
168 bzero(tmpbuf, sizeof(tmpbuf)); in print_sgl()
169 mps_parse_flags(sgc->Flags, SGL_FLAGS, tmpbuf, in print_sgl()
170 sizeof(tmpbuf)); in print_sgl()
174 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
179 tmpbuf, sgc->Length, sgc->NextChainOffset, in print_sgl()
H A Dmps_show.c205 char tmpbuf[128]; in show_iocfacts() local
226 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
227 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
249 tmpbuf); in show_iocfacts()
257 bzero(tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
259 "\4NvmeDevices\2ScsiTarget\1ScsiInitiator", tmpbuf, sizeof(tmpbuf)); in show_iocfacts()
260 printf(" ProtocolFlags: 0x%x %s\n", facts->ProtocolFlags, tmpbuf); in show_iocfacts()
/dragonfly/libexec/bootpd/
H A Dgetether.c193 char tmpbuf[sizeof(union DL_primitives) + 16]; local
226 memset(tmpbuf, 0, sizeof(tmpbuf));
227 dlp = (union DL_primitives *) tmpbuf;
230 cbuf.buf = tmpbuf;
237 cbuf.buf = tmpbuf;
238 cbuf.maxlen = sizeof(tmpbuf);
268 memset(tmpbuf, 0, sizeof(tmpbuf));
269 dlp = (union DL_primitives *) tmpbuf;
272 cbuf.buf = tmpbuf;
279 cbuf.buf = tmpbuf;
[all …]
/dragonfly/usr.bin/top/
H A Dcommands.c590 char tmpbuf[20]; in cmd_number() local
625 char tmpbuf[20]; in cmd_delay() local
653 char tmpbuf[20]; in cmd_displays() local
690 char tmpbuf[MAX_COLS]; in cmd_order() local
696 if (readline(tmpbuf, sizeof(tmpbuf), No) > 0) in cmd_order()
783 char tmpbuf[MAX_COLS]; in cmd_kill() local
786 if (readline(tmpbuf, sizeof(tmpbuf), No) > 0) in cmd_kill()
788 kill_procs(tmpbuf); in cmd_kill()
797 char tmpbuf[MAX_COLS]; in cmd_renice() local
800 if (readline(tmpbuf, sizeof(tmpbuf), No) > 0) in cmd_renice()
[all …]
/dragonfly/contrib/ncurses/progs/
H A Ddump_entry.c74 static DYNBUF tmpbuf; variable
160 free_DYN(&tmpbuf); in _nc_leaks_dump_entry()
797 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
833 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
840 tmpbuf.text[tmpbuf.used++] = '\n'; in fmt_complex()
841 indent_DYN(&tmpbuf, level); in fmt_complex()
853 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex()
1164 strcpy_DYN(&tmpbuf, 0); in fmt_entry()
1165 strcpy_DYN(&tmpbuf, name); in fmt_entry()
1166 strcpy_DYN(&tmpbuf, "="); in fmt_entry()
[all …]
/dragonfly/sys/dev/sound/pcm/
H A Dbuffer.c134 if (b->tmpbuf) in sndbuf_free()
135 kfree(b->tmpbuf, M_DEVBUF); in sndbuf_free()
150 b->tmpbuf = NULL; in sndbuf_free()
164 u_int8_t *tmpbuf; in sndbuf_resize() local
190 __func__, b, b->tmpbuf, tmpbuf, in sndbuf_resize()
192 if (b->tmpbuf != NULL) in sndbuf_resize()
193 kfree(b->tmpbuf, M_DEVBUF); in sndbuf_resize()
194 b->tmpbuf = tmpbuf; in sndbuf_resize()
232 if (b->tmpbuf != NULL) in sndbuf_remalloc()
233 kfree(b->tmpbuf, M_DEVBUF); in sndbuf_remalloc()
[all …]
/dragonfly/lib/libpam/libpam/
H A Dpam_debug_log.c48 char *fmtbuf, *tmpbuf, *modname, *period; in _pam_verbose_error() local
51 tmpbuf = strdup(file); in _pam_verbose_error()
52 modname = basename(tmpbuf); in _pam_verbose_error()
62 free(tmpbuf); in _pam_verbose_error()
/dragonfly/sbin/hammer/
H A Dcmd_pfs.c99 char *tmpbuf; in getpfs() local
110 tmpbuf = strdup(path); in getpfs()
112 path = dirname(tmpbuf); in getpfs()
134 free(tmpbuf); in getpfs()
147 char *tmpbuf; in scanpfsid() local
181 tmpbuf = strdup(path); in scanpfsid()
196 free(tmpbuf); in scanpfsid()
200 free(tmpbuf); in scanpfsid()
261 char *tmpbuf; in hammer_cmd_pseudofs_create() local
284 tmpbuf = strdup(path); in hammer_cmd_pseudofs_create()
[all …]
/dragonfly/contrib/libedit/src/
H A Dsearch.c457 wchar_t tmpbuf[EL_BUFSIZ]; in cv_search() local
461 tmpbuf[0] = '.'; in cv_search()
462 tmpbuf[1] = '*'; in cv_search()
468 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search()
474 ch = tmpbuf[tmplen]; in cv_search()
475 tmpbuf[tmplen] = '\0'; in cv_search()
488 (void) wcsncpy(tmpbuf, el->el_search.patbuf, in cv_search()
489 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search()
502 tmpbuf[tmplen++] = '.'; in cv_search()
503 tmpbuf[tmplen++] = '*'; in cv_search()
[all …]
/dragonfly/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()
/dragonfly/contrib/binutils-2.34/gprof/
H A Dbasic_blocks.c341 char tmpbuf[NBBS * 30]; in annotate_with_count() local
349 p = tmpbuf; in annotate_with_count()
397 if (p > tmpbuf) in annotate_with_count()
411 if (bb_annotate_all_lines && p == tmpbuf) in annotate_with_count()
433 strcpy (tmpbuf, "#####"); in annotate_with_count()
434 p = tmpbuf + 5; in annotate_with_count()
440 len = p - tmpbuf; in annotate_with_count()
443 strncpy (buf, tmpbuf, width); in annotate_with_count()
450 strcpy (buf + width - len, tmpbuf); in annotate_with_count()
/dragonfly/contrib/binutils-2.27/gprof/
H A Dbasic_blocks.c341 char tmpbuf[NBBS * 30]; in annotate_with_count() local
349 p = tmpbuf; in annotate_with_count()
397 if (p > tmpbuf) in annotate_with_count()
411 if (bb_annotate_all_lines && p == tmpbuf) in annotate_with_count()
433 strcpy (tmpbuf, "#####"); in annotate_with_count()
434 p = tmpbuf + 5; in annotate_with_count()
440 len = p - tmpbuf; in annotate_with_count()
443 strncpy (buf, tmpbuf, width); in annotate_with_count()
450 strcpy (buf + width - len, tmpbuf); in annotate_with_count()
/dragonfly/sys/vm/
H A Dvm_zone.c766 char tmpbuf[128]; in sysctl_vm_zone() local
770 ksnprintf(tmpbuf, sizeof(tmpbuf), in sysctl_vm_zone()
772 error = SYSCTL_OUT(req, tmpbuf, strlen(tmpbuf)); in sysctl_vm_zone()
796 tmpbuf[0] = '\n'; in sysctl_vm_zone()
805 ksnprintf(tmpbuf + offset, sizeof(tmpbuf) - offset, in sysctl_vm_zone()
811 len = strlen((char *)tmpbuf); in sysctl_vm_zone()
813 tmpbuf[len - 1] = 0; in sysctl_vm_zone()
815 error = SYSCTL_OUT(req, tmpbuf, len); in sysctl_vm_zone()
/dragonfly/contrib/diffutils/lib/
H A Dstriconv.c64 # define tmpbuf tmp.buf in mem_cd_iconv() macro
70 char *outptr = tmpbuf; in mem_cd_iconv()
96 count += outptr - tmpbuf; in mem_cd_iconv()
103 char *outptr = tmpbuf; in mem_cd_iconv()
109 count += outptr - tmpbuf; in mem_cd_iconv()
113 # undef tmpbuf in mem_cd_iconv()
/dragonfly/contrib/grep/lib/
H A Dstriconv.c64 # define tmpbuf tmp.buf in mem_cd_iconv() macro
70 char *outptr = tmpbuf; in mem_cd_iconv()
96 count += outptr - tmpbuf; in mem_cd_iconv()
103 char *outptr = tmpbuf; in mem_cd_iconv()
109 count += outptr - tmpbuf; in mem_cd_iconv()
113 # undef tmpbuf in mem_cd_iconv()
/dragonfly/lib/libc/inet/
H A Dnsap_addr.c81 char *tmpbuf = inet_nsap_ntoa_tmpbuf; in inet_nsap_ntoa() local
87 ascii = tmpbuf; in inet_nsap_ntoa()
88 start = tmpbuf; in inet_nsap_ntoa()
/dragonfly/usr.bin/shlock/
H A Dshlock.c105 char *tmpbuf; in create_lock() local
113 tmpbuf = strdup(file); in create_lock()
114 if ((dir = dirname(tmpbuf)) == NULL) in create_lock()
120 free(tmpbuf); in create_lock()
/dragonfly/crypto/libressl/apps/openssl/
H A Dasn1pars.c245 unsigned char *tmpbuf; in asn1parse_main() local
343 tmpbuf = (unsigned char *) str; in asn1parse_main()
359 tmpbuf += j; in asn1parse_main()
362 ctmpbuf = tmpbuf; in asn1parse_main()
379 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
382 str = (char *) tmpbuf; in asn1parse_main()
/dragonfly/sbin/restore/
H A Dtape.c294 # define tmpbuf tmpspcl.s_spcl in getvol() macro
388 if (gethead(&tmpbuf) == FAIL) { in getvol()
394 if (tmpbuf.c_volume != volno) { in getvol()
395 fprintf(stderr, "Wrong volume (%ld)\n", (long)tmpbuf.c_volume); in getvol()
399 if (tmpbuf.c_date != dumpdate || tmpbuf.c_ddate != dumptime) { in getvol()
400 time_t c_date = tmpbuf.c_date; in getvol()
416 (long)tmpbuf.c_tapea); in getvol()
417 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) { in getvol()
425 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
427 } else if (tmpbuf.c_tapea <= prevtapea) { in getvol()
[all …]
/dragonfly/contrib/binutils-2.34/gold/
H A Darchive.cc65 char* tmpbuf = *tmpbufp; in should_include_member() local
73 tmpbuf = static_cast<char*>(xrealloc(tmpbuf, symlen + 1)); in should_include_member()
74 *tmpbufp = tmpbuf; in should_include_member()
77 memcpy(tmpbuf, sym_name, symlen); in should_include_member()
78 tmpbuf[symlen] = '\0'; in should_include_member()
79 sym_name = tmpbuf; in should_include_member()
803 char* tmpbuf = NULL; in add_symbols() local
850 if (tmpbuf != NULL) in add_symbols()
851 free(tmpbuf); in add_symbols()
860 if (tmpbuf != NULL) in add_symbols()
[all …]
/dragonfly/contrib/binutils-2.27/gold/
H A Darchive.cc65 char* tmpbuf = *tmpbufp; in should_include_member() local
73 tmpbuf = static_cast<char*>(xrealloc(tmpbuf, symlen + 1)); in should_include_member()
74 *tmpbufp = tmpbuf; in should_include_member()
77 memcpy(tmpbuf, sym_name, symlen); in should_include_member()
78 tmpbuf[symlen] = '\0'; in should_include_member()
79 sym_name = tmpbuf; in should_include_member()
794 char* tmpbuf = NULL; in add_symbols() local
841 if (tmpbuf != NULL) in add_symbols()
842 free(tmpbuf); in add_symbols()
851 if (tmpbuf != NULL) in add_symbols()
[all …]
/dragonfly/usr.bin/rpcgen/
H A Drpc_svcout.c184 char tmpbuf[32]; in write_netid_register() local
191 sprintf(tmpbuf, "%s\t\t", sp); in write_netid_register()
192 print_err_message(tmpbuf); in write_netid_register()
206 print_err_message(tmpbuf); in write_netid_register()
223 print_err_message(tmpbuf); in write_netid_register()
935 char tmpbuf[32]; in write_inetd_register() local
958 sprintf(tmpbuf, "%s\t\t", sp); in write_inetd_register()
959 print_err_message(tmpbuf); in write_inetd_register()
983 print_err_message(tmpbuf); in write_inetd_register()
/dragonfly/sys/vfs/msdosfs/
H A Dmsdosfs_conv.c247 u_char c, tmpbuf[5]; in dos2unixfn() local
262 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
281 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), in dos2unixfn()
636 u_char tmpbuf[5]; in win2unixfn() local
673 code = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
694 code = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
715 code = win2unixchr(tmpbuf, code, pmp); in win2unixfn()
/dragonfly/contrib/wpa_supplicant/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()

123