Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c34 #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/
Dnsexif.c40 #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/
Dbenchmark.c111 #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/
Dstrerror_r.c20 #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/libs/libltpnewipc/
Dlibnewipc.c27 #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/
Dstat02.c23 #define BUFSIZE (4096) macro
33 { FNAME1, BUFSIZE, BUFSIZE },
35 { FNAME2, BUFSIZE, 1000 }
79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
D7-1.c19 #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/openssl/openssl/apps/
Dmac.c20 #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()
Ddgst.c24 #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()
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/
Dmac.c20 #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()
Ddgst.c24 #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/
Dlibipc.c172 #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/cve/
Dicmp_rate_limit01.c46 #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/setsockopt/
Dsetsockopt05.c29 #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/kernel/security/dirtypipe/
Ddirtypipe.c49 #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/
D5-1.c19 #define BUFSIZE 8 macro
26 ptr = malloc(BUFSIZE); in main()
32 result = mlock(ptr, BUFSIZE); in main()
D12-1.c27 #define BUFSIZE 8 macro
87 ptr = malloc(BUFSIZE); in main()
93 result = mlock(ptr, BUFSIZE); in main()
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice02.c35 #define BUFSIZE 512 macro
121 char buf[BUFSIZE]; in run()
138 size = to_write > BUFSIZE ? BUFSIZE : to_write; in run()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/
D12-1.c28 #define BUFSIZE 8 macro
88 ptr = malloc(BUFSIZE); in main()
94 result = mlock(ptr, BUFSIZE); in main()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c32 #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/Lib/test/libregrtest/
Dwin_utils.py13 BUFSIZE = 8192 variable
54 1, BUFSIZE, BUFSIZE, _winapi.NMPWAIT_WAIT_FOREVER, _winapi.NULL
123 overlapped, _ = _winapi.ReadFile(self.pipe, BUFSIZE, True)
/third_party/musl/libc-test/src/functionalext/supplement/network/
Drecvmmsg.c75 #define BUFSIZE 200 in recvsss() macro
81 char bufs[VLEN][BUFSIZE + 1]; in recvsss()
101 iovecs[i].iov_len = BUFSIZE; in recvsss()
D__recvmmsg_time64.c77 #define BUFSIZE 200 in recvsss() macro
83 char bufs[VLEN][BUFSIZE + 1]; in recvsss()
103 iovecs[i].iov_len = BUFSIZE; in recvsss()
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd06.c48 #define BUFSIZE 1024 macro
59 static char buf[BUFSIZE]; in async_write()
61 memset(buf, 1, BUFSIZE); in async_write()
/third_party/toybox/toys/pending/
Dtelnetd.c40 #define BUFSIZE 4*1024 macro
47 char buff1[BUFSIZE], buff2[BUFSIZE];
313 if (tm->pty_fd > 0 && tm->buff1_avail < BUFSIZE) FD_SET(tm->pty_fd, &rd); in telnetd_main()
314 if (tm->new_fd >= 0 && tm->buff2_avail < BUFSIZE) FD_SET(tm->new_fd, &rd); in telnetd_main()
350 BUFSIZE-tm->buff1_avail)) <= 0) break; in telnetd_main()
358 BUFSIZE-tm->buff2_avail)) <= 0) { in telnetd_main()

1234