/external/ltp/testcases/kernel/syscalls/pwritev2/ |
D | pwritev201.c | 25 #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 …]
|
D | pwritev202.c | 28 #define CHUNK 64 macro 35 static char buf[CHUNK]; 42 {buf, CHUNK}, 46 {NULL, CHUNK},
|
/external/ltp/testcases/kernel/syscalls/preadv2/ |
D | preadv201.c | 25 #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 …]
|
D | preadv202.c | 30 #define CHUNK 64 macro 38 static char buf[CHUNK]; 45 {buf, CHUNK}, 49 {NULL, CHUNK},
|
/external/ltp/testcases/kernel/syscalls/readv/ |
D | readv02.c | 57 #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 …]
|
D | readv01.c | 39 #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/ |
D | writev07.c | 42 #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()
|
D | writev01.c | 30 #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,
|
D | writev02.c | 64 #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/ |
D | pwritev01.c | 33 #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()
|
D | pwritev02.c | 44 #define CHUNK 64 macro 51 static char buf[CHUNK]; 58 {buf, CHUNK}, 62 {(char *)-1, CHUNK},
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv01.c | 32 #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()
|
D | preadv02.c | 46 #define CHUNK 64 macro 54 static char buf[CHUNK]; 61 {buf, CHUNK}, 65 {(char *)-1, CHUNK},
|
/external/zlib/src/examples/ |
D | zpipe.c | 28 #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 …]
|
D | gzjoin.c | 75 #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()
|
D | zran.c | 64 #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()
|
D | gzappend.c | 89 #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/ |
D | ftest01.c | 254 #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 …]
|
D | ftest05.c | 255 #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 …]
|
D | ftest04.c | 208 #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 …]
|
D | ftest08.c | 221 #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 …]
|
D | ftest07.c | 271 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 …]
|
D | ftest03.c | 274 #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/ |
D | testlimits.c | 153 #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/ |
D | glcpp.c | 49 #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()
|