/external/ltp/testcases/kernel/syscalls/pwritev/ |
H A 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); [all...] |
H A 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/readv/ |
H A 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 * [all...] |
H A 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); 78 if (readv(fd, rd_iovec, 3) != CHUNK) { 80 "followed by two NULL vectors", CHUNK); 85 for (i = 0; i < CHUNK; i++) { 94 "followed by two NULL vectors", CHUNK);
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
H A 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); 98 char buf[CHUNK];
|
H A D | preadv02.c | 46 #define CHUNK 64 macro 54 static char buf[CHUNK]; 61 {buf, CHUNK}, 65 {(char *)-1, CHUNK},
|
/external/ltp/testcases/kernel/syscalls/writev/ |
H A D | writev07.c | 42 #define CHUNK 64 macro 43 #define BUFSIZE (CHUNK * 4) 53 { buffer, CHUNK }, 54 { bad_addr, CHUNK }, 55 { buffer + CHUNK, CHUNK }, 56 { buffer + CHUNK * 2, CHUNK }, 63 buffer[i] = i % (CHUNK - 1); 66 tst_fill_file(TESTFILE, 0xff, CHUNK, BUFSIZ [all...] |
H A 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, [all...] |
H A 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) { 162 if (memcmp(buf_list[0], buf_list[1], CHUNK)
|
H A D | writev05.c | 59 #define CHUNK K_1 /* single chunk */ macro 70 {(caddr_t) - 1, CHUNK}, 171 if ((nbytes = read(fd[0], buf_list[0], CHUNK)) != 0) {
|
/external/zlib/src/examples/ |
H A D | zpipe.c | 28 #define CHUNK 16384 macro 41 unsigned char in[CHUNK]; 42 unsigned char out[CHUNK]; 54 strm.avail_in = fread(in, 1, CHUNK, source); 65 strm.avail_out = CHUNK; 69 have = CHUNK - strm.avail_out; 97 unsigned char in[CHUNK]; 98 unsigned char out[CHUNK]; 112 strm.avail_in = fread(in, 1, CHUNK, source); 123 strm.avail_out = CHUNK; [all...] |
H A D | gzjoin.c | 75 #define CHUNK 32768 /* must be a power of two and fit in unsigned */ macro 83 unsigned char *buf; /* allocated buffer of length CHUNK */ 107 in->buf = malloc(CHUNK); 131 len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left); 135 } while (len != 0 && in->left < CHUNK); 174 /* seek past multiples of CHUNK bytes */ 175 if (skip > CHUNK) { 178 left = skip & (CHUNK - 1); 299 junk = malloc(CHUNK); 327 strm.avail_out = CHUNK; [all...] |
H A D | zran.c | 64 #define CHUNK 16384 /* file input buffer size */ macro 151 unsigned char input[CHUNK]; 172 strm.avail_in = fread(input, 1, CHUNK, in); 255 unsigned char input[CHUNK]; 315 strm.avail_in = fread(input, 1, CHUNK, in); 360 unsigned char buf[CHUNK]; 396 len = extract(in, index, offset, buf, CHUNK);
|
/external/valgrind/memcheck/tests/solaris/ |
H A D | sendfilev.c | 11 #define CHUNK (8 * 1024) macro 23 char chunk1[CHUNK]; 26 if (nbytes != CHUNK) { 50 vec[1].sfv_len = CHUNK;
|
/external/mesa3d/src/compiler/glsl/glcpp/ |
H A D | glcpp.c | 49 #define CHUNK 4096 macro 56 if (total_read + CHUNK + 1 > text_size) { 57 text_size = text_size ? text_size * 2 : CHUNK + 1; 64 bytes = fread (text + total_read, 1, CHUNK, fp); 67 if (bytes < CHUNK) {
|
/external/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest01.c | 254 #define CHUNK(i) ((i) * csize) macro 336 if (lseek(fd, CHUNK(chunk), 0) < 0) { 340 me, CHUNK(chunk), errno); 346 me, CHUNK(chunk), errno); 353 if (CHUNK(chunk) >= file_max) { 367 me, CHUNK(chunk), val, count, 400 me, CHUNK(chunk), val, count, 427 me, CHUNK(chunk), errno); 440 me, CHUNK(chunk), xfr, errno); 442 if (CHUNK(chun [all...] |
H A D | ftest05.c | 255 #define CHUNK(i) (((off64_t)i) * csize) macro 331 if (lseek64(fd, CHUNK(chunk), 0) < (off64_t) 0) { 334 me, CHUNK(chunk)); 339 me, CHUNK(chunk)); 346 //printf("%li %d", CHUNK(chunk), file_max ); 347 if (CHUNK(chunk) >= file_max) { 359 me, CHUNK(chunk), val, count, 390 me, CHUNK(chunk), val, count, 416 me, CHUNK(chunk)); 427 me, CHUNK(chun [all...] |
H A D | ftest04.c | 208 #define CHUNK(i) (((i) * testers + me) * csize) macro 320 if (lseek(fd, CHUNK(chunk), 0) < 0) { 324 me, CHUNK(chunk), errno); 330 me, CHUNK(chunk), errno); 353 me, CHUNK(chunk), val0, 382 me, CHUNK(chunk), val, 402 me, CHUNK(chunk), errno); 416 me, CHUNK(chunk), xfr, errno); 438 if (lseek(fd, CHUNK(i), 0) < 0) { 442 me, CHUNK( [all...] |
H A D | ftest08.c | 221 #define CHUNK(i) ((((off64_t)i) * testers + me) * csize) macro 333 if (lseek64(fd, CHUNK(chunk), 0) < 0) { 337 CHUNK(chunk), errno); 342 "x, errno = %d.", me, CHUNK(chunk), 368 me, CHUNK(chunk), val0, 399 me, CHUNK(chunk), val, 419 CHUNK(chunk), errno); 433 CHUNK(chunk), xfr, errno); 455 if (lseek64(fd, CHUNK(i), 0) < 461 CHUNK( [all...] |
H A D | ftest03.c | 274 #define CHUNK(i) ((i) * csize) macro 397 if (lseek(fd, CHUNK(chunk), 0) < 0) { 401 me, CHUNK(chunk), errno); 407 me, CHUNK(chunk), errno); 414 if (CHUNK(chunk) >= file_max) { 431 me, CHUNK(chunk), val, 469 me, CHUNK(chunk), val, 498 me, CHUNK(chunk), errno); 512 me, CHUNK(chunk), xfr, errno); 514 if (CHUNK(chun [all...] |
H A D | ftest07.c | 271 static inline long long unsigned int CHUNK(off64_t i) function 392 if (lseek64(fd, CHUNK(chunk), 0) < 0) { 396 me, CHUNK(chunk), errno); 402 me, CHUNK(chunk), errno); 409 if (CHUNK(chunk) >= file_max) { 426 me, CHUNK(chunk), val, 464 me, CHUNK(chunk), val, 493 me, CHUNK(chunk), errno); 507 me, CHUNK(chunk), xfr, errno); 509 if (CHUNK(chun [all...] |
/external/valgrind/memcheck/tests/ |
H A D | writev1.c | 11 #define CHUNK K_1 /* single chunk */ macro 21 {(caddr_t)-1, CHUNK}, 62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0)
|
/external/libxml2/ |
H A D | testlimits.c | 153 #define CHUNK 4096 macro 155 char filling[CHUNK + 1]; 160 for (i = 0;i < CHUNK;i++) { 163 filling[CHUNK] = 0; 212 if (len > CHUNK) len = CHUNK; 358 if (len > CHUNK) len = CHUNK; 1386 {"huge:textNode", XML_MAX_TEXT_LENGTH - CHUNK, 0, 0}, 1387 {"huge:textNode", XML_MAX_TEXT_LENGTH + CHUNK, [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
H A D | ClassHeaderReader.java | 140 private static final int CHUNK = 2048; field in class:ClassHeaderReader 145 int rounded = (int)(CHUNK * Math.ceil((float)amount / CHUNK));
|
/external/fio/crc/ |
H A D | test.c | 27 #define CHUNK 131072U macro 370 uint64_t mb = CHUNK * NR_CHUNKS; 390 buf = malloc(CHUNK); 392 fill_random_buf(&state, buf, CHUNK); 409 t[i].fn(&t[i], buf, CHUNK); 413 t[i].fn(&t[i], buf, CHUNK);
|