Home
last modified time | relevance | path

Searched refs:CHUNK (Results 1 – 25 of 40) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/readv/
Dreadv02.c56 #define CHUNK 64 macro
67 {(buf2 + CHUNK), CHUNK},
68 {(buf2 + CHUNK * 2), CHUNK},
71 {(buf2 + CHUNK * 3), G_1},
72 {(buf2 + CHUNK * 4), G_1},
73 {(buf2 + CHUNK * 5), G_1},
76 {(caddr_t) - 1, CHUNK},
77 {(buf2 + CHUNK * 6), CHUNK},
78 {(buf2 + CHUNK * 8), CHUNK},
81 {(buf2 + CHUNK * 9), CHUNK}
[all …]
Dreadv01.c39 #define CHUNK 64 macro
44 static char buf[CHUNK];
47 {buf, CHUNK},
76 memset(rd_iovec[0].iov_base, 0x00, CHUNK); in main()
78 if (readv(fd, rd_iovec, 3) != CHUNK) { in main()
80 "followed by two NULL vectors", CHUNK); in main()
85 for (i = 0; i < CHUNK; i++) { in main()
94 "followed by two NULL vectors", CHUNK); in main()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c42 #define CHUNK 64 macro
43 #define BUFSIZE (CHUNK * 4)
53 { buffer, CHUNK }, in test_partially_valid_iovec()
54 { bad_addr, CHUNK }, in test_partially_valid_iovec()
55 { buffer + CHUNK, CHUNK }, in test_partially_valid_iovec()
56 { buffer + CHUNK * 2, CHUNK }, in test_partially_valid_iovec()
63 buffer[i] = i % (CHUNK - 1); in test_partially_valid_iovec()
66 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZE / CHUNK); in test_partially_valid_iovec()
135 test_partially_valid_iovec(CHUNK + 1); in test_writev()
Dwritev01.c30 #define CHUNK 64 macro
37 static char buf[CHUNK * 4];
41 { buf + CHUNK, CHUNK },
42 { buf + CHUNK * 2, CHUNK },
46 { buf, CHUNK },
50 { buf, CHUNK },
51 { buf + CHUNK, 0 },
100 .exp_ret = CHUNK,
Dwritev02.c64 #define CHUNK K_1 /* single chunk */ macro
74 {(caddr_t) - 1, CHUNK},
158 if ((nbytes = read(fd[0], buf_list[0], CHUNK)) != CHUNK) { in main()
162 if (memcmp(buf_list[0], buf_list[1], CHUNK) in main()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev01.c33 #define CHUNK 64 macro
35 static char buf[CHUNK];
36 static char initbuf[CHUNK * 2];
37 static char preadbuf[CHUNK];
41 {buf, CHUNK},
50 {1, 0, CHUNK},
51 {2, 0, CHUNK},
52 {1, CHUNK/2, CHUNK},
100 memset(&buf, 0x61, CHUNK); in setup()
Dpwritev02.c44 #define CHUNK 64 macro
51 static char buf[CHUNK];
58 {buf, CHUNK},
62 {(char *)-1, CHUNK},
/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv01.c32 #define CHUNK 64 macro
35 static char buf[CHUNK];
38 {buf, CHUNK},
48 {1, 0, CHUNK, 'a'},
49 {2, 0, CHUNK, 'a'},
50 {1, CHUNK*3/2, CHUNK/2, 'b'}
60 memset(vec, 0x00, CHUNK); in verify_preadv()
98 char buf[CHUNK]; in setup()
Dpreadv02.c46 #define CHUNK 64 macro
54 static char buf[CHUNK];
61 {buf, CHUNK},
65 {(char *)-1, CHUNK},
/external/zlib/src/examples/
Dzpipe.c28 #define CHUNK 16384 macro
41 unsigned char in[CHUNK]; in def()
42 unsigned char out[CHUNK]; in def()
54 strm.avail_in = fread(in, 1, CHUNK, source); in def()
65 strm.avail_out = CHUNK; in def()
69 have = CHUNK - strm.avail_out; in def()
97 unsigned char in[CHUNK]; in inf()
98 unsigned char out[CHUNK]; in inf()
112 strm.avail_in = fread(in, 1, CHUNK, source); in inf()
123 strm.avail_out = CHUNK; in inf()
[all …]
Dgzjoin.c75 #define CHUNK 32768 /* must be a power of two and fit in unsigned */ macro
107 in->buf = malloc(CHUNK); in bopen()
131 len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left); in bload()
135 } while (len != 0 && in->left < CHUNK); in bload()
175 if (skip > CHUNK) { in bskip()
178 left = skip & (CHUNK - 1); in bskip()
299 junk = malloc(CHUNK); in gzcopy()
327 strm.avail_out = CHUNK; in gzcopy()
338 len += CHUNK - strm.avail_out; in gzcopy()
Dzran.c64 #define CHUNK 16384 /* file input buffer size */ macro
151 unsigned char input[CHUNK]; in build_index()
172 strm.avail_in = fread(input, 1, CHUNK, in); in build_index()
255 unsigned char input[CHUNK]; in extract()
315 strm.avail_in = fread(input, 1, CHUNK, in); in extract()
360 unsigned char buf[CHUNK]; in main()
396 len = extract(in, index, offset, buf, CHUNK); in main()
Dgzappend.c89 #define CHUNK (1U << LGCHUNK) macro
272 gz.buf = malloc(CHUNK); in gzscan()
404 in = malloc(CHUNK); in gztack()
405 out = malloc(CHUNK); in gztack()
411 len = read(fd, in, CHUNK); in gztack()
424 strm->avail_out = CHUNK; in gztack()
427 left = CHUNK - strm->avail_out; in gztack()
429 len = write(gd, out + CHUNK - strm->avail_out - left, left); in gztack()
/external/ltp/testcases/kernel/fs/ftest/
Dftest01.c256 #define CHUNK(i) ((i) * csize) macro
338 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
342 me, CHUNK(chunk), errno); in dotest()
348 me, CHUNK(chunk), errno); in dotest()
355 if (CHUNK(chunk) >= file_max) { in dotest()
369 me, CHUNK(chunk), val, count, in dotest()
402 me, CHUNK(chunk), val, count, in dotest()
429 me, CHUNK(chunk), errno); in dotest()
442 me, CHUNK(chunk), xfr, errno); in dotest()
444 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest05.c259 #define CHUNK(i) (((off64_t)i) * csize) macro
335 if (lseek64(fd, CHUNK(chunk), 0) < (off64_t) 0) { in dotest()
338 me, CHUNK(chunk)); in dotest()
343 me, CHUNK(chunk)); in dotest()
351 if (CHUNK(chunk) >= file_max) { in dotest()
363 me, CHUNK(chunk), val, count, in dotest()
394 me, CHUNK(chunk), val, count, in dotest()
420 me, CHUNK(chunk)); in dotest()
431 me, CHUNK(chunk), xfr); in dotest()
435 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest04.c218 #define CHUNK(i) (((i) * testers + me) * csize) macro
330 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
334 me, CHUNK(chunk), errno); in dotest()
340 me, CHUNK(chunk), errno); in dotest()
363 me, CHUNK(chunk), val0, in dotest()
392 me, CHUNK(chunk), val, in dotest()
412 me, CHUNK(chunk), errno); in dotest()
426 me, CHUNK(chunk), xfr, errno); in dotest()
448 if (lseek(fd, CHUNK(i), 0) < 0) { in dotest()
452 me, CHUNK(i), errno); in dotest()
[all …]
Dftest08.c225 #define CHUNK(i) ((((off64_t)i) * testers + me) * csize) macro
337 if (lseek64(fd, CHUNK(chunk), 0) < 0) { in dotest()
341 CHUNK(chunk), errno); in dotest()
346 "x, errno = %d.", me, CHUNK(chunk), in dotest()
372 me, CHUNK(chunk), val0, in dotest()
403 me, CHUNK(chunk), val, in dotest()
423 CHUNK(chunk), errno); in dotest()
437 CHUNK(chunk), xfr, errno); in dotest()
459 if (lseek64(fd, CHUNK(i), 0) < in dotest()
465 CHUNK(i), errno); in dotest()
[all …]
Dftest03.c281 #define CHUNK(i) ((i) * csize) macro
404 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
408 me, CHUNK(chunk), errno); in dotest()
414 me, CHUNK(chunk), errno); in dotest()
421 if (CHUNK(chunk) >= file_max) { in dotest()
438 me, CHUNK(chunk), val, in dotest()
476 me, CHUNK(chunk), val, in dotest()
505 me, CHUNK(chunk), errno); in dotest()
519 me, CHUNK(chunk), xfr, errno); in dotest()
521 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest07.c277 static inline long long unsigned int CHUNK(off64_t i) in CHUNK() function
398 if (lseek64(fd, CHUNK(chunk), 0) < 0) { in dotest()
402 me, CHUNK(chunk), errno); in dotest()
408 me, CHUNK(chunk), errno); in dotest()
415 if (CHUNK(chunk) >= file_max) { in dotest()
432 me, CHUNK(chunk), val, in dotest()
470 me, CHUNK(chunk), val, in dotest()
499 me, CHUNK(chunk), errno); in dotest()
513 me, CHUNK(chunk), xfr, errno); in dotest()
515 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
/external/mesa3d/src/compiler/glsl/glcpp/
Dglcpp.c49 #define CHUNK 4096 in load_text_fp() macro
56 if (total_read + CHUNK + 1 > text_size) { in load_text_fp()
57 text_size = text_size ? text_size * 2 : CHUNK + 1; in load_text_fp()
64 bytes = fread (text + total_read, 1, CHUNK, fp); in load_text_fp()
67 if (bytes < CHUNK) { in load_text_fp()
/external/libxml2/
Dtestlimits.c153 #define CHUNK 4096 macro
155 char filling[CHUNK + 1];
160 for (i = 0;i < CHUNK;i++) { in fillFilling()
163 filling[CHUNK] = 0; in fillFilling()
212 if (len > CHUNK) len = CHUNK; in hugeRead()
358 if (len > CHUNK) len = CHUNK; in crazyRead()
1386 {"huge:textNode", XML_MAX_TEXT_LENGTH - CHUNK, 0, 0},
1387 {"huge:textNode", XML_MAX_TEXT_LENGTH + CHUNK, 0, 1},
1388 {"huge:textNode", XML_MAX_TEXT_LENGTH + CHUNK, XML_PARSE_HUGE, 0},
1390 {"huge:attrNode", XML_MAX_TEXT_LENGTH - CHUNK, 0, 0},
[all …]
/external/valgrind/memcheck/tests/solaris/
Dsendfilev.c11 #define CHUNK (8 * 1024) macro
23 char chunk1[CHUNK]; in main()
26 if (nbytes != CHUNK) { in main()
50 vec[1].sfv_len = CHUNK; in main()
/external/valgrind/memcheck/tests/
Dwritev1.c11 #define CHUNK K_1 /* single chunk */ macro
21 {(caddr_t)-1, CHUNK},
62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0) in main()
/external/netperf/doc/examples/
Dbloat.sh13 CHUNK=60
26 sleep $CHUNK
32 netperf -H $1 -l `expr $CHUNK \* 2` -t TCP_STREAM -D 0.25 -v 2 -- -m 1K 2>&1 > netperf_stream.out
37 sleep $CHUNK
/external/fio/crc/
Dtest.c27 #define CHUNK 131072U macro
370 uint64_t mb = CHUNK * NR_CHUNKS; in fio_crctest()
390 buf = malloc(CHUNK); in fio_crctest()
392 fill_random_buf(&state, buf, CHUNK); in fio_crctest()
409 t[i].fn(&t[i], buf, CHUNK); in fio_crctest()
413 t[i].fn(&t[i], buf, CHUNK); in fio_crctest()

12