Home
last modified time | relevance | path

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

1234

/third_party/gettext/libtextstyle/gnulib-local/lib/
Dfd-ostream.oo.c48 #define BUFSIZE 4096 macro
87 memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); in write_mem()
94 if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) in write_mem()
97 stream->avail = BUFSIZE; in write_mem()
105 memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); in write_mem()
116 memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); in write_mem()
119 if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) in write_mem()
123 while (len >= BUFSIZE) in write_mem()
125 if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) in write_mem()
128 data = (char *) data + BUFSIZE; in write_mem()
[all …]
/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/pixman/test/
Dprng-test.c57 #define BUFSIZE (8 * 1024 * 1024) macro
65 uint8_t *buf = aligned_malloc (16, BUFSIZE + 1); in bench()
70 prng_randmemset_r (&prng, buf, BUFSIZE, 0); in bench()
73 (double)BUFSIZE * N / 1000000. / (t2 - t1)); in bench()
77 prng_randmemset_r (&prng, buf + 1, BUFSIZE, 0); in bench()
80 (double)BUFSIZE * N / 1000000. / (t2 - t1)); in bench()
85 prng_randmemset_r (&prng, buf, BUFSIZE, RANDMEMSET_MORE_00_AND_FF); in bench()
89 (double)BUFSIZE * N / 1000000. / (t2 - t1)); in bench()
94 prng_randmemset_r (&prng, buf + 1, BUFSIZE, RANDMEMSET_MORE_00_AND_FF); in bench()
98 (double)BUFSIZE * N / 1000000. / (t2 - t1)); in bench()
Dlowlevel-blt-bench.c46 #define BUFSIZE (WIDTH * HEIGHT * 4) macro
70 memcpy (dst, src, BUFSIZE - 64); in bench_memcpy()
71 memcpy (src, dst, BUFSIZE - 64); in bench_memcpy()
72 n += 4 * (BUFSIZE - 64); in bench_memcpy()
83 memcpy ((char *)dst + 1, (char *)src + x, BUFSIZE - 64); in bench_memcpy()
84 memcpy ((char *)src + 1, (char *)dst + x, BUFSIZE - 64); in bench_memcpy()
85 n -= 4 * (BUFSIZE - 64); in bench_memcpy()
480 memcpy (dst, src, BUFSIZE); in bench_composite()
481 memcpy (src, dst, BUFSIZE); in bench_composite()
502 memcpy (dst, src, BUFSIZE); in bench_composite()
[all …]
/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/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/mbedtls/programs/test/
Dbenchmark.c120 #define BUFSIZE 1024 macro
168 ii * BUFSIZE / 1024, \
170 / ( jj * BUFSIZE ) ); \
533 unsigned char buf[BUFSIZE];
648 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in main()
653 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in main()
658 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in main()
663 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in main()
668 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in main()
680 mbedtls_des3_crypt_cbc( &des3, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
[all …]
/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()
D10-1.c32 #define BUFSIZE 8 macro
47 result = munlock(page_ptr, BUFSIZE); in main()
/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/kernel/syscalls/setsockopt/
Dsetsockopt05.c31 #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/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/cve/
Dicmp_rate_limit01.c46 #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/boost/libs/graph/test/
Dtypestr.hpp31 std::size_t const BUFSIZE = 8192; in typestr() local
32 std::size_t n = BUFSIZE; in typestr()
33 char buf[BUFSIZE]; in typestr()
/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/bpf/
Dbpf_prog05.c55 #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},
Dbpf_prog04.c31 #define BUFSIZE 8192 macro
64 bpf_init_prog_attr(attr, insn, sizeof(insn), log, BUFSIZE); in load_prog()
119 {&log, .size = BUFSIZE},
/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/libcoap/examples/contiki/
Dcoap-observer.c148 #define BUFSIZE 20 in PROCESS_THREAD() macro
149 unsigned char _buf[BUFSIZE]; in PROCESS_THREAD()
154 buflen = BUFSIZE; in PROCESS_THREAD()
155 #undef BUFSIZE in PROCESS_THREAD()
/third_party/glib/tests/
Dgio-test.c50 #define BUFSIZE 5000 /* Larger than the circular buffer in macro
130 char buf[BUFSIZE]; in recv_message()
171 g_assert_cmpint (nbytes, <, BUFSIZE); in recv_message()
172 g_assert (nbytes >= 0 && nbytes < BUFSIZE); in recv_message()
374 char buf[BUFSIZE]; in main()
392 buflen = rand() % BUFSIZE; in main()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c34 #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/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)

1234