| /freebsd-13.1/contrib/netbsd-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()
|
| /freebsd-13.1/lib/libc/tests/gen/ |
| H A D | arc4random_test.c | 45 #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 D | pread.c | 46 #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 D | h_fileactions.c | 40 #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 D | t_mmap.c | 105 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 D | t_recvmmsg.c | 55 #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 D | h_pad.c | 48 #define BUFSIZE 1024 macro 53 char buf[BUFSIZE]; in main() 54 char zeros[BUFSIZE]; in main()
|
| /freebsd-13.1/sys/dev/ppbus/ |
| H A D | ppi.c | 64 #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 D | permsfile.c | 41 #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 D | btree_test.c | 23 #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 D | getmntany.c | 42 #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 D | sh.lex.c | 1565 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 D | sh.h | 162 #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 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()
|
| /freebsd-13.1/contrib/netbsd-tests/fs/common/ |
| H A D | fstest_puffs.c | 53 #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 D | write.cc | 260 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 D | txt_db.c | 17 #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 D | netcat.c | 84 #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 D | netcat.c | 95 #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 D | citrus_mapper_zone.c | 96 #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 D | config_p.h | 88 #define BUFSIZE 8192 macro
|
| /freebsd-13.1/contrib/ntp/sntp/m4/ |
| H A D | openldap.m4 | 1011 #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 D | zuncompress.c | 54 #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 D | refclock_gpsvme.c | 25 BUFSIZE = 32, enumerator 98 char buf[BUFSIZE]; in psc_start()
|
| /freebsd-13.1/lib/libc/db/mpool/ |
| H A D | mpool.libtp | 365 *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 ) {
|