| /freebsd-12.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-12.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-12.1/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
| H A D | h_fileactions.c | 40 #define BUFSIZE 16 macro 52 char buf[BUFSIZE]; in main() 57 if (read(3, buf, BUFSIZE) != -1 || errno != EBADF) { in main() 63 if (read(4, buf, BUFSIZE) != -1 || errno != EBADF) { in main() 69 if (write(5, buf, BUFSIZE) <= 0) { in main() 75 if (write(6, buf, BUFSIZE) <= 0) { in main()
|
| /freebsd-12.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-12.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-12.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-12.1/sys/dev/ppbus/ |
| H A D | ppi.c | 64 #define BUFSIZE 512 macro 74 char ppi_buffer[BUFSIZE]; 369 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiread() 412 buffer, min(BUFSIZE, uio->uio_resid), &len); in ppiread() 472 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite() 480 while (!error && (len = min(uio->uio_resid, BUFSIZE))) { in ppiwrite() 490 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite() 527 while ((len = min(uio->uio_resid, BUFSIZE)) != 0) { in ppiwrite()
|
| /freebsd-12.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-12.1/release/picobsd/tinyware/oinit/ |
| H A D | oinit.c | 59 #define BUFSIZE 1024 macro 70 char cwd[BUFSIZE]; 135 getcwd(cwd,BUFSIZE); in cd() 146 if(getcwd(cwd,BUFSIZE)==NULL) return(-1); in pwd() 507 char buf[BUFSIZE]; in shell() 516 res=read(fd,buf,BUFSIZE); in shell() 526 getcwd(cwd,BUFSIZE); in shell() 532 memset(buf,0,BUFSIZE); in shell() 535 if(fgets(buf,BUFSIZE-1,stdin)==NULL) continue; in shell() 935 getcwd(cwd,BUFSIZE); in main()
|
| /freebsd-12.1/crypto/openssl/apps/ |
| H A D | dgst.c | 23 #undef BUFSIZE 24 #define BUFSIZE 1024*8 macro 96 buf = app_malloc(BUFSIZE, "I/O buffer"); in dgst_main() 403 OPENSSL_clear_free(buf, BUFSIZE); in dgst_main() 425 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 453 len = BUFSIZE; in do_fp() 460 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
| /freebsd-12.1/contrib/tcsh/ |
| H A D | sh.lex.c | 1552 char cbuf[BUFSIZE + 1]; in wide_read() 1668 off = (int) feobp % BUFSIZE; in bgetc() 1669 buf = (int) feobp / BUFSIZE; in bgetc() 1671 roomleft = BUFSIZE - off; in bgetc() 1680 off = (int) feobp % BUFSIZE; in bgetc() 1681 buf = (int) feobp / BUFSIZE; in bgetc() 1683 roomleft = BUFSIZE - off; in bgetc() 1696 ch = fbuf[(int) fseekp / BUFSIZE][(int) fseekp % BUFSIZE]; in bgetc() 1700 ch = fbuf[(int) fseekp / BUFSIZE][(int) fseekp % BUFSIZE]; in bgetc() 1721 fseekp -= BUFSIZE * sb; in bfree() [all …]
|
| H A D | sh.h | 163 #ifdef BUFSIZE 164 # if BUFSIZE < 4096 165 # undef BUFSIZE 166 # define BUFSIZE 4096 /* buffer size should be no less than this */ macro 169 # define BUFSIZE 4096 macro 176 # define INBUFSIZE 2*BUFSIZE /* Num input characters on the command line */ 787 unsigned char Bfclens[BUFSIZE + 1];
|
| /freebsd-12.1/tests/sys/fs/fusefs/ |
| H A D | write.cc | 243 const ssize_t BUFSIZE = 9; in TEST_F() local 246 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 257 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F() 263 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F() 270 const ssize_t BUFSIZE = 9; in TEST_F() local 274 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 301 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F() 307 const ssize_t BUFSIZE = 9; in TEST_F() local 310 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 317 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F() [all …]
|
| /freebsd-12.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-12.1/contrib/netcat/ |
| H A D | netcat.c | 80 #define BUFSIZE 16384 macro 799 unsigned char netinbuf[BUFSIZE]; in readwrite() 801 unsigned char stdinbuf[BUFSIZE]; in readwrite() 900 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite() 910 if (stdinbufpos == BUFSIZE) in readwrite() 923 if (stdinbufpos < BUFSIZE) in readwrite() 927 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite() 941 if (netinbufpos == BUFSIZE) in readwrite() 958 if (netinbufpos < BUFSIZE) in readwrite() 999 size_t num = BUFSIZE - *bufpos; in fillbuf()
|
| /freebsd-12.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-12.1/crypto/openssh/regress/ |
| H A D | netcat.c | 88 #define BUFSIZE 16384 macro 778 unsigned char netinbuf[BUFSIZE]; in readwrite() 780 unsigned char stdinbuf[BUFSIZE]; in readwrite() 879 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite() 889 if (stdinbufpos == BUFSIZE) in readwrite() 902 if (stdinbufpos < BUFSIZE) in readwrite() 906 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite() 920 if (netinbufpos == BUFSIZE) in readwrite() 937 if (netinbufpos < BUFSIZE) in readwrite() 978 size_t num = BUFSIZE - *bufpos; in fillbuf()
|
| /freebsd-12.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-12.1/contrib/binutils/binutils/ |
| H A D | ar.c | 782 char *cbuf = xmalloc (BUFSIZE); in print_contents() 801 if (tocopy > BUFSIZE) in print_contents() 802 tocopy = BUFSIZE; in print_contents() 834 char *cbuf = xmalloc (BUFSIZE); in extract_file() 869 if (tocopy > BUFSIZE) in extract_file() 870 tocopy = BUFSIZE; in extract_file()
|
| /freebsd-12.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-12.1/usr.bin/colldef/ |
| H A D | common.h | 6 #define BUFSIZE 80 macro
|
| /freebsd-12.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-12.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 ) {
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | refclock_gpsvme.c | 25 BUFSIZE = 32, enumerator 98 char buf[BUFSIZE]; in psc_start()
|