/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 34 #define BUFSIZE (CHUNK * 4) macro 41 unsigned char buffer[BUFSIZE], fpattern[BUFSIZE], tmp[BUFSIZE]; in test_partially_valid_iovec() 53 for (i = 0; i < BUFSIZE; i++) in test_partially_valid_iovec() 56 memset(fpattern, 0xff, BUFSIZE); in test_partially_valid_iovec() 57 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZE / CHUNK); in test_partially_valid_iovec() 76 SAFE_READ(1, fd, tmp, BUFSIZE); in test_partially_valid_iovec() 77 if (memcmp(tmp, fpattern, BUFSIZE)) in test_partially_valid_iovec()
|
/third_party/libexif/contrib/aolserver/ |
D | nsexif.c | 40 #define BUFSIZE 1024 macro 45 char buf[BUFSIZE]; in rec_put() 53 snprintf(buf, BUFSIZE, "%f", rec->rec_data.f); in rec_put() 56 snprintf(buf, BUFSIZE, "%g", rec->rec_data.f); in rec_put() 59 snprintf(buf, BUFSIZE, "%ld", rec->rec_data.l); in rec_put() 62 snprintf(buf, BUFSIZE, "%d/%d", rec->rec_data.r.num, in rec_put() 66 snprintf(buf, BUFSIZE, "<Unknown record type '%c'>", rec->rec_type); in rec_put()
|
/third_party/mbedtls/programs/test/ |
D | benchmark.c | 111 #define BUFSIZE 1024 macro 159 ii * BUFSIZE / 1024, \ 161 / (jj * BUFSIZE)); \ 505 unsigned char buf[BUFSIZE]; 621 TIME_AND_TSC("MD5", mbedtls_md5(buf, BUFSIZE, tmp)); in main() 627 TIME_AND_TSC("RIPEMD160", mbedtls_ripemd160(buf, BUFSIZE, tmp)); in main() 633 TIME_AND_TSC("SHA-1", mbedtls_sha1(buf, BUFSIZE, tmp)); in main() 639 TIME_AND_TSC("SHA-256", mbedtls_sha256(buf, BUFSIZE, tmp, 0)); in main() 645 TIME_AND_TSC("SHA-512", mbedtls_sha512(buf, BUFSIZE, tmp, 0)); in main() 658 mbedtls_des3_crypt_cbc(&des3, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf)); in main() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
D | strerror_r.c | 20 #define BUFSIZE 1024 macro 30 char src[BUFSIZE] = "strerror_r_0100"; in strerror_r_0100() 31 int32_t ret = strerror_r(EDOM, src, BUFSIZE); in strerror_r_0100() 42 char src[BUFSIZE] = "strcasecmp_0200"; in strerror_r_0200() 54 char src[BUFSIZE] = "strerror_r_0300"; in strerror_r_0300()
|
/third_party/ltp/testcases/kernel/syscalls/stat/ |
D | stat02.c | 23 #define BUFSIZE (4096) macro 33 { FNAME1, BUFSIZE, BUFSIZE }, 35 { FNAME2, BUFSIZE, 1000 } 79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
|
/third_party/ltp/libs/libltpnewipc/ |
D | libnewipc.c | 27 #define BUFSIZE 1024 macro 31 char buf[BUFSIZE]; in getipckey() 36 safe_getcwd(file, lineno, NULL, buf, BUFSIZE); in getipckey() 54 char buf[BUFSIZE]; in get_used_sysvipc() 58 while (fgets(buf, BUFSIZE, fp) != NULL) in get_used_sysvipc()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/ |
D | 7-1.c | 19 #define BUFSIZE 8 macro 26 ptr = malloc(BUFSIZE); in main() 32 if (mlock(ptr, BUFSIZE) != 0) { in main() 42 result = munlock(ptr, BUFSIZE); in main()
|
/third_party/node/deps/base64/base64/bin/ |
D | base64.c | 7 #define BUFSIZE 1024 * 1024 macro 9 static char buf[BUFSIZE]; 10 static char out[(BUFSIZE * 5) / 3]; // Technically 4/3 of input, but take some margin 22 while ((nread = fread(buf, 1, BUFSIZE, fp)) > 0) { in enc() 54 while ((nread = fread(buf, 1, BUFSIZE, fp)) > 0) { in dec()
|
/third_party/openssl/apps/ |
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()
|
D | dgst.c | 24 #undef BUFSIZE 25 #define BUFSIZE 1024*8 macro 115 buf = app_malloc(BUFSIZE, "I/O buffer"); in dgst_main() 462 OPENSSL_clear_free(buf, BUFSIZE); in dgst_main() 549 size_t len = BUFSIZE; in do_fp() 554 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 587 if (tmplen > BUFSIZE) { in do_fp() 600 if (len > BUFSIZE) { in do_fp() 612 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
/third_party/node/deps/openssl/openssl/apps/ |
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()
|
D | dgst.c | 24 #undef BUFSIZE 25 #define BUFSIZE 1024*8 macro 115 buf = app_malloc(BUFSIZE, "I/O buffer"); in dgst_main() 462 OPENSSL_clear_free(buf, BUFSIZE); in dgst_main() 549 size_t len = BUFSIZE; in do_fp() 554 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 587 if (tmplen > BUFSIZE) { in do_fp() 600 if (len > BUFSIZE) { in do_fp() 612 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
/third_party/ltp/libs/libltpipc/ |
D | libipc.c | 172 #define BUFSIZE 512 macro 181 char buff[BUFSIZE]; in get_used_msgqueues() 188 for (used_queues = -4; fgets(buff, BUFSIZE, f); used_queues++) ; in get_used_msgqueues() 203 char buff[BUFSIZE]; in get_max_msgqueues() 211 if (!fgets(buff, BUFSIZE, f)) { in get_max_msgqueues()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt05.c | 31 #define BUFSIZE 4000 macro 73 char buf[BUFSIZE]; in run() 75 memset(buf, 0x42, BUFSIZE); in run() 80 SAFE_SEND(1, sock, buf, BUFSIZE, MSG_MORE); in run()
|
/third_party/ltp/testcases/cve/ |
D | icmp_rate_limit01.c | 46 #define BUFSIZE 1024 macro 114 char msgbuf[BUFSIZE], errbuf[BUFSIZE]; in count_icmp_errors() 120 .iov_len = BUFSIZE in count_icmp_errors() 131 .msg_controllen = BUFSIZE in count_icmp_errors() 134 memset(errbuf, 0, BUFSIZE); in count_icmp_errors()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/ |
D | 5-1.c | 19 #define BUFSIZE 8 macro 26 ptr = malloc(BUFSIZE); in main() 32 result = mlock(ptr, BUFSIZE); in main()
|
D | 12-1.c | 27 #define BUFSIZE 8 macro 87 ptr = malloc(BUFSIZE); in main() 93 result = mlock(ptr, BUFSIZE); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/ |
D | 12-1.c | 28 #define BUFSIZE 8 macro 88 ptr = malloc(BUFSIZE); in main() 94 result = mlock(ptr, BUFSIZE); in main()
|
/third_party/ltp/testcases/kernel/syscalls/splice/ |
D | splice02.c | 35 #define BUFSIZE 512 macro 121 char buf[BUFSIZE]; in run() 138 size = to_write > BUFSIZE ? BUFSIZE : to_write; in run()
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
D | bpf_prog05.c | 55 #define BUFSIZE 8192 macro 85 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in ensure_ptr_arithmetic() 143 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in load_prog() 207 {&log, .size = BUFSIZE},
|
D | bpf_prog04.c | 31 #define BUFSIZE 8192 macro 64 bpf_init_prog_attr(attr, insn, sizeof(insn), log, BUFSIZE); in load_prog() 119 {&log, .size = BUFSIZE},
|
/third_party/python/Lib/test/libregrtest/ |
D | win_utils.py | 13 BUFSIZE = 8192 variable 54 1, BUFSIZE, BUFSIZE, _winapi.NMPWAIT_WAIT_FOREVER, _winapi.NULL 123 overlapped, _ = _winapi.ReadFile(self.pipe, BUFSIZE, True)
|
/third_party/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto03.c | 34 #define BUFSIZE 1024 macro 37 static unsigned char buf[BUFSIZE]; 61 memset(buf, 0x42, BUFSIZE); in setup() 177 SAFE_SENDTO(1, sock, buf, BUFSIZE, 0, (struct sockaddr *)&addr, in check_vnet_hdr()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | __recvmmsg_time64.c | 77 #define BUFSIZE 200 in recvsss() macro 83 char bufs[VLEN][BUFSIZE + 1]; in recvsss() 103 iovecs[i].iov_len = BUFSIZE; in recvsss()
|
D | recvmmsg.c | 75 #define BUFSIZE 200 in recvsss() macro 81 char bufs[VLEN][BUFSIZE + 1]; in recvsss() 101 iovecs[i].iov_len = BUFSIZE; in recvsss()
|