/third_party/mbedtls/programs/test/ |
H A D | benchmark.c | 105 #define BUFSIZE 1024 macro 154 ii * BUFSIZE / 1024, \ 156 / (jj * BUFSIZE)); \ 502 unsigned char buf[BUFSIZE]; 633 TIME_AND_TSC("MD5", mbedtls_md5(buf, BUFSIZE, tmp)); in main() 639 TIME_AND_TSC("RIPEMD160", mbedtls_ripemd160(buf, BUFSIZE, tmp)); in main() 645 TIME_AND_TSC("SHA-1", mbedtls_sha1(buf, BUFSIZE, tmp)); in main() 651 TIME_AND_TSC("SHA-256", mbedtls_sha256(buf, BUFSIZE, tmp, 0)); in main() 657 TIME_AND_TSC("SHA-512", mbedtls_sha512(buf, BUFSIZE, tmp, 0)); in main() 662 TIME_AND_TSC("SHA3-224", mbedtls_sha3(MBEDTLS_SHA3_224, buf, BUFSIZE, tm in main() [all...] |
/third_party/ltp/testcases/kernel/syscalls/writev/ |
H A 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/ |
H A 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/musl/libc-test/src/functionalext/supplement/string/ |
H A 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/open_posix_testsuite/conformance/interfaces/munlock/ |
H A 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()
|
H A D | 10-1.c | 32 #define BUFSIZE 8 macro 47 result = munlock(page_ptr, BUFSIZE); in main()
|
/third_party/ltp/libs/libltpnewipc/ |
H A 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/kernel/syscalls/stat/ |
H A D | stat02.c | 23 #define BUFSIZE (4096) macro 32 /* Write and verify BUFSIZE byte chunks */ 33 { FNAME1, BUFSIZE, BUFSIZE }, 35 { FNAME2, BUFSIZE, 1000 } 79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | mac.c | 20 #undef BUFSIZE macro 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 macro 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() 551 size_t len = BUFSIZE; in do_fp() 556 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 589 if (tmplen > BUFSIZE) { in do_fp() 602 if (len > BUFSIZE) { in do_fp() 614 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
/third_party/openssl/apps/ |
H A D | mac.c | 20 #undef BUFSIZE macro 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 macro 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() 551 size_t len = BUFSIZE; in do_fp() 556 i = BIO_read(bp, (char *)buf, BUFSIZE); in do_fp() 589 if (tmplen > BUFSIZE) { in do_fp() 602 if (len > BUFSIZE) { in do_fp() 614 len = BIO_gets(bp, (char *)buf, BUFSIZE); in do_fp()
|
/third_party/ltp/libs/libltpipc/ |
H A 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/open_posix_testsuite/conformance/interfaces/mlock/ |
H A D | 5-1.c | 19 #define BUFSIZE 8 macro 26 ptr = malloc(BUFSIZE); in main() 32 result = mlock(ptr, BUFSIZE); in main()
|
H A D | 12-1.c | 27 #define BUFSIZE 8 macro 87 ptr = malloc(BUFSIZE); in main() 93 result = mlock(ptr, BUFSIZE); in main()
|
H A D | 8-1.c | 32 #define BUFSIZE 8 macro 47 result = mlock(page_ptr, BUFSIZE); in main()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
H A D | setsockopt05.c | 29 #define BUFSIZE 4000 macro 63 char buf[BUFSIZE]; in run() 65 memset(buf, 0x42, BUFSIZE); in run() 70 SAFE_SEND(1, sock, buf, BUFSIZE, MSG_MORE); in run()
|
/third_party/ltp/testcases/cve/ |
H A D | icmp_rate_limit01.c | 46 #define BUFSIZE 1024 macro 106 char msgbuf[BUFSIZE], errbuf[BUFSIZE]; in count_icmp_errors() 112 .iov_len = BUFSIZE in count_icmp_errors() 123 .msg_controllen = BUFSIZE in count_icmp_errors() 126 memset(errbuf, 0, BUFSIZE); in count_icmp_errors()
|
/third_party/ltp/testcases/kernel/syscalls/splice/ |
H A 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/security/dirtypipe/ |
H A D | dirtypipe.c | 49 #define BUFSIZE 4096 macro 72 char buffer[BUFSIZE]; in prepare_pipe() 143 memset(pattern_buf, 0xff, BUFSIZE); in setup() 144 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZE / CHUNK); in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/ |
H A 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/sendto/ |
H A D | sendto03.c | 32 #define BUFSIZE 1024 macro 35 static unsigned char buf[BUFSIZE]; 51 memset(buf, 0x42, BUFSIZE); in setup() 167 SAFE_SENDTO(1, sock, buf, BUFSIZE, 0, (struct sockaddr *)&addr, in check_vnet_hdr()
|
/third_party/python/Tools/demo/ |
H A D | rpython.py | 12 BUFSIZE = 1024 variable 31 data = s.recv(BUFSIZE)
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
H A D | bpf_prog05.c | 83 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in ensure_ptr_arithmetic() 141 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in load_prog() 205 {&log, .size = BUFSIZE},
|
/third_party/ltp/testcases/kernel/syscalls/eventfd/ |
H A D | eventfd06.c | 48 #define BUFSIZE 1024 macro 59 static char buf[BUFSIZE]; in async_write() 61 memset(buf, 1, BUFSIZE); in async_write()
|