/netbsd-src/external/bsd/am-utils/dist/amd/ |
H A D | get_args.c | 69 char tmpbuf[1024]; in get_version_string() local 89 xsnprintf(tmpbuf, sizeof(tmpbuf), "%s version %s (build %d).\n", in get_version_string() 91 xstrlcat(vers, tmpbuf, len); in get_version_string() 92 xsnprintf(tmpbuf, sizeof(tmpbuf), "Report bugs to %s.\n", PACKAGE_BUGREPORT); in get_version_string() 93 xstrlcat(vers, tmpbuf, len); in get_version_string() 94 xsnprintf(tmpbuf, sizeof(tmpbuf), "Configured by %s@%s on date %s.\n", in get_version_string() 96 xstrlcat(vers, tmpbuf, len); in get_version_string() 97 xsnprintf(tmpbuf, sizeof(tmpbuf), "Built by %s@%s on date %s.\n", in get_version_string() 99 xstrlcat(vers, tmpbuf, len); in get_version_string() 100 xsnprintf(tmpbuf, sizeof(tmpbuf), "cpu=%s (%s-endian), arch=%s, karch=%s.\n", in get_version_string() [all …]
|
/netbsd-src/distrib/utils/edlabel/ |
H A D | edlabel.c | 91 char tmpbuf[64]; variable 121 strlcpy(tmpbuf, (char*)cp, sizeof(tmpbuf)); in edit_head_field() 122 printf("%s", tmpbuf); in edit_head_field() 133 tmpbuf[0] = '\0'; in edit_head_field() 134 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_head_field() 136 if ((tmpbuf[0] == '\0') || (tmpbuf[0] == '\n')) { in edit_head_field() 143 if (sscanf(tmpbuf, "%d", &tmp) != 1) in edit_head_field() 158 tmp = strlen(tmpbuf); in edit_head_field() 161 if (tmpbuf[tmp-1] == '\n') in edit_head_field() 162 tmpbuf[tmp-1] = '\0'; in edit_head_field() [all …]
|
/netbsd-src/lib/libc/posix1e/ |
H A D | acl_to_text.c | 64 char *buf, *tmpbuf; in _posix1e_acl_to_text() local 96 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text() 101 buf = tmpbuf; in _posix1e_acl_to_text() 123 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text() 128 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text() 134 buf = tmpbuf; in _posix1e_acl_to_text() 151 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text() 155 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text() 161 buf = tmpbuf; in _posix1e_acl_to_text() 183 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text() [all …]
|
/netbsd-src/external/bsd/tre/dist/tests/ |
H A D | bench.c | 103 regex_t *reobj, char *str, char *tmpbuf) in run_tests() argument 116 tre_regerror(errcode, reobj, tmpbuf, 255); in run_tests() 117 printf("error: %s\n", tmpbuf); in run_tests() 142 char tmpbuf[256]; in main() local 195 run_tests(len, samples, sample_data, repeats, &reobj, str, tmpbuf); in main() 215 run_tests(len, samples, sample_data, repeats, &reobj, str, tmpbuf); in main() 234 run_tests(len, samples, sample_data, repeats, &reobj, str, tmpbuf); in main() 254 run_tests(len, samples, sample_data, repeats, &reobj, str, tmpbuf); in main() 271 tmpbuf[0] = '('; in main() 273 tmpbuf[i] = 'a'; in main() [all …]
|
/netbsd-src/sys/arch/hpcmips/stand/pbsdboot/ |
H A D | main.c | 535 TCHAR tmpbuf[PATHBUFLEN]; in WinMain() local 536 wsprintf(tmpbuf, TEXT("%s%S"), path_list[0].name, "netbsd"); in WinMain() 548 wstrcpy(pref.kernel_name, tmpbuf); in WinMain() 563 TCHAR tmpbuf[1024]; in WinMain() local 564 wsprintf(tmpbuf, TEXT("%s%S"), in WinMain() 567 CB_ADDSTRING, 0, (LPARAM)tmpbuf); in WinMain() 838 TCHAR tmpbuf[PATHBUFLEN]; in UpdateFbDlg() local 859 wsprintf(tmpbuf, TEXT("%X"), fbs->addr); in UpdateFbDlg() 860 SetDlgItemText(hWnd, IDC_FB_ADDR, tmpbuf); in UpdateFbDlg() 861 wsprintf(tmpbuf, TEXT("%d"), fbs->width); in UpdateFbDlg() [all …]
|
/netbsd-src/external/bsd/top/dist/ |
H A D | commands.c | 591 char tmpbuf[20]; in cmd_number() local 594 newval = readline(tmpbuf, 8, Yes); in cmd_number() 624 char tmpbuf[20]; in cmd_delay() local 627 if (readline(tmpbuf, 8, No) > 0) in cmd_delay() 629 newval = atof(tmpbuf); in cmd_delay() 657 char tmpbuf[20]; in cmd_displays() local 663 if ((i = readline(tmpbuf, 10, Yes)) > 0) in cmd_displays() 694 char tmpbuf[MAX_COLS]; in cmd_order() local 700 if (readline(tmpbuf, sizeof(tmpbuf), No) > 0) in cmd_order() 702 if ((i = string_index(tmpbuf, gstate->statics->order_names)) == -1) in cmd_order() [all …]
|
/netbsd-src/external/bsd/ntp/dist/libntp/ |
H A D | is_ip_address.c | 39 char tmpbuf[128]; in is_ip_address() local 65 if (sizeof(tmpbuf) > strlen(host)) { in is_ip_address() 67 strlcpy(tmpbuf, &host[1], sizeof(tmpbuf)); in is_ip_address() 68 pch = strchr(tmpbuf, ']'); in is_ip_address() 72 strlcpy(tmpbuf, host, sizeof(tmpbuf)); in is_ip_address() 77 if (getaddrinfo(tmpbuf, NULL, &hints, &result) == 0) { in is_ip_address()
|
/netbsd-src/usr.sbin/bootp/bootptest/ |
H A D | getether.c | 198 char tmpbuf[sizeof(union DL_primitives) + 16]; in getether() 231 memset(tmpbuf, 0, sizeof(tmpbuf)); in getether() 232 dlp = (union DL_primitives *) tmpbuf; in getether() 235 cbuf.buf = tmpbuf; in getether() 242 cbuf.buf = tmpbuf; in getether() 243 cbuf.maxlen = sizeof(tmpbuf); in getether() 273 memset(tmpbuf, 0, sizeof(tmpbuf)); in getether() 274 dlp = (union DL_primitives *) tmpbuf; in getether() 195 char tmpbuf[sizeof(union DL_primitives) + 16]; getether() local [all...] |
/netbsd-src/sys/dev/ |
H A D | smbios_platform.c | 208 char tmpbuf[128]; /* XXX is this long enough? */ in platform_add() local 210 if (smbios_get_string(tbl, idx, tmpbuf, 128) != NULL) { in platform_add() 212 pmf_set_platform(key, tmpbuf); in platform_add() 223 char tmpbuf[128]; /* XXX is this long enough? */ in platform_add_word() local 225 if (snprintf(tmpbuf, sizeof(tmpbuf), "%u%s", val, suf)) { in platform_add_word() 227 pmf_set_platform(key, tmpbuf); in platform_add_word() 261 char tmpbuf[128], datestr[9]; in platform_add_date() local 263 if (smbios_get_string(tbl, idx, tmpbuf, 128) == NULL) in platform_add_date() 265 if (platform_scan_date(tmpbuf, &month, &day, &year) != 3) in platform_add_date() 284 char tmpbuf[UUID_STR_LEN]; in platform_add_uuid() local [all …]
|
/netbsd-src/external/bsd/libbind/dist/irs/ |
H A D | irpmarshall.c | 242 char tmpbuf[24]; in irp_unmarshall_pw() local 243 char *tb = &tmpbuf[0]; in irp_unmarshall_pw() 264 tb = tmpbuf; in irp_unmarshall_pw() 265 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 269 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 281 tb = tmpbuf; in irp_unmarshall_pw() 282 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 286 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 306 tb = tmpbuf; in irp_unmarshall_pw() 307 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() [all …]
|
/netbsd-src/tests/fs/common/ |
H A D | fstest_zfs.c | 103 char tmpbuf[128]; in zfs_fstest_mount() local 108 snprintf(tmpbuf, sizeof(tmpbuf)-1, in zfs_fstest_mount() 110 setenv("RUMPHIJACK", tmpbuf, 1); in zfs_fstest_mount() 117 snprintf(tmpbuf, sizeof(tmpbuf)-1, "zpool create %s %s", in zfs_fstest_mount() 119 if ((error = system(tmpbuf)) != 0) { in zfs_fstest_mount()
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/internal/ |
H A D | scopebuffer.d | 133 ubyte[10] tmpbuf = void; 134 auto sbuf = ScopeBuffer!ubyte(tmpbuf); 297 char[2] tmpbuf = void; 300 auto textbuf = ScopeBuffer!char(tmpbuf); 339 char[10] tmpbuf = void; in cat() 340 auto textbuf = ScopeBuffer!char(tmpbuf); in cat() 355 char[10] tmpbuf = void; 356 auto textbuf = ScopeBuffer!char(tmpbuf); 374 auto scopeBuffer(T)(T[] tmpbuf) in scopeBuffer() 376 return ScopeBuffer!T(tmpbuf); in scopeBuffer() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/internal/ |
H A D | scopebuffer.d | 134 ubyte[10] tmpbuf = void; 135 auto sbuf = ScopeBuffer!ubyte(tmpbuf); 298 char[2] tmpbuf = void; 301 auto textbuf = ScopeBuffer!char(tmpbuf); 340 char[10] tmpbuf = void; in cat() 341 auto textbuf = ScopeBuffer!char(tmpbuf); in cat() 356 char[10] tmpbuf = void; 357 auto textbuf = ScopeBuffer!char(tmpbuf); 375 auto scopeBuffer(T)(T[] tmpbuf) in scopeBuffer() 377 return ScopeBuffer!T(tmpbuf); in scopeBuffer() [all …]
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ct/ |
H A D | ct_vfy.c | 31 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()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ct/ |
H A D | ct_vfy.c | 31 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()
|
/netbsd-src/external/mit/libuv/dist/src/unix/ |
H A D | os390-syscalls.c | 451 char* tmpbuf; in os390_readlink() local 454 tmpbuf = uv__malloc(len + 1); in os390_readlink() 455 if (tmpbuf == NULL) { in os390_readlink() 460 rlen = readlink(path, tmpbuf, len); in os390_readlink() 462 uv__free(tmpbuf); in os390_readlink() 466 if (rlen < 3 || strncmp("/$", tmpbuf, 2) != 0) { in os390_readlink() 468 memcpy(buf, tmpbuf, rlen); in os390_readlink() 469 uv__free(tmpbuf); in os390_readlink() 477 tmpbuf[rlen] = '\0'; in os390_readlink() 478 delimiter = strchr(tmpbuf + 2, '/'); in os390_readlink() [all …]
|
/netbsd-src/crypto/external/bsd/openssl/lib/libdes/ |
H A D | oenc_read.c | 98 static unsigned char *tmpbuf=NULL; in des_enc_read() local 103 if (tmpbuf == NULL) in des_enc_read() 105 tmpbuf=OPENSSL_malloc(BSIZE); in des_enc_read() 106 if (tmpbuf == NULL) return(-1); in des_enc_read() 205 des_pcbc_encrypt(net,tmpbuf,num,sched,iv, in des_enc_read() 208 des_cbc_encrypt(net,tmpbuf,num,sched,iv, in des_enc_read() 213 memcpy(buf,tmpbuf,num); in des_enc_read()
|
/netbsd-src/crypto/external/bsd/openssl.old/lib/libdes/ |
H A D | oenc_read.c | 98 static unsigned char *tmpbuf=NULL; in des_enc_read() local 103 if (tmpbuf == NULL) in des_enc_read() 105 tmpbuf=OPENSSL_malloc(BSIZE); in des_enc_read() 106 if (tmpbuf == NULL) return(-1); in des_enc_read() 205 des_pcbc_encrypt(net,tmpbuf,num,sched,iv, in des_enc_read() 208 des_cbc_encrypt(net,tmpbuf,num,sched,iv, in des_enc_read() 213 memcpy(buf,tmpbuf,num); in des_enc_read()
|
/netbsd-src/usr.bin/patch/ |
H A D | util.c | 321 char *tmpbuf; in makedirs() local 323 if ((tmpbuf = strdup(filename)) == NULL) in makedirs() 327 char *s = strrchr(tmpbuf, '/'); in makedirs() 329 free(tmpbuf); in makedirs() 334 if (mkpath(tmpbuf) != 0) in makedirs() 335 pfatal("creation of %s failed", tmpbuf); in makedirs() 336 free(tmpbuf); in makedirs() 398 char *filebase, *filedir, tmpbuf[MAXPATHLEN]; in checked_in() local 405 (snprintf(tmpbuf, sizeof tmpbuf, f, a1, a2, a3), stat(tmpbuf, &filestat) == 0) in checked_in()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/engines/ |
H A D | e_ossltest.c | 592 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 …]
|
/netbsd-src/lib/libedit/ |
H A D | search.c | 459 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 …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/engines/ |
H A D | e_ossltest.c | 700 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 …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/test/testutil/ |
H A D | stanza.c | 43 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()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/testutil/ |
H A D | stanza.c | 43 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()
|
/netbsd-src/external/mpl/bind/dist/lib/bind9/ |
H A D | getaddresses.c |
|