/third_party/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},
|
/third_party/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 …]
|
/third_party/ltp/testcases/kernel/syscalls/readv/ |
D | readv02.c | 27 #define CHUNK 64 macro 37 {buf1 + CHUNK, CHUNK}, 38 {buf1 + 2*CHUNK, CHUNK}, 43 {buf1 + CHUNK, K_1}, 44 {buf1 + CHUNK*2, K_1}, 48 {NULL, CHUNK}, 49 {buf1 + CHUNK, CHUNK}, 50 {buf1 + 2*CHUNK, CHUNK}, 54 {buf1, CHUNK},
|
D | readv01.c | 24 #define CHUNK 64 macro 26 static char buf[CHUNK]; 36 {&rd_iovec, 3, CHUNK, "readv() with NULL I/O vectors"}, 37 {&big_iovec, 2, CHUNK, "readv() with too big I/O vectors"}, 38 {&multi_iovec, 2, 3*CHUNK/4, "readv() with multiple I/O vectors"}, 39 {&lockup_iovec, 2, CHUNK, "readv() with zero-len buffer"}, 119 {&rd_iovec, .iov_sizes = (int[]){CHUNK, 0, 0, -1}}, 120 {&big_iovec, .iov_sizes = (int[]){2*CHUNK, CHUNK, -1}}, 121 {&multi_iovec, .iov_sizes = (int[]){CHUNK/4, CHUNK/2, -1}}, 122 {&lockup_iovec, .iov_sizes = (int[]){0, CHUNK, -1}},
|
/third_party/rust/crates/unicode-ident/generate/src/ |
D | main.rs | 33 const CHUNK: usize = 64; constant 43 let mut chunkmap = Map::<[u8; CHUNK], u8>::new(); in main() 44 let mut dense = Vec::<[u8; CHUNK]>::new(); in main() 58 let empty_chunk = [0u8; CHUNK]; in main() 63 for i in 0..(u32::from(char::MAX) + 1) / CHUNK as u32 / 8 { in main() 66 for j in 0..CHUNK as u32 { in main() 70 let code = (i * CHUNK as u32 + j) * 8 + k; in main() 92 let mut front = [0u8; CHUNK / 2]; in main() 93 let mut back = [0u8; CHUNK / 2]; in main() 94 front.copy_from_slice(&chunk[..CHUNK / 2]); in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 33 #define CHUNK 64 macro 34 #define BUFSIZE (CHUNK * 4) 44 { buffer, CHUNK }, in test_partially_valid_iovec() 45 { bad_addr, CHUNK }, in test_partially_valid_iovec() 46 { buffer + CHUNK, CHUNK }, in test_partially_valid_iovec() 47 { buffer + CHUNK * 2, CHUNK }, in test_partially_valid_iovec() 54 buffer[i] = i % (CHUNK - 1); in test_partially_valid_iovec() 57 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZE / CHUNK); in test_partially_valid_iovec() 126 test_partially_valid_iovec(CHUNK + 1); in test_writev()
|
D | writev01.c | 18 #define CHUNK 64 macro 25 static char buf[CHUNK * 4]; 29 { buf + CHUNK, CHUNK }, 30 { buf + CHUNK * 2, CHUNK }, 34 { buf, CHUNK }, 38 { buf, CHUNK }, 39 { buf + CHUNK, 0 }, 88 .exp_ret = CHUNK,
|
D | writev02.c | 64 #define CHUNK K_1 /* single chunk */ macro 74 {(caddr_t) - 1, CHUNK}, 154 if ((nbytes = read(fd[0], buf_list[0], CHUNK)) != CHUNK) { in main() 158 if (memcmp(buf_list[0], buf_list[1], CHUNK) in main()
|
/third_party/ltp/testcases/kernel/syscalls/pwritev/ |
D | pwritev01.c | 23 #define CHUNK 64 macro 25 static char buf[CHUNK]; 26 static char initbuf[CHUNK * 2]; 27 static char preadbuf[CHUNK]; 31 {buf, CHUNK}, 40 {1, 0, CHUNK}, 41 {2, 0, CHUNK}, 42 {1, CHUNK/2, CHUNK}, 90 memset(&buf, 0x61, CHUNK); in setup()
|
D | pwritev02.c | 36 #define CHUNK 64 macro 43 static char buf[CHUNK]; 50 {buf, CHUNK}, 54 {(char *)-1, CHUNK},
|
/third_party/zlib/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 | gznorm.c | 67 #define CHUNK 16384 macro 127 unsigned char dat[CHUNK]; in gzip_normalize() 128 strm.avail_in = fread(dat, 1, CHUNK, in); in gzip_normalize() 131 more = strm.avail_in == CHUNK; in gzip_normalize() 145 unsigned char scrap[CHUNK]; in gzip_normalize() 146 strm.avail_out = CHUNK; in gzip_normalize() 159 unsigned got = CHUNK - strm.avail_out; in gzip_normalize()
|
/third_party/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv01.c | 24 #define CHUNK 64 macro 36 {1, 0, CHUNK, 'a'}, 37 {2, 0, CHUNK, 'a'}, 38 {1, CHUNK*3/2, CHUNK/2, 'b'} 48 memset(vec, 0x00, CHUNK); in verify_preadv() 86 char buf[CHUNK]; in setup() 111 {&rd_iovec, .iov_sizes = (int[]){CHUNK, 0, -1}},
|
D | preadv02.c | 38 #define CHUNK 64 macro 46 static char buf[CHUNK]; 53 {buf, CHUNK}, 57 {(char *)-1, CHUNK},
|
/third_party/rust/crates/unicode-ident/src/ |
D | lib.rs | 251 use crate::tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START}; 257 let chunk = *TRIE_START.0.get(ch as usize / 8 / CHUNK).unwrap_or(&0); in is_xid_start() 258 let offset = chunk as usize * CHUNK / 2 + ch as usize / 8 % CHUNK; in is_xid_start() 266 let chunk = *TRIE_CONTINUE.0.get(ch as usize / 8 / CHUNK).unwrap_or(&0); in is_xid_continue() 267 let offset = chunk as usize * CHUNK / 2 + ch as usize / 8 % CHUNK; in is_xid_continue()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
D | ftest05.c | 254 #define CHUNK(i) (((off64_t)i) * csize) macro 330 if (lseek64(fd, CHUNK(chunk), 0) < (off64_t) 0) { in dotest() 333 me, CHUNK(chunk)); in dotest() 338 me, CHUNK(chunk)); in dotest() 346 if (CHUNK(chunk) >= file_max) { in dotest() 358 me, CHUNK(chunk), val, count, in dotest() 389 me, CHUNK(chunk), val, count, in dotest() 415 me, CHUNK(chunk)); in dotest() 426 me, CHUNK(chunk), xfr); in dotest() 430 if (CHUNK(chunk) + csize > file_max) in dotest() [all …]
|
D | ftest01.c | 253 #define CHUNK(i) ((i) * csize) macro 335 if (lseek(fd, CHUNK(chunk), 0) < 0) { in dotest() 339 me, CHUNK(chunk), errno); in dotest() 345 me, CHUNK(chunk), errno); in dotest() 352 if (CHUNK(chunk) >= file_max) { in dotest() 366 me, CHUNK(chunk), val, count, in dotest() 399 me, CHUNK(chunk), val, count, in dotest() 426 me, CHUNK(chunk), errno); in dotest() 439 me, CHUNK(chunk), xfr, errno); in dotest() 441 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 …]
|
/third_party/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 …]
|
/third_party/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()
|