Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/pwritev2/
Dpwritev201.c25 #define CHUNK 64 macro
28 static char initbuf[CHUNK * 2];
29 static char buf[CHUNK];
32 {buf, CHUNK},
43 {0, 1, 0, CHUNK, 0},
44 {CHUNK, 2, 0, CHUNK, CHUNK},
45 {0, 1, CHUNK / 2, CHUNK, 0},
46 {0, 1, -1, CHUNK, CHUNK},
47 {0, 2, -1, CHUNK, CHUNK},
48 {CHUNK, 1, -1, CHUNK, CHUNK * 2},
[all …]
Dpwritev202.c28 #define CHUNK 64 macro
35 static char buf[CHUNK];
42 {buf, CHUNK},
46 {NULL, CHUNK},
/external/ltp/testcases/kernel/syscalls/preadv2/
Dpreadv201.c25 #define CHUNK 64 macro
28 static char buf[CHUNK];
31 {buf, CHUNK},
43 {0, 1, 0, CHUNK, 'a', 0},
44 {CHUNK, 2, 0, CHUNK, 'a', CHUNK},
45 {0, 1, CHUNK*3 / 2, CHUNK / 2, 'b', 0},
46 {0, 1, -1, CHUNK, 'a', CHUNK},
47 {0, 2, -1, CHUNK, 'a', CHUNK},
48 {CHUNK, 1, -1, CHUNK, 'b', CHUNK * 2},
58 memset(vec, 0x00, CHUNK); in verify_preadv2()
[all …]
Dpreadv202.c30 #define CHUNK 64 macro
38 static char buf[CHUNK];
45 {buf, CHUNK},
49 {NULL, CHUNK},
/external/ltp/testcases/kernel/syscalls/readv/
Dreadv02.c57 #define CHUNK 64 macro
68 {(buf2 + CHUNK), CHUNK},
69 {(buf2 + CHUNK * 2), CHUNK},
72 {(buf2 + CHUNK * 3), G_1},
73 {(buf2 + CHUNK * 4), G_1},
74 {(buf2 + CHUNK * 5), G_1},
77 {(caddr_t) - 1, CHUNK},
78 {(buf2 + CHUNK * 6), CHUNK},
79 {(buf2 + CHUNK * 8), CHUNK},
82 {(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.c254 #define CHUNK(i) ((i) * csize) macro
336 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
340 me, CHUNK(chunk), errno); in dotest()
346 me, CHUNK(chunk), errno); in dotest()
353 if (CHUNK(chunk) >= file_max) { in dotest()
367 me, CHUNK(chunk), val, count, in dotest()
400 me, CHUNK(chunk), val, count, in dotest()
427 me, CHUNK(chunk), errno); in dotest()
440 me, CHUNK(chunk), xfr, errno); in dotest()
442 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest05.c255 #define CHUNK(i) (((off64_t)i) * csize) macro
331 if (lseek64(fd, CHUNK(chunk), 0) < (off64_t) 0) { in dotest()
334 me, CHUNK(chunk)); in dotest()
339 me, CHUNK(chunk)); in dotest()
347 if (CHUNK(chunk) >= file_max) { in dotest()
359 me, CHUNK(chunk), val, count, in dotest()
390 me, CHUNK(chunk), val, count, in dotest()
416 me, CHUNK(chunk)); in dotest()
427 me, CHUNK(chunk), xfr); in dotest()
431 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest04.c208 #define CHUNK(i) (((i) * testers + me) * csize) macro
320 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
324 me, CHUNK(chunk), errno); in dotest()
330 me, CHUNK(chunk), errno); in dotest()
353 me, CHUNK(chunk), val0, in dotest()
382 me, CHUNK(chunk), val, in dotest()
402 me, CHUNK(chunk), errno); in dotest()
416 me, CHUNK(chunk), xfr, errno); in dotest()
438 if (lseek(fd, CHUNK(i), 0) < 0) { in dotest()
442 me, CHUNK(i), errno); in dotest()
[all …]
Dftest08.c221 #define CHUNK(i) ((((off64_t)i) * testers + me) * csize) macro
333 if (lseek64(fd, CHUNK(chunk), 0) < 0) { in dotest()
337 CHUNK(chunk), errno); in dotest()
342 "x, errno = %d.", me, CHUNK(chunk), in dotest()
368 me, CHUNK(chunk), val0, in dotest()
399 me, CHUNK(chunk), val, in dotest()
419 CHUNK(chunk), errno); in dotest()
433 CHUNK(chunk), xfr, errno); in dotest()
455 if (lseek64(fd, CHUNK(i), 0) < in dotest()
461 CHUNK(i), errno); in dotest()
[all …]
Dftest07.c271 static inline long long unsigned int CHUNK(off64_t i) in CHUNK() function
392 if (lseek64(fd, CHUNK(chunk), 0) < 0) { in dotest()
396 me, CHUNK(chunk), errno); in dotest()
402 me, CHUNK(chunk), errno); in dotest()
409 if (CHUNK(chunk) >= file_max) { in dotest()
426 me, CHUNK(chunk), val, in dotest()
464 me, CHUNK(chunk), val, in dotest()
493 me, CHUNK(chunk), errno); in dotest()
507 me, CHUNK(chunk), xfr, errno); in dotest()
509 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
Dftest03.c274 #define CHUNK(i) ((i) * csize) macro
397 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest()
401 me, CHUNK(chunk), errno); in dotest()
407 me, CHUNK(chunk), errno); in dotest()
414 if (CHUNK(chunk) >= file_max) { in dotest()
431 me, CHUNK(chunk), val, in dotest()
469 me, CHUNK(chunk), val, in dotest()
498 me, CHUNK(chunk), errno); in dotest()
512 me, CHUNK(chunk), xfr, errno); in dotest()
514 if (CHUNK(chunk) + csize > file_max) in dotest()
[all …]
/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/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()

12