| /netbsd-src/tests/lib/libc/stdio/ |
| H A D | t_popen.c | 55 #define BUFSIZE (640*1024) macro 79 if ((buffer = malloc(BUFSIZE)) == NULL) in ATF_TC_BODY() 84 for (idx = 0; idx < BUFSIZE; idx++) in ATF_TC_BODY() 93 if (fwrite(buffer, sizeof(char), BUFSIZE, my_pipe) != BUFSIZE) in ATF_TC_BODY() 106 if (idx == BUFSIZE) { in ATF_TC_BODY() 115 if (idx < BUFSIZE) { in ATF_TC_BODY()
|
| /netbsd-src/tests/lib/libc/gen/posix_spawn/ |
| H A D | h_fileactions.c | 42 #define BUFSIZE 16 macro 54 char buf[BUFSIZE]; in main() 59 if (read(3, buf, BUFSIZE) != -1 || errno != EBADF) { in main() 65 if (read(4, buf, BUFSIZE) != -1 || errno != EBADF) { in main() 71 if (write(5, buf, BUFSIZE) <= 0) { in main() 77 if (write(6, buf, BUFSIZE) <= 0) { in main()
|
| /netbsd-src/sys/arch/i386/stand/lib/ |
| H A D | pread.c | 36 #define BUFSIZE (1*1024) macro 38 #define BUFSIZE (4*1024) macro 49 buf = alloc(BUFSIZE); in pread() 56 count = (rsize < BUFSIZE ? rsize : BUFSIZE); in pread()
|
| /netbsd-src/bin/csh/ |
| H A D | dol.c | 76 #define MAXWLEN (BUFSIZE - 4) 216 Char wbuf[BUFSIZE], *wp; in Dword() 391 Char wbuf[BUFSIZE]; in Dgetdol() 435 if (np >= &wbuf[BUFSIZE - 1]) in Dgetdol() 820 Char obuf[BUFSIZE], lbuf[BUFSIZE], mbuf[BUFSIZE]; in heredoc() 849 ocnt = BUFSIZE; in heredoc() 856 lcnt = BUFSIZE - 4; in heredoc() 875 (void)write(0, short2str(obuf), (size_t)(BUFSIZE - ocnt)); in heredoc() 889 (void) write(0, short2str(obuf), BUFSIZE); in heredoc() 891 ocnt = BUFSIZE; in heredoc() [all …]
|
| H A D | lex.c | 115 static Char labuf[BUFSIZE]; 259 Char wbuf[BUFSIZE], *wp; in word() 264 i = BUFSIZE - 4; in word() 641 Char buf[BUFSIZE]; in addla() 922 Char wbuf[BUFSIZE]; in subword() 941 i = BUFSIZE - 4; in subword() 1418 char tbuf[BUFSIZE + 1]; in bgetc() 1419 Char ttyline[BUFSIZE]; in bgetc() 1425 char tbuf[BUFSIZE + 1]; in bgetc() 1439 c = read(SHIN, tbuf, BUFSIZE); in bgetc() [all …]
|
| /netbsd-src/tests/lib/libc/sys/ |
| H A D | t_mmap.c | 85 #define BUFSIZE (32 * 1024) /* enough size to trigger sosend_loan */ macro 103 char buf[BUFSIZE]; in testloan() 104 char backup[BUFSIZE]; in testloan() 110 val = BUFSIZE; in testloan() 113 (void)memcpy(backup, vp, BUFSIZE); in testloan() 118 val = BUFSIZE; in testloan() 123 val = BUFSIZE; in testloan() 131 nwritten = write(fds[0], (char *)vp + page, BUFSIZE - page); in testloan() 137 (void)memset(vp2, pat, BUFSIZE); in testloan() 139 nread = read(fds[1], buf + page, BUFSIZE - page); in testloan() [all …]
|
| H A D | t_sendmmsg.c | 50 #define BUFSIZE 65536 macro 72 int buflen = BUFSIZE; in setsock() 97 buf = malloc(BUFSIZE); in ATF_TC_BODY() 103 mmsgcnt = BUFSIZE / sizeof(DGRAM); in ATF_TC_BODY()
|
| H A D | t_recvmmsg.c | 56 #define BUFSIZE 65536 macro 92 buf = malloc(BUFSIZE); in ATF_TC_BODY() 95 mmsgcnt = BUFSIZE / sizeof(DGRAM); in ATF_TC_BODY()
|
| /netbsd-src/sys/dev/virtio/ |
| H A D | viocon.c | 94 #define BUFSIZE 128 macro 262 if (virtio_alloc_vq(vsc, &sc->sc_vqs[rxidx], BUFSIZE, 1, in viocon_port_create() 274 if (virtio_alloc_vq(vsc, &sc->sc_vqs[txidx], BUFSIZE, 1, in viocon_port_create() 282 allocsize = (vp->vp_rx->vq_num + vp->vp_tx->vq_num) * BUFSIZE; in viocon_port_create() 299 * XXX use only a small circular tx buffer instead of many BUFSIZE buffers? in viocon_port_create() 301 vp->vp_tx_buf = vp->vp_rx_buf + vp->vp_rx->vq_num * BUFSIZE; in viocon_port_create() 336 vp->vp_tx_buf - vp->vp_rx_buf + slot * BUFSIZE, BUFSIZE, in viocon_tx_drain() 374 bus_dmamap_sync(virtio_dmat(vsc), vp->vp_dmamap, slot * BUFSIZE, in viocon_rx_fill() 375 BUFSIZE, BUS_DMASYNC_PREREA in viocon_rx_fill() [all...] |
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/ |
| H A D | mac.c | 20 #undef BUFSIZE 21 #define BUFSIZE 1024*8 macro 94 buf = app_malloc(BUFSIZE, "I/O buffer"); in mac_main() 187 i = BIO_read(in, (char *)buf, BUFSIZE); in mac_main() 205 if (len > BUFSIZE) { in mac_main() 210 if (!EVP_MAC_final(ctx, buf, &len, BUFSIZE)) { in mac_main() 228 OPENSSL_clear_free(buf, BUFSIZE); in mac_main()
|
| /netbsd-src/usr.sbin/eeprom/ |
| H A D | prephandlers.c | 50 static char err_str[BUFSIZE]; 92 char nvio_buf[BUFSIZE]; in prep_handler() 186 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in prep_dump()
|
| H A D | ophandlers.c | 50 static char err_str[BUFSIZE]; 102 char opio_buf[BUFSIZE]; in op_handler() 206 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in op_dump()
|
| H A D | ofhandlers.c | 49 static char err_str[BUFSIZE]; 96 char ofio_buf[BUFSIZE]; in of_handler() 214 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in of_dump()
|
| /netbsd-src/sys/arch/mac68k/obio/ |
| H A D | ascaudio.c | 65 #define BUFSIZE 32768 macro 207 sc->sc_playbuf = kmem_alloc(BUFSIZE, KM_SLEEP); in ascaudioattach() 208 sc->sc_recbuf = kmem_alloc(BUFSIZE, KM_SLEEP); in ascaudioattach() 450 if (sc->sc_putptr + blksize >= sc->sc_playbuf + BUFSIZE) in ascaudio_start_output() 451 total = sc->sc_playbuf + BUFSIZE - sc->sc_putptr; in ascaudio_start_output() 467 if (sc->sc_avail > BUFSIZE) in ascaudio_start_output() 468 sc->sc_avail = BUFSIZE; in ascaudio_start_output() 556 if (sc->sc_getptr + blksize >= sc->sc_recbuf + BUFSIZE) in ascaudio_halt() 557 total = sc->sc_recbuf + BUFSIZE - sc->sc_getptr; in ascaudio_halt() 772 if (sc->sc_rptr + count >= sc->sc_recbuf + BUFSIZE) in ascaudio_intr() [all...] |
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/objc/ |
| H A D | objc-next-runtime-abi-01.c | 602 char buf[BUFSIZE]; in next_runtime_abi_01_class_decl() 603 snprintf (buf, BUFSIZE, "_OBJC_Class_%s", in next_runtime_abi_01_class_decl() 614 char buf[BUFSIZE]; in next_runtime_abi_01_metaclass_decl() 615 snprintf (buf, BUFSIZE, "_OBJC_MetaClass_%s", in next_runtime_abi_01_metaclass_decl() 626 char buf[BUFSIZE]; in next_runtime_abi_01_category_decl() 627 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s", in next_runtime_abi_01_category_decl() 639 char buf[BUFSIZE]; in next_runtime_abi_01_protocol_decl() 643 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in next_runtime_abi_01_protocol_decl() 683 char buf[BUFSIZE]; in build_class_reference_decl() 773 char *t, buf[BUFSIZE]; in build_selector_reference_decl() [all …]
|
| H A D | objc-next-runtime-abi-02.c | 983 char buf[BUFSIZE]; in next_runtime_abi_02_class_decl() 984 snprintf (buf, BUFSIZE, "OBJC_CLASS_$_%s", in next_runtime_abi_02_class_decl() 996 char buf[BUFSIZE]; in next_runtime_abi_02_metaclass_decl() 997 snprintf (buf, BUFSIZE, "OBJC_METACLASS_$_%s", in next_runtime_abi_02_metaclass_decl() 1009 char buf[BUFSIZE]; in next_runtime_abi_02_category_decl() 1010 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_%s", in next_runtime_abi_02_category_decl() 1022 char buf[BUFSIZE]; in next_runtime_abi_02_protocol_decl() 1025 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in next_runtime_abi_02_protocol_decl() 1078 char buf[BUFSIZE]; in build_v2_class_reference_decl() 1080 snprintf (buf, BUFSIZE, "_OBJC_ClassRef_%s", IDENTIFIER_POINTER (ident)); in build_v2_class_reference_decl() [all …]
|
| H A D | objc-gnu-runtime-abi-01.c | 520 char buf[BUFSIZE]; in gnu_runtime_abi_01_class_decl() 521 snprintf (buf, BUFSIZE, "_OBJC_Class_%s", in gnu_runtime_abi_01_class_decl() 532 char buf[BUFSIZE]; in gnu_runtime_abi_01_metaclass_decl() 533 snprintf (buf, BUFSIZE, "_OBJC_MetaClass_%s", in gnu_runtime_abi_01_metaclass_decl() 544 char buf[BUFSIZE]; in gnu_runtime_abi_01_category_decl() 545 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s", in gnu_runtime_abi_01_category_decl() 557 char buf[BUFSIZE]; in gnu_runtime_abi_01_protocol_decl() 560 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in gnu_runtime_abi_01_protocol_decl() 875 char buf[BUFSIZE]; in objc_add_static_instance() 888 snprintf (buf, BUFSIZE, "_OBJC_INSTANCE_%d", num_static_inst++); in objc_add_static_instance() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/objc/ |
| H A D | objc-next-runtime-abi-01.cc | 603 char buf[BUFSIZE]; in next_runtime_abi_01_class_decl() 604 snprintf (buf, BUFSIZE, "_OBJC_Class_%s", in next_runtime_abi_01_class_decl() 615 char buf[BUFSIZE]; in next_runtime_abi_01_metaclass_decl() 616 snprintf (buf, BUFSIZE, "_OBJC_MetaClass_%s", in next_runtime_abi_01_metaclass_decl() 627 char buf[BUFSIZE]; in next_runtime_abi_01_category_decl() 628 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s", in next_runtime_abi_01_category_decl() 640 char buf[BUFSIZE]; in next_runtime_abi_01_protocol_decl() 644 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in next_runtime_abi_01_protocol_decl() 684 char buf[BUFSIZE]; in build_class_reference_decl() 774 char *t, buf[BUFSIZE]; in build_selector_reference_decl() [all …]
|
| H A D | objc-next-runtime-abi-02.cc | 985 char buf[BUFSIZE]; in next_runtime_abi_02_class_decl() 986 snprintf (buf, BUFSIZE, "OBJC_CLASS_$_%s", in next_runtime_abi_02_class_decl() 998 char buf[BUFSIZE]; in next_runtime_abi_02_metaclass_decl() 999 snprintf (buf, BUFSIZE, "OBJC_METACLASS_$_%s", in next_runtime_abi_02_metaclass_decl() 1011 char buf[BUFSIZE]; in next_runtime_abi_02_category_decl() 1012 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_%s", in next_runtime_abi_02_category_decl() 1024 char buf[BUFSIZE]; in next_runtime_abi_02_protocol_decl() 1027 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in next_runtime_abi_02_protocol_decl() 1080 char buf[BUFSIZE]; in build_v2_class_reference_decl() 1082 snprintf (buf, BUFSIZE, "_OBJC_ClassRef_%s", IDENTIFIER_POINTER (ident)); in build_v2_class_reference_decl() [all …]
|
| H A D | objc-gnu-runtime-abi-01.cc | 520 char buf[BUFSIZE]; in gnu_runtime_abi_01_class_decl() 521 snprintf (buf, BUFSIZE, "_OBJC_Class_%s", in gnu_runtime_abi_01_class_decl() 532 char buf[BUFSIZE]; in gnu_runtime_abi_01_metaclass_decl() 533 snprintf (buf, BUFSIZE, "_OBJC_MetaClass_%s", in gnu_runtime_abi_01_metaclass_decl() 544 char buf[BUFSIZE]; in gnu_runtime_abi_01_category_decl() 545 snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s", in gnu_runtime_abi_01_category_decl() 557 char buf[BUFSIZE]; in gnu_runtime_abi_01_protocol_decl() 560 snprintf (buf, BUFSIZE, "_OBJC_Protocol_%s", in gnu_runtime_abi_01_protocol_decl() 876 char buf[BUFSIZE]; in objc_add_static_instance() 889 snprintf (buf, BUFSIZE, "_OBJC_INSTANCE_%d", num_static_inst++); in objc_add_static_instance() [all …]
|
| /netbsd-src/sys/dev/ppbus/ |
| H A D | lpt.c | 169 &(sc->sc_in_baddr), BUFSIZE)) { in lpt_attach() 176 &(sc->sc_out_baddr), BUFSIZE)) { in lpt_attach() 179 &(sc->sc_in_baddr), BUFSIZE); in lpt_attach() 185 sc->sc_inbuf = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in lpt_attach() 186 sc->sc_outbuf = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in lpt_attach() 230 &(lpt->sc_in_baddr), BUFSIZE); in lpt_detach() 232 &(lpt->sc_out_baddr), BUFSIZE); in lpt_detach() 554 uimin(BUFSIZE, uio->uio_resid), 0, &len); in lptread() 600 n = MIN(BUFSIZE, uio->uio_resid); in lptwrite()
|
| /netbsd-src/sys/rump/fs/lib/libsyspuffs/ |
| H A D | puffs_rumpglue.c | 58 #define BUFSIZE (64*1024) macro 77 buf = kmem_alloc(BUFSIZE, KM_SLEEP); in readthread() 91 error = dofileread(pap->fpfd, fp, buf, BUFSIZE, in readthread() 134 buf = kmem_alloc(BUFSIZE, KM_SLEEP); in writethread()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/apps/ |
| H A D | dgst.c | 24 #undef BUFSIZE 25 #define BUFSIZE 1024*8 macro 105 buf = app_malloc(BUFSIZE, "I/O buffer"); in dgst_main() 421 OPENSSL_clear_free(buf, BUFSIZE); in dgst_main() 504 size_t len = BUFSIZE; in do_fp() 509 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 540 if (pkey_len > BUFSIZE) { in do_fp() 551 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprof/ |
| H A D | ChangeLog-2016 | 46 * corefile.c (BUFSIZE): Define. 48 (read_function_mappings): Use BUFSIZE and STR)BUFSIZE. 50 function and declare as static BUFSIZE arrays.
|
| /netbsd-src/external/gpl3/binutils/dist/gprof/ |
| H A D | ChangeLog-2016 | 46 * corefile.c (BUFSIZE): Define. 48 (read_function_mappings): Use BUFSIZE and STR)BUFSIZE. 50 function and declare as static BUFSIZE arrays.
|