/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
1-2.c | 43 #define BUF_SIZE 1024 44 char buf[BUF_SIZE]; 45 char check[BUF_SIZE * 2]; 65 memset(buf, 0x00, BUF_SIZE); 67 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 72 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 77 memset(buf, 0xaa, BUF_SIZE); 81 aiocb.aio_nbytes = BUF_SIZE; [all...] |
1-1.c | 42 #define BUF_SIZE 512 43 char buf[BUF_SIZE]; 44 char check[BUF_SIZE + 1]; 64 memset(buf, 0xaa, BUF_SIZE); 68 aiocb.aio_nbytes = BUF_SIZE; 90 if (ret != BUF_SIZE) { 106 check[BUF_SIZE] = 1; 107 if (read(fd, check, BUF_SIZE + 1) != BUF_SIZE) { 113 if (check[BUF_SIZE] != 1) [all...] |
3-1.c | 42 #define BUF_SIZE 512 43 char buf[BUF_SIZE]; 44 char check[BUF_SIZE]; 64 memset(buf, 0xaa, BUF_SIZE); 68 aiocb.aio_nbytes = BUF_SIZE; 90 if (ret != BUF_SIZE) { 103 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { 108 if (memcmp(buf, check, BUF_SIZE)) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
4-1.c | 39 #define BUF_SIZE 512 40 unsigned char buf[BUF_SIZE * 2]; 41 unsigned char check[BUF_SIZE]; 60 memset(&buf[0], 1, BUF_SIZE); 61 memset(&buf[BUF_SIZE], 2, BUF_SIZE); 63 if (write(fd, buf, BUF_SIZE * 2) != BUF_SIZE * 2) { 68 memset(check, 0xaa, BUF_SIZE); 72 aiocb.aio_nbytes = BUF_SIZE; [all...] |
5-1.c | 40 #define BUF_SIZE 111 41 unsigned char buf[BUF_SIZE]; 42 unsigned char check[BUF_SIZE]; 61 for (i = 0; i < BUF_SIZE; i++) 64 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 69 memset(check, 0xaa, BUF_SIZE); 73 aiocb.aio_nbytes = BUF_SIZE; 98 if (ret != BUF_SIZE) { 106 for (i = 0; i < BUF_SIZE; i++) [all...] |
3-1.c | 39 #define BUF_SIZE 111 40 char buf[BUF_SIZE]; 59 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 67 aiocb.aio_nbytes = BUF_SIZE; 80 /* error status shall be 0 and return status shall be BUF_SIZE */ 86 if (aio_return(&aiocb) != BUF_SIZE) {
|
3-2.c | 39 #define BUF_SIZE 1024 40 char buf[BUF_SIZE]; 59 if (write(fd, buf, BUF_SIZE / 2) != BUF_SIZE / 2) { 64 /* try to read BUF_SIZE bytes whereas the file is BUF_SIZE/2 long */ 69 aiocb.aio_nbytes = BUF_SIZE; 82 /* error status shall be 0 and return status shall be BUF_SIZE/2 */ 88 if (aio_return(&aiocb) != BUF_SIZE / 2) {
|
/external/strace/mpers-m32/ |
struct_blk_user_trace_setup.h | 8 uint32_t buf_size; member in struct:__anon30244
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
8-1.c | 41 #define BUF_SIZE 512 42 unsigned char buf[BUF_SIZE]; 43 unsigned char check[BUF_SIZE]; 65 for (i = 0; i < BUF_SIZE; i++) 68 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 73 memset(check, 0xaa, BUF_SIZE); 77 aiocb.aio_nbytes = BUF_SIZE; 100 if (ret != BUF_SIZE) { 108 for (i = 0; i < BUF_SIZE; i++) [all...] |
9-1.c | 41 #define BUF_SIZE 512 42 unsigned char buf[BUF_SIZE]; 43 unsigned char check[BUF_SIZE]; 65 for (i = 0; i < BUF_SIZE; i++) 71 aiocb.aio_nbytes = BUF_SIZE; 92 if (ret != BUF_SIZE) { 99 memset(check, 0xaa, BUF_SIZE); 101 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { 110 for (i = 0; i < BUF_SIZE; i++) [all...] |
/frameworks/rs/tests/java_api/MathErr/src/com/example/android/rs/matherr/ |
MathErr.java | 31 private final int BUF_SIZE = 4096; 32 float mSrc[] = new float[BUF_SIZE]; 33 float mRef[] = new float[BUF_SIZE]; 34 float mRes[] = new float[BUF_SIZE]; 40 mAllocationSrc = Allocation.createSized(rs, Element.F32(rs), BUF_SIZE); 41 mAllocationRes = Allocation.createSized(rs, Element.F32(rs), BUF_SIZE); 48 for (int i=0; i < BUF_SIZE; i++) { 57 for (int i=0; i < BUF_SIZE; i++) { 70 for (int i=0; i < BUF_SIZE; i++) { 80 for (int i=0; i < BUF_SIZE; i++) [all...] |
/external/vboot_reference/tests/ |
vb21_common_tests.c | 259 uint32_t buf_size; local 283 buf_size = kbuf->c.total_size; 286 buf2 = malloc(buf_size); 287 memcpy(buf2, buf, buf_size); 292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), 295 memcpy(buf, buf2, buf_size); 296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), 299 memcpy(buf, buf2, buf_size); 300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), 304 memcpy(buf, buf2, buf_size); 386 uint32_t buf_size; local [all...] |
/system/libufdt/tests/src/ |
extract_dtb.c | 26 int find_dtb_header_pos(const char *buf, size_t buf_size) { 27 if (buf == NULL || buf_size == 0) { 31 int pos = buf_size; 48 const char *buf, size_t buf_size) { 49 int tag_pos = find_dtb_header_pos(buf, buf_size); 63 size_t fdt_actual_size = buf_size - tag_pos; 100 size_t buf_size; local 101 buf = load_file(in_filename, &buf_size); 109 while (buf_size > 0) { 113 tag_pos = find_and_write_dtb(filename, buf, buf_size); [all...] |
/hardware/qcom/msm8996/original-kernel-headers/scsi/ufs/ |
ioctl.h | 16 * @buf_size: number of allocated bytes/data size on return 19 * Received: buffer and buf_size (available space for transfered data) 20 * Submitted: opcode, idn, length, buf_size 44 * buf_size. So we are updating buf_size to what exactly we have read. 46 __u16 buf_size; member in struct:ufs_ioctl_query_data
|
/system/update_engine/payload_generator/ |
bzip.cc | 37 size_t buf_size = 40 + in.size() * 35 / 100; 38 out->resize(buf_size); 42 if (buf_size > std::numeric_limits<uint32_t>::max()) 44 uint32_t data_size = buf_size; 61 buf_size *= 2; 62 out->resize(buf_size);
|
/external/icu/icu4c/source/samples/cal/ |
uprint.c | 24 #define BUF_SIZE 128 34 char buf [BUF_SIZE]; 48 arraySize = BUF_SIZE; 71 arraySize = BUF_SIZE;
|
/external/icu/icu4c/source/samples/date/ |
uprint.c | 25 #define BUF_SIZE 128 35 char buf [BUF_SIZE]; 49 arraySize = BUF_SIZE; 72 arraySize = BUF_SIZE;
|
/external/strace/mpers-mx32/ |
struct_blk_user_trace_setup.h | 8 uint32_t buf_size; member in struct:__anon30393
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
1-1.c | 37 #define BUF_SIZE 111 42 char buf[BUF_SIZE]; 61 memset(buf, 0xaa, BUF_SIZE); 65 aiocb.aio_nbytes = BUF_SIZE; 85 } else if (retval != BUF_SIZE) {
|
4-1.c | 37 #define BUF_SIZE 111 42 char buf[BUF_SIZE]; 62 memset(buf, 0xaa, BUF_SIZE); 66 aiocb.aio_nbytes = BUF_SIZE; 86 aiocb2.aio_nbytes = BUF_SIZE; 98 if (retval != BUF_SIZE) {
|
/external/fmtlib/fmt/ |
ostream.h | 36 size_t buf_size = size(); local 37 buffer_.resize(buf_size); 38 buffer_.reserve(buf_size * 2); 41 start_[buf_size] = traits_type::to_char_type(ch); 42 this->setp(start_+ buf_size + 1, start_ + buf_size * 2);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
28-3.c | 36 #define BUF_SIZE 8 42 char str[BUF_SIZE] = "qwerty"; 51 if (ftruncate(fd, BUF_SIZE) != 0) { 57 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 66 if (munmap(buf, BUF_SIZE) != 0) { 79 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
1-1.c | 40 #define BUF_SIZE 1024 41 char buf[BUF_SIZE]; 59 memset(buf, 0xaa, BUF_SIZE); 63 aiocb.aio_nbytes = BUF_SIZE;
|
2-1.c | 45 #define BUF_SIZE 1024 46 char buf[BUF_SIZE]; 64 memset(buf, 0xaa, BUF_SIZE); 68 aiocb.aio_nbytes = BUF_SIZE;
|
8-1.c | 42 #define BUF_SIZE 1024 43 char buf[BUF_SIZE]; 62 memset(buf, 0xaa, BUF_SIZE); 66 aiocb.aio_nbytes = BUF_SIZE;
|