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

12

/external/ltp/testcases/kernel/syscalls/pwritev/
H A 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);
[all...]
H A Dpwritev02.c44 #define CHUNK 64 macro
51 static char buf[CHUNK];
58 {buf, CHUNK},
62 {(char *)-1, CHUNK},
/external/ltp/testcases/kernel/syscalls/readv/
H A 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 *
[all...]
H A Dreadv01.c39 #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 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);
98 char buf[CHUNK];
H A Dpreadv02.c46 #define CHUNK 64 macro
54 static char buf[CHUNK];
61 {buf, CHUNK},
65 {(char *)-1, CHUNK},
/external/ltp/testcases/kernel/syscalls/writev/
H A Dwritev07.c42 #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 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,
[all...]
H A 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) {
162 if (memcmp(buf_list[0], buf_list[1], CHUNK)
H A Dwritev05.c59 #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 Dzpipe.c28 #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 Dgzjoin.c75 #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 Dzran.c64 #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 Dsendfilev.c11 #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 Dglcpp.c49 #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 Dftest01.c254 #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 Dftest05.c255 #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 Dftest04.c208 #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 Dftest08.c221 #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 Dftest03.c274 #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 Dftest07.c271 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 Dwritev1.c11 #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 Dtestlimits.c153 #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 DClassHeaderReader.java140 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 Dtest.c27 #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);

Completed in 395 milliseconds

12