/openbsd/usr.sbin/route6d/ |
H A D | log.c | 73 char tmpbuf[LOGQUEUE_SIZE]; in log_enqueue() local 77 (void)vsnprintf(tmpbuf, sizeof(tmpbuf), fmt, ap); in log_enqueue() 79 (void)strlcat(logqueue, tmpbuf, LOGQUEUE_SIZE); in log_enqueue() 86 char tmpbuf[1024]; in vlog() local 87 char logbuf[LOGQUEUE_SIZE + sizeof(tmpbuf)]; in vlog() 94 (void)vsnprintf(tmpbuf, sizeof(tmpbuf), fmt, ap); in vlog() 96 (void)strlcat(logbuf, tmpbuf, sizeof(logbuf)); in vlog()
|
/openbsd/usr.sbin/smtpd/ |
H A D | mda_variables.c | 242 char tmpbuf[EXPAND_BUFFER], *ptmp, *pbuf, *ebuf; in mda_expand_format() local 248 if (len < sizeof tmpbuf) { in mda_expand_format() 253 memset(tmpbuf, 0, sizeof tmpbuf); in mda_expand_format() 255 ptmp = tmpbuf; in mda_expand_format() 260 tmpret = snprintf(ptmp, sizeof tmpbuf, "%s/", ui->directory); in mda_expand_format() 261 if (tmpret >= sizeof tmpbuf) { in mda_expand_format() 272 for (; *pbuf && ret < sizeof tmpbuf; ret += tmpret) { in mda_expand_format() 304 if (sizeof (tmpbuf) - (ptmp - tmpbuf) <= (size_t)exptoklen) in mda_expand_format() 312 if (ret >= sizeof tmpbuf) in mda_expand_format() 315 if ((ret = strlcpy(buf, tmpbuf, len)) >= len) in mda_expand_format()
|
/openbsd/gnu/usr.bin/perl/ext/ODBM_File/ |
H A D | ODBM_File.xs | 97 char *tmpbuf; in odbm_TIEHASH() local 103 Newx(tmpbuf, strlen(filename) + 5, char); in odbm_TIEHASH() 104 SAVEFREEPV(tmpbuf); in odbm_TIEHASH() 105 sprintf(tmpbuf,"%s.dir",filename); in odbm_TIEHASH() 112 if ((fd = open(tmpbuf,oflags,mode)) < 0 && errno != EEXIST) in odbm_TIEHASH() 116 sprintf(tmpbuf,"%s.pag",filename); in odbm_TIEHASH() 117 if ((fd = open(tmpbuf,oflags,mode)) < 0 && errno != EEXIST) in odbm_TIEHASH() 129 if ((fd = open(tmpbuf,O_RDONLY,mode)) < 0) in odbm_TIEHASH()
|
/openbsd/usr.bin/tic/ |
H A D | dump_entry.c | 76 static DYNBUF tmpbuf; variable 160 free_DYN(&tmpbuf); in _nc_leaks_dump_entry() 804 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex() 840 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex() 847 tmpbuf.text[tmpbuf.used++] = '\n'; in fmt_complex() 848 indent_DYN(&tmpbuf, level); in fmt_complex() 860 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex() 1173 strcpy_DYN(&tmpbuf, 0); in fmt_entry() 1174 strcpy_DYN(&tmpbuf, name); in fmt_entry() 1175 strcpy_DYN(&tmpbuf, "="); in fmt_entry() [all …]
|
/openbsd/lib/libedit/ |
H A D | search.c | 449 wchar_t tmpbuf[EL_BUFSIZ]; in cv_search() local 453 tmpbuf[0] = '.'; in cv_search() 454 tmpbuf[1] = '*'; in cv_search() 460 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search() 466 ch = tmpbuf[tmplen]; in cv_search() 467 tmpbuf[tmplen] = '\0'; in cv_search() 480 (void) wcsncpy(tmpbuf, el->el_search.patbuf, in cv_search() 481 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search() 494 tmpbuf[tmplen++] = '.'; in cv_search() 495 tmpbuf[tmplen++] = '*'; in cv_search() [all …]
|
/openbsd/sys/dev/pci/drm/display/ |
H A D | drm_dp_dual_mode_helper.c | 67 char *tmpbuf = NULL; in drm_dp_dual_mode_read() local 92 tmpbuf = kmalloc(size + offset, GFP_KERNEL); in drm_dp_dual_mode_read() 93 if (!tmpbuf) in drm_dp_dual_mode_read() 96 msgs[1].buf = tmpbuf; in drm_dp_dual_mode_read() 100 if (tmpbuf) in drm_dp_dual_mode_read() 101 memcpy(buffer, tmpbuf + offset, size); in drm_dp_dual_mode_read() 103 kfree(tmpbuf); in drm_dp_dual_mode_read()
|
/openbsd/usr.bin/patch/ |
H A D | util.c | 319 char *tmpbuf; in makedirs() local 321 if ((tmpbuf = strdup(filename)) == NULL) in makedirs() 325 char *s = strrchr(tmpbuf, '/'); in makedirs() 327 free(tmpbuf); in makedirs() 332 if (mkpath(tmpbuf) != 0) in makedirs() 333 pfatal("creation of %s failed", tmpbuf); in makedirs() 334 free(tmpbuf); in makedirs()
|
/openbsd/gnu/usr.bin/perl/cpan/Win32/ |
H A D | longpath.inc | 23 CHAR_T tmpbuf[MAX_PATH+1]; 24 CHAR_T *tmpstart = tmpbuf; 84 if (len < (STRLEN)(tmpbuf - tmpstart + sizeof(tmpbuf))) { 102 FN_STRCPY(path,tmpbuf);
|
/openbsd/gnu/usr.bin/perl/haiku/Haiku/ |
H A D | Haiku.xs | 41 U8 *tmpbuf = NULL; in haiku_do_debug_printf() local 45 tmpbuf = bytes_to_utf8((const U8*) tmps, &len); in haiku_do_debug_printf() 46 tmps = (char *) tmpbuf; in haiku_do_debug_printf() 51 Safefree(tmpbuf); in haiku_do_debug_printf()
|
/openbsd/gnu/usr.bin/binutils/gprof/ |
H A D | basic_blocks.c | 351 char tmpbuf[NBBS * 30]; local 359 p = tmpbuf; 407 if (p > tmpbuf) 421 if (bb_annotate_all_lines && p == tmpbuf) 443 strcpy (tmpbuf, "#####"); 444 p = tmpbuf + 5; 450 len = p - tmpbuf; 453 strncpy (buf, tmpbuf, width); 460 strcpy (buf + width - len, tmpbuf);
|
/openbsd/gnu/usr.bin/binutils-2.17/gprof/ |
H A D | basic_blocks.c | 341 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()
|
/openbsd/sbin/restore/ |
H A D | tape.c | 286 # define tmpbuf tmpspcl.s_spcl in getvol() macro 377 if (gethead(&tmpbuf) == FAIL) { in getvol() 383 if (tmpbuf.c_volume != volno) { in getvol() 388 if (tmpbuf.c_date != dumpdate || tmpbuf.c_ddate != dumptime) { in getvol() 389 time_t t = (time_t)tmpbuf.c_date; in getvol() 415 tpblksread, tmpbuf.c_firstrec); in getvol() 416 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) { in getvol() 418 tpblksread = tmpbuf.c_firstrec; in getvol() 421 } else if (tmpbuf.c_firstrec > 0 && in getvol() 441 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) in getvol() [all …]
|
/openbsd/gnu/usr.sbin/mkhybrid/src/ |
H A D | joliet.c | 100 unsigned char * tmpbuf; in FDECL3() local 110 tmpbuf = (u_char *) e_malloc(size); in FDECL3() 111 memcpy( tmpbuf, buffer, size); in FDECL3() 115 tmpbuf = (u_char *)source; in FDECL3() 132 if( tmpbuf[j] != 0 && in FDECL3() 133 (tmpbuf[j] <= 0x1f || (tmpbuf[j] >= 0x7F && tmpbuf[j] <= 0xA0)) ) in FDECL3() 139 switch(tmpbuf[j]) in FDECL3() 154 buffer[i+1] = tmpbuf[j]; in FDECL3() 162 free(tmpbuf); in FDECL3()
|
/openbsd/usr.bin/systat/ |
H A D | main.c | 98 char tmpbuf[TIMEPOS]; in print_header() local 122 snprintf(tmpbuf, sizeof(tmpbuf), in print_header() 126 snprintf(tmpbuf, sizeof(tmpbuf), in print_header() 131 tmpbuf, hostname, timebuf); in print_header()
|
/openbsd/usr.bin/openssl/ |
H A D | asn1pars.c | 244 unsigned char *tmpbuf; in asn1parse_main() local 338 tmpbuf = (unsigned char *) str; in asn1parse_main() 351 tmpbuf += j; in asn1parse_main() 354 ctmpbuf = tmpbuf; in asn1parse_main() 371 tmpbuf = at->value.asn1_string->data; in asn1parse_main() 374 str = (char *) tmpbuf; in asn1parse_main()
|
/openbsd/usr.bin/rpcgen/ |
H A D | rpc_svcout.c | 155 char tmpbuf[32]; local 162 snprintf(tmpbuf, sizeof tmpbuf, "%s\t\t", sp); 163 print_err_message(tmpbuf); 170 print_err_message(tmpbuf); 190 print_err_message(tmpbuf); 879 char tmpbuf[32]; local 920 (void) snprintf(tmpbuf, sizeof tmpbuf, "%s\t\t", sp); 921 print_err_message(tmpbuf); 946 print_err_message(tmpbuf);
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | petal.c | 450 char* tmpbuf = NULL; in provide_file_chunked() local 494 free(tmpbuf); in provide_file_chunked() 495 tmpbuf = malloc(avail-16); in provide_file_chunked() 496 if(!tmpbuf) in provide_file_chunked() 499 red = in?fread(tmpbuf, 1, avail-16, in):0; in provide_file_chunked() 509 memmove(at, tmpbuf, red); in provide_file_chunked() 540 free(tmpbuf); in provide_file_chunked()
|
/openbsd/lib/libagentx/ |
H A D | ax.c | 789 char tmpbuf[1024]; in ax_varbind2string() local 807 p = tmpbuf; in ax_varbind2string() 808 bufleft = sizeof(tmpbuf); in ax_varbind2string() 822 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 851 strlcpy(tmpbuf, in ax_varbind2string() 854 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 863 tmpbuf, sizeof(tmpbuf)) == NULL) { in ax_varbind2string() 871 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 886 p = tmpbuf; in ax_varbind2string() 887 bufleft = sizeof(tmpbuf); in ax_varbind2string() [all …]
|
/openbsd/lib/libcrypto/pkcs7/ |
H A D | pk7_smime.c | 550 BIO *tmpbuf; in PKCS7_decrypt() local 553 if (!(tmpbuf = BIO_new(BIO_f_buffer()))) { in PKCS7_decrypt() 558 BIO_push(tmpbuf, tmpmem); in PKCS7_decrypt() 559 ret = SMIME_text(tmpbuf, data); in PKCS7_decrypt() 564 BIO_free_all(tmpbuf); in PKCS7_decrypt()
|
/openbsd/usr.sbin/snmpd/ |
H A D | ax.c | 938 char tmpbuf[1024]; in ax_varbind2string() local 956 p = tmpbuf; in ax_varbind2string() 957 bufleft = sizeof(tmpbuf); in ax_varbind2string() 971 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1000 strlcpy(tmpbuf, in ax_varbind2string() 1003 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1012 tmpbuf, sizeof(tmpbuf)) == NULL) { in ax_varbind2string() 1020 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1035 p = tmpbuf; in ax_varbind2string() 1036 bufleft = sizeof(tmpbuf); in ax_varbind2string() [all …]
|
/openbsd/gnu/usr.bin/perl/ |
H A D | util.c | 3410 char tmpbuf[MAXPATHLEN]; local 3458 tmpbuf[0] = '\0'; 3483 *tmpbuf = '\0'; 3488 my_strlcat(tmpbuf, scriptname, sizeof(tmpbuf)); 3523 my_strlcpy(tmpbuf, scriptname, sizeof(tmpbuf)); 3524 cur = tmpbuf; 3527 && my_strlcpy(tmpbuf+len, ext[extidx++], sizeof(tmpbuf) - len)); 3552 s = delimcpy_no_escape(tmpbuf, tmpbuf + sizeof tmpbuf, s, bufend, 3568 (void)my_strlcpy(tmpbuf + len, scriptname, sizeof(tmpbuf) - len); 3572 len = strlen(tmpbuf); [all …]
|
H A D | gv.c | 140 char *tmpbuf; in Perl_gv_fetchfile_flags() local 151 tmpbuf = smallbuf; in Perl_gv_fetchfile_flags() 155 tmpbuf[0] = '_'; in Perl_gv_fetchfile_flags() 156 tmpbuf[1] = '<'; in Perl_gv_fetchfile_flags() 175 if (tmpbuf != smallbuf) in Perl_gv_fetchfile_flags() 176 Safefree(tmpbuf); in Perl_gv_fetchfile_flags() 1608 char *tmpbuf; in S_gv_stashpvn_internal() local 1616 tmpbuf = smallbuf; in S_gv_stashpvn_internal() 1620 tmpbuf[namelen] = ':'; in S_gv_stashpvn_internal() 1623 if (tmpbuf != smallbuf) in S_gv_stashpvn_internal() [all …]
|
/openbsd/usr.sbin/nsd/ |
H A D | xfr-inspect.c | 151 buffer_type* tmpbuf; in print_records() local 156 tmpbuf = buffer_create(region, QIOBUFSZ); in print_records() 157 if(!tmpbuf) { in print_records() 183 if(!print_rr(stdout, NULL, rr, tmpregion, tmpbuf)) { in print_records()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | arm-tdep.c | 1996 bfd_byte tmpbuf[FP_REGISTER_SIZE]; in arm_extract_return_value() local 1998 regcache_cooked_read (regs, ARM_F0_REGNUM, tmpbuf); in arm_extract_return_value() 2052 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_extract_return_value() local 2056 regcache_cooked_read (regs, regno++, tmpbuf); in arm_extract_return_value() 2057 memcpy (valbuf, tmpbuf, in arm_extract_return_value() 2220 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_store_return_value() local 2223 store_signed_integer (tmpbuf, INT_REGISTER_SIZE, val); in arm_store_return_value() 2224 regcache_cooked_write (regs, ARM_A1_REGNUM, tmpbuf); in arm_store_return_value() 2249 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_store_return_value() local 2253 memcpy (tmpbuf, valbuf, in arm_store_return_value() [all …]
|
/openbsd/lib/libcrypto/pem/ |
H A D | pvkfmt.c | 107 unsigned char *tmpbuf, *q; in read_lebn() local 111 tmpbuf = malloc(nbyte); in read_lebn() 112 if (!tmpbuf) in read_lebn() 114 q = tmpbuf; in read_lebn() 117 *r = BN_bin2bn(tmpbuf, nbyte, NULL); in read_lebn() 118 free(tmpbuf); in read_lebn()
|