Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 25 of 49) sorted by relevance

12

/freebsd-13.1/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_popen.c55 #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()
/freebsd-13.1/lib/libc/tests/gen/
H A Darc4random_test.c45 #define BUFSIZE 8 macro
55 char parentbuf[BUFSIZE]; in ATF_TC_BODY()
56 char childbuf[BUFSIZE]; in ATF_TC_BODY()
71 arc4random_buf(page->childbuf, BUFSIZE); in ATF_TC_BODY()
76 arc4random_buf(page->parentbuf, BUFSIZE); in ATF_TC_BODY()
79 ATF_CHECK_MSG(memcmp(page->parentbuf, page->childbuf, BUFSIZE) != 0, in ATF_TC_BODY()
/freebsd-13.1/stand/i386/libi386/
H A Dpread.c46 #define BUFSIZE (1*1024) macro
48 #define BUFSIZE (4*1024) macro
51 static char buf[BUFSIZE];
65 count = (rsize < BUFSIZE ? rsize : BUFSIZE);
/freebsd-13.1/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_fileactions.c40 #define BUFSIZE 16 macro
53 char buf[BUFSIZE]; in main()
70 if (read(lowfd, buf, BUFSIZE) != -1 || errno != EBADF) { in main()
76 if (read(lowfd + 1, buf, BUFSIZE) != -1 || errno != EBADF) { in main()
82 if (write(lowfd + 2, buf, BUFSIZE) <= 0) { in main()
88 if (write(lowfd + 3, buf, BUFSIZE) <= 0) { in main()
/freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mmap.c105 char buf[BUFSIZE]; in testloan()
106 char backup[BUFSIZE]; in testloan()
112 val = BUFSIZE; in testloan()
115 (void)memcpy(backup, vp, BUFSIZE); in testloan()
120 val = BUFSIZE; in testloan()
125 val = BUFSIZE; in testloan()
139 (void)memset(vp2, pat, BUFSIZE); in testloan()
247 char buf[BUFSIZE]; in ATF_TC_BODY()
267 ATF_REQUIRE(munmap(vp, BUFSIZE) == 0); in ATF_TC_BODY()
280 ATF_REQUIRE(munmap(vp, BUFSIZE) == 0); in ATF_TC_BODY()
[all …]
H A Dt_recvmmsg.c55 #define BUFSIZE 65536 macro
82 buf = malloc(BUFSIZE); in ATF_TC_BODY()
85 mmsgcnt = BUFSIZE / sizeof(DGRAM); in ATF_TC_BODY()
/freebsd-13.1/contrib/netbsd-tests/dev/audio/
H A Dh_pad.c48 #define BUFSIZE 1024 macro
53 char buf[BUFSIZE]; in main()
54 char zeros[BUFSIZE]; in main()
/freebsd-13.1/sys/dev/ppbus/
H A Dppi.c64 #define BUFSIZE 512 macro
74 char ppi_buffer[BUFSIZE];
368 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiread()
410 buffer, min(BUFSIZE, uio->uio_resid), &len); in ppiread()
470 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite()
478 while (!error && (len = min(uio->uio_resid, BUFSIZE))) { in ppiwrite()
488 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite()
525 while ((len = min(uio->uio_resid, BUFSIZE)) != 0) { in ppiwrite()
/freebsd-13.1/contrib/opie/
H A Dpermsfile.c41 #define BUFSIZE 128 macro
45 static char buf[BUFSIZE], buf2[8];
159 if (fgets(buf, BUFSIZE, fh) == NULL)
161 buf[BUFSIZE] = 0;
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/btree_test/
H A Dbtree_test.c23 #define BUFSIZE 256 macro
167 snprintf(why, BUFSIZE, "Unexpectedly found %llu\n", in find_without_index()
175 snprintf(why, BUFSIZE, "Found bad value: %llu\n", *p); in find_without_index()
192 snprintf(why, BUFSIZE, "Didn't find value in tree\n"); in insert_find_remove()
195 snprintf(why, BUFSIZE, "Found (%llu) in tree\n", *p); in insert_find_remove()
204 snprintf(why, BUFSIZE, "Found removed value (%llu)\n", *p); in insert_find_remove()
245 snprintf(why, BUFSIZE, "Found in avl: %llu\n", randval); in drain_tree()
526 char why[BUFSIZE] = {0}; in main()
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgetmntany.c42 #define BUFSIZE (MNT_LINE_MAX + 2) macro
44 __thread char buf[BUFSIZE];
69 ret = getmntent_r(fp, &mntbuf, buf, BUFSIZE); in _sol_getmntent()
/freebsd-13.1/contrib/tcsh/
H A Dsh.lex.c1565 char cbuf[BUFSIZE + 1]; in wide_read()
1681 off = (int) feobp % BUFSIZE; in bgetc()
1682 buf = (int) feobp / BUFSIZE; in bgetc()
1684 roomleft = BUFSIZE - off; in bgetc()
1693 off = (int) feobp % BUFSIZE; in bgetc()
1694 buf = (int) feobp / BUFSIZE; in bgetc()
1696 roomleft = BUFSIZE - off; in bgetc()
1709 ch = fbuf[(int) fseekp / BUFSIZE][(int) fseekp % BUFSIZE]; in bgetc()
1713 ch = fbuf[(int) fseekp / BUFSIZE][(int) fseekp % BUFSIZE]; in bgetc()
1734 fseekp -= BUFSIZE * sb; in bfree()
[all …]
H A Dsh.h162 #ifdef BUFSIZE
163 # if BUFSIZE < 4096
164 # undef BUFSIZE
165 # define BUFSIZE 4096 /* buffer size should be no less than this */ macro
168 # define BUFSIZE 4096 macro
175 # define INBUFSIZE 2*BUFSIZE /* Num input characters on the command line */
796 unsigned char Bfclens[BUFSIZE + 1];
/freebsd-13.1/crypto/openssl/apps/
H A Ddgst.c24 #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()
/freebsd-13.1/contrib/netbsd-tests/fs/common/
H A Dfstest_puffs.c53 #define BUFSIZE (128*1024) macro
106 char buf[BUFSIZE]; in readshovel()
125 assert(phdr->pth_framelen < BUFSIZE); in readshovel()
160 char buf[BUFSIZE]; in writeshovel()
182 assert(toread < BUFSIZE); in writeshovel()
/freebsd-13.1/tests/sys/fs/fusefs/
H A Dwrite.cc260 const ssize_t BUFSIZE = 9; in TEST_F() local
263 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F()
274 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F()
280 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F()
287 const ssize_t BUFSIZE = 9; in TEST_F() local
291 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F()
318 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F()
326 const ssize_t BUFSIZE = 9; in TEST_F() local
329 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F()
336 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F()
[all …]
/freebsd-13.1/crypto/openssl/crypto/txt_db/
H A Dtxt_db.c17 #undef BUFSIZE
18 #define BUFSIZE 512 macro
26 int size = BUFSIZE; in TXT_DB_read()
58 size += BUFSIZE; in TXT_DB_read()
/freebsd-13.1/contrib/netcat/
H A Dnetcat.c84 #define BUFSIZE 16384 macro
830 unsigned char netinbuf[BUFSIZE]; in readwrite()
832 unsigned char stdinbuf[BUFSIZE]; in readwrite()
941 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
951 if (stdinbufpos == BUFSIZE) in readwrite()
964 if (stdinbufpos < BUFSIZE) in readwrite()
968 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite()
982 if (netinbufpos == BUFSIZE) in readwrite()
999 if (netinbufpos < BUFSIZE) in readwrite()
1045 size_t num = BUFSIZE - *bufpos; in fillbuf()
/freebsd-13.1/crypto/openssh/regress/
H A Dnetcat.c95 #define BUFSIZE 16384 macro
787 unsigned char netinbuf[BUFSIZE]; in readwrite()
789 unsigned char stdinbuf[BUFSIZE]; in readwrite()
888 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
898 if (stdinbufpos == BUFSIZE) in readwrite()
911 if (stdinbufpos < BUFSIZE) in readwrite()
915 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite()
929 if (netinbufpos == BUFSIZE) in readwrite()
946 if (netinbufpos < BUFSIZE) in readwrite()
987 size_t num = BUFSIZE - *bufpos; in fillbuf()
/freebsd-13.1/lib/libiconv_modules/mapper_zone/
H A Dcitrus_mapper_zone.c96 #define BUFSIZE 20 macro
104 char buf[BUFSIZE + 1]; in get_imm()
107 for (i = 0; i < BUFSIZE; i++) { in get_imm()
/freebsd-13.1/bin/csh/
H A Dconfig_p.h88 #define BUFSIZE 8192 macro
/freebsd-13.1/contrib/ntp/sntp/m4/
H A Dopenldap.m41011 #define BUFSIZE (sizeof(struct hostent)+10)]], [[struct hostent hent; char buffer[BUFSIZE];
1012 int bufsize=BUFSIZE;int h_errno;
1020 #define BUFSIZE (sizeof(struct hostent)+10)]], [[struct hostent hent;struct hostent *rhent;
1021 char buffer[BUFSIZE];
1022 int bufsize=BUFSIZE;int h_errno;
1055 #define BUFSIZE (sizeof(struct hostent)+10)]], [[struct hostent hent; char buffer[BUFSIZE];
1058 int bufsize=BUFSIZE;int h_errno;
1066 #define BUFSIZE (sizeof(struct hostent)+10)]], [[struct hostent hent;
1067 struct hostent *rhent; char buffer[BUFSIZE];
1070 int bufsize=BUFSIZE;int h_errno;
/freebsd-13.1/usr.bin/gzip/
H A Dzuncompress.c54 #define BUFSIZE (64 * 1024) macro
139 buf = malloc(BUFSIZE); in zuncompress()
150 while ((bin = fread(buf, 1, BUFSIZE, in)) != 0) { in zuncompress()
/freebsd-13.1/contrib/ntp/ntpd/
H A Drefclock_gpsvme.c25 BUFSIZE = 32, enumerator
98 char buf[BUFSIZE]; in psc_start()
/freebsd-13.1/lib/libc/db/mpool/
H A Dmpool.libtp365 *len = BUFSIZE;
566 buf_fids[fid].npages = ( sbuf.st_size / BUFSIZE );
588 nbytes = write(fd, buf_table[bhp-bufhdr_table], BUFSIZE);
595 } else if ( nbytes != BUFSIZE ) {
596 error_log1 ("Short write: %d bytes of %d\n", nbytes, BUFSIZE );
656 *len = read(fd, buf_table[bhp-bufhdr_table], BUFSIZE);
682 } else if ( *len < BUFSIZE ) {

12