| /freebsd-14.2/lib/libc/tests/stdio/ |
| H A D | flushlbuf_test.c | 12 #define BUFSIZE 16 macro 20 char buf[BUFSIZE]; 47 static char buf[BUFSIZE + 1]; in ATF_TC_BODY() 60 while (i < BUFSIZE) in ATF_TC_BODY() 63 ATF_CHECK_EQ(BUFSIZE, i); in ATF_TC_BODY() 84 while (i < BUFSIZE + s.len) in ATF_TC_BODY() 88 ATF_CHECK_EQ(0, buf[BUFSIZE]); in ATF_TC_BODY() 95 ATF_CHECK_EQ(0, buf[BUFSIZE]); in ATF_TC_BODY() 102 static char buf[BUFSIZE]; in ATF_TC_BODY() 115 while (i < BUFSIZE) in ATF_TC_BODY() [all …]
|
| /freebsd-14.2/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-14.2/lib/libc/tests/gen/ |
| H A D | arc4random_test.c | 42 #define BUFSIZE 8 macro 52 char parentbuf[BUFSIZE]; in ATF_TC_BODY() 53 char childbuf[BUFSIZE]; in ATF_TC_BODY() 68 arc4random_buf(page->childbuf, BUFSIZE); in ATF_TC_BODY() 73 arc4random_buf(page->parentbuf, BUFSIZE); in ATF_TC_BODY() 76 ATF_CHECK_MSG(memcmp(page->parentbuf, page->childbuf, BUFSIZE) != 0, in ATF_TC_BODY()
|
| /freebsd-14.2/tests/sys/kern/ |
| H A D | unix_dgram.c | 178 #define BUFSIZE 1024 in ATF_TC_BODY() macro 179 char buf[BUFSIZE], goodboy[BUFSIZE], flooder[BUFSIZE], notconn[BUFSIZE]; in ATF_TC_BODY() 227 ATF_REQUIRE(sendto(two, notconn, BUFSIZE, 0, (struct sockaddr *)&sun, in ATF_TC_BODY() 228 sizeof(sun)) == BUFSIZE); in ATF_TC_BODY() 229 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE); in ATF_TC_BODY() 237 ATF_REQUIRE(send(many[0], flooder, BUFSIZE, 0) == -1); in ATF_TC_BODY() 239 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE); in ATF_TC_BODY() 248 ATF_REQUIRE(send(many[1], goodboy, BUFSIZE, 0) == BUFSIZE); in ATF_TC_BODY() 257 ATF_REQUIRE(sendto(two, notconn, BUFSIZE, 0, (struct sockaddr *)&sun, in ATF_TC_BODY() 258 sizeof(sun)) == BUFSIZE); in ATF_TC_BODY() [all …]
|
| /freebsd-14.2/stand/i386/libi386/ |
| H A D | pread.c | 43 #define BUFSIZE (1*1024) macro 45 #define BUFSIZE (4*1024) macro 48 static char buf[BUFSIZE]; 62 count = (rsize < BUFSIZE ? rsize : BUFSIZE);
|
| /freebsd-14.2/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-14.2/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-14.2/crypto/openssl/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()
|
| H A D | dgst.c | 24 #undef BUFSIZE 25 #define BUFSIZE 1024*8 macro 115 buf = app_malloc(BUFSIZE, "I/O buffer"); in dgst_main() 464 OPENSSL_clear_free(buf, BUFSIZE); in dgst_main() 552 size_t len = BUFSIZE; in do_fp() 557 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 590 if (tmplen > BUFSIZE) { in do_fp() 603 if (len > BUFSIZE) { in do_fp() 615 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
| /freebsd-14.2/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-14.2/sys/dev/ppbus/ |
| H A D | ppi.c | 63 #define BUFSIZE 512 macro 73 char ppi_buffer[BUFSIZE]; 361 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiread() 403 buffer, min(BUFSIZE, uio->uio_resid), &len); in ppiread() 463 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite() 471 while (!error && (len = min(uio->uio_resid, BUFSIZE))) { in ppiwrite() 481 buffer = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); in ppiwrite() 518 while ((len = min(uio->uio_resid, BUFSIZE)) != 0) { in ppiwrite()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | btree_test.c | 24 #define BUFSIZE 256 macro 168 (void) snprintf(why, BUFSIZE, "Unexpectedly found %llu\n", in find_without_index() 176 (void) snprintf(why, BUFSIZE, "Found bad value: %llu\n", *p); in find_without_index() 193 (void) snprintf(why, BUFSIZE, "Didn't find value in tree\n"); in insert_find_remove() 196 (void) snprintf(why, BUFSIZE, "Found (%llu) in tree\n", *p); in insert_find_remove() 205 (void) snprintf(why, BUFSIZE, in insert_find_remove() 248 (void) snprintf(why, BUFSIZE, in drain_tree() 529 char why[BUFSIZE] = {0}; in main()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libspl/os/linux/ |
| H A D | getmntany.c | 42 #define BUFSIZE (MNT_LINE_MAX + 2) macro 44 static __thread char buf[BUFSIZE]; 69 ret = getmntent_r(fp, &mntbuf, buf, BUFSIZE); in _sol_getmntent()
|
| /freebsd-14.2/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 …]
|
| /freebsd-14.2/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-14.2/tools/test/stress2/misc/ |
| H A D | holdcnt05.sh | 124 if (write(fd, buf, BUFSIZE) != BUFSIZE) 222 buf = malloc(BUFSIZE);
|
| H A D | holdcnt02.sh | 116 if (write(fd, buf, BUFSIZE) != BUFSIZE) 214 buf = malloc(BUFSIZE);
|
| H A D | holdcnt03.sh | 117 if (write(fd, buf, BUFSIZE) != BUFSIZE) 213 buf = malloc(BUFSIZE);
|
| H A D | holdcnt04.sh | 125 if (write(fd, buf, BUFSIZE) != BUFSIZE) 223 buf = malloc(BUFSIZE);
|
| H A D | holdcnt0.sh | 135 if (write(fd, buf, BUFSIZE) != BUFSIZE) 233 buf = malloc(BUFSIZE);
|
| H A D | sendfile12.sh | 130 if ((buf = malloc(BUFSIZE)) == NULL) 131 err(1, "malloc(%d), %s:%d", BUFSIZE, __FILE__, __LINE__); 138 if ((n = read(msgsock, buf, BUFSIZE)) < 0)
|
| H A D | sendfile9.sh | 138 if ((buf = malloc(BUFSIZE)) == NULL) 139 err(1, "malloc(%d), %s:%d", BUFSIZE, __FILE__, __LINE__); 145 if ((n = read(msgsock, buf, BUFSIZE)) < 0)
|
| /freebsd-14.2/crypto/openssl/crypto/txt_db/ |
| H A D | txt_db.c | 17 #undef BUFSIZE 18 #define BUFSIZE 512 macro 25 int size = BUFSIZE; in TXT_DB_read() 57 size += BUFSIZE; in TXT_DB_read()
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | write.cc | 275 const ssize_t BUFSIZE = 9; in TEST_F() local 278 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 289 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F() 295 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F() 302 const ssize_t BUFSIZE = 9; in TEST_F() local 306 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 331 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F() 339 const ssize_t BUFSIZE = 9; in TEST_F() local 342 const char CONTENTS[BUFSIZE] = "abcdefgh"; in TEST_F() 349 expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, CONTENTS); in TEST_F() [all …]
|