| /openbsd-src/regress/sys/fileops/ |
| H A D | fileops.c | 28 #define BUFSIZE (16 * 1024) macro 29 #define HOLESIZE (16 * BUFSIZE) 167 if (to_read > BUFSIZE) in check_read() 168 to_read = BUFSIZE; in check_read() 186 if (to_read > BUFSIZE) in check_mmap() 187 to_read = BUFSIZE; in check_mmap() 204 gen_data(gbuf, BUFSIZE, curpos); in do_create() 205 c_write(gbuf, BUFSIZE); in do_create() 209 gen_data(gbuf, BUFSIZE, curpos); in do_create() 210 c_write(gbuf, BUFSIZE); in do_create() [all …]
|
| /openbsd-src/regress/lib/libc/popen/ |
| H A D | popen.c | 43 #define BUFSIZE (640*1024) macro 54 if ((buffer = malloc(BUFSIZE*sizeof(char))) == NULL) in main() 57 for (index=0; index<BUFSIZE; index++) in main() 65 if (fwrite(buffer, sizeof(char), BUFSIZE, pipe) != BUFSIZE) in main() 78 if (index == BUFSIZE) { in main() 88 if (index < BUFSIZE) { in main()
|
| /openbsd-src/lib/libcrypto/rand/ |
| H A D | randfile.c | 73 #undef BUFSIZE 74 #define BUFSIZE 1024 macro 93 unsigned char buf[BUFSIZE]; in RAND_write_file() 120 i = (n > BUFSIZE) ? BUFSIZE : n; in RAND_write_file() 121 n -= BUFSIZE; in RAND_write_file() 134 explicit_bzero(buf, BUFSIZE); in RAND_write_file()
|
| /openbsd-src/regress/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()
|
| /openbsd-src/sys/dev/pv/ |
| H A D | viocon.c | 80 #define BUFSIZE 128 macro 81 CTASSERT(BUFSIZE < TTHIWATMINSPACE); 259 allocsize = (vp->vp_rx->vq_num + vp->vp_tx->vq_num) * BUFSIZE; in viocon_port_create() 275 * XXX use only a small circular tx buffer instead of many BUFSIZE buffers? in viocon_port_create() 277 vp->vp_tx_buf = vp->vp_rx_buf + vp->vp_rx->vq_num * BUFSIZE; in viocon_port_create() 312 vp->vp_tx_buf - vp->vp_rx_buf + slot * BUFSIZE, BUFSIZE, in viocon_tx_drain() 350 bus_dmamap_sync(vsc->sc_dmat, vp->vp_dmamap, slot * BUFSIZE, in viocon_rx_fill() 351 BUFSIZE, BUS_DMASYNC_PREREAD); in viocon_rx_fill() 352 virtio_enqueue_p(vq, slot, vp->vp_dmamap, slot * BUFSIZE, in viocon_rx_fill() [all...] |
| /openbsd-src/usr.bin/mg/ |
| H A D | interpreter.c | 93 char funbuf[BUFSIZE]; 423 if ((e1->fun = strndup(cmdp, BUFSIZE)) == NULL) { in parsexp() 453 char excbuf[BUFSIZE]; in multiarg() 602 if ((v1->v_name = strndup(vnamep, BUFSIZE)) == NULL) in founddef() 625 char excbuf[BUFSIZE], argbuf[BUFSIZE]; in expandvals() 626 char contbuf[BUFSIZE], varbuf[BUFSIZE]; in expandvals() 702 mglog_misc("x|%s|%p|%d|\n", bp, defnam, BUFSIZE); in expandvals() 705 if (strlcat(bp, s, BUFSIZE) > in expandvals() [all...] |
| H A D | autoexec.c | 99 char patbuf[BUFSIZE], funcbuf[BUFSIZE], *patp, *funcp; in auto_execute()
|
| H A D | extend.c | 38 char buf[BUFSIZE], *bufp, *cp; in insert() 573 char exbuf[BUFSIZE], *bufp; in evalexpr() 596 static char excbuf[BUFSIZE]; in evalbuffer() 601 if (llen >= BUFSIZE) in evalbuffer() 652 char excbuf[BUFSIZE]; in load()
|
| /openbsd-src/usr.sbin/eeprom/ |
| H A D | ophandlers.c | 52 static char err_str[BUFSIZE]; 79 char opio_buf[BUFSIZE]; in op_handler() 177 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in op_dump()
|
| H A D | defs.h | 33 #undef BUFSIZE 34 #define BUFSIZE 1024 macro
|
| H A D | main.c | 59 char *cp, line[BUFSIZE]; in main() 88 while (fgets(line, BUFSIZE, stdin) != NULL) { in main()
|
| H A D | optree.c | 113 char op_buf[BUFSIZE * 8]; in op_nodes() 114 char op_name[BUFSIZE]; in op_nodes()
|
| /openbsd-src/lib/libssl/test/ |
| H A D | test_aesni | 25 BUFSIZE="16 32 48 64 80 96 128 144 999" 31 for bufsize in $BUFSIZE; do 41 for bufsize in $BUFSIZE; do
|
| /openbsd-src/usr.sbin/mopd/otherOS/ |
| H A D | loop.c | 36 u_char buf[BUFSIZE]; 93 if ((cc = pfRead(fd, buf+HDRSIZ, BUFSIZE-HDRSIZ)) < 0) { 112 if ((cc = pfRead(fd, buf+HDRSIZ, BUFSIZE-HDRSIZ)) < 0) {
|
| /openbsd-src/usr.sbin/installboot/ |
| H A D | util.c | 35 #define BUFSIZE 512 macro 71 if ((buf = malloc(BUFSIZE)) == NULL) { in filecopy() 77 n = MINIMUM(sz, BUFSIZE); in filecopy()
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | ar.c | 52 #define BUFSIZE 8192 macro 817 char *cbuf = xmalloc (BUFSIZE); in print_contents() 836 if (tocopy > BUFSIZE) in print_contents() 837 tocopy = BUFSIZE; in print_contents() 864 char *cbuf = xmalloc (BUFSIZE); in extract_file() 903 if (tocopy > BUFSIZE) in extract_file() 904 tocopy = BUFSIZE; in extract_file() 956 char *buf = xmalloc (BUFSIZE); 1047 if (thistime > BUFSIZE) 1048 thistime = BUFSIZE;
|
| /openbsd-src/usr.bin/openssl/ |
| H A D | dgst.c | 73 #define BUFSIZE 1024*8 macro 346 if ((buf = malloc(BUFSIZE)) == NULL) { in dgst_main() 585 freezero(buf, BUFSIZE); in dgst_main() 608 i = BIO_read(bp, (char *) buf, BUFSIZE); in do_fp() 636 len = BUFSIZE; in do_fp() 643 len = BIO_gets(bp, (char *) buf, BUFSIZE); in do_fp()
|
| /openbsd-src/lib/libcrypto/txt_db/ |
| H A D | txt_db.c | 66 #undef BUFSIZE 67 #define BUFSIZE 512 macro 77 int size = BUFSIZE; in TXT_DB_read() 109 size += BUFSIZE; in TXT_DB_read()
|
| /openbsd-src/regress/lib/libpthread/close/ |
| H A D | close.c | 50 #define BUFSIZE 4096 macro 60 char buffer[BUFSIZE]; in discard()
|
| /openbsd-src/usr.bin/dig/ |
| H A D | dig.h | 35 #define BUFSIZE 512 macro 122 char name_space[BUFSIZE]; 123 char oname_space[BUFSIZE];
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | ar.c | 801 char *cbuf = xmalloc (BUFSIZE); in print_contents() 820 if (tocopy > BUFSIZE) in print_contents() 821 tocopy = BUFSIZE; in print_contents() 848 char *cbuf = xmalloc (BUFSIZE); in extract_file() 887 if (tocopy > BUFSIZE) in extract_file() 888 tocopy = BUFSIZE; in extract_file()
|
| /openbsd-src/usr.bin/nc/ |
| H A D | netcat.c | 69 #define BUFSIZE 16384 macro 1101 unsigned char netinbuf[BUFSIZE]; in readwrite() 1103 unsigned char stdinbuf[BUFSIZE]; in readwrite() 1194 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite() 1207 if (stdinbufpos == BUFSIZE) in readwrite() 1224 if (stdinbufpos < BUFSIZE) in readwrite() 1228 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite() 1252 if (netinbufpos == BUFSIZE) in readwrite() 1273 if (netinbufpos < BUFSIZE) in readwrite() 1322 size_t num = BUFSIZE in drainbuf() [all...] |
| /openbsd-src/usr.sbin/mopd/common/ |
| H A D | common.h | 34 #define BUFSIZE 1600 /* main receive buffer size */ macro
|