Home
last modified time | relevance | path

Searched refs:BUF_SIZE (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/
D1-2.c42 #define BUF_SIZE 1024 in main() macro
43 char buf[BUF_SIZE]; in main()
44 char check[BUF_SIZE * 2]; in main()
64 memset(buf, 0x00, BUF_SIZE); in main()
66 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
71 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
76 memset(buf, 0xaa, BUF_SIZE); in main()
80 aiocb.aio_nbytes = BUF_SIZE; in main()
81 aiocb.aio_offset = BUF_SIZE / 2; in main()
102 if (ret != BUF_SIZE) { in main()
[all …]
D1-1.c41 #define BUF_SIZE 512 in main() macro
42 char buf[BUF_SIZE]; in main()
43 char check[BUF_SIZE + 1]; in main()
63 memset(buf, 0xaa, BUF_SIZE); in main()
67 aiocb.aio_nbytes = BUF_SIZE; in main()
89 if (ret != BUF_SIZE) { in main()
105 check[BUF_SIZE] = 1; in main()
106 if (read(fd, check, BUF_SIZE + 1) != BUF_SIZE) { in main()
112 if (check[BUF_SIZE] != 1) { in main()
118 if (memcmp(buf, check, BUF_SIZE)) { in main()
D3-1.c41 #define BUF_SIZE 512 in main() macro
42 char buf[BUF_SIZE]; in main()
43 char check[BUF_SIZE]; in main()
63 memset(buf, 0xaa, BUF_SIZE); in main()
67 aiocb.aio_nbytes = BUF_SIZE; in main()
89 if (ret != BUF_SIZE) { in main()
102 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main()
107 if (memcmp(buf, check, BUF_SIZE)) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/
D4-1.c38 #define BUF_SIZE 512 in main() macro
39 unsigned char buf[BUF_SIZE * 2]; in main()
40 unsigned char check[BUF_SIZE]; in main()
59 memset(&buf[0], 1, BUF_SIZE); in main()
60 memset(&buf[BUF_SIZE], 2, BUF_SIZE); in main()
62 if (write(fd, buf, BUF_SIZE * 2) != BUF_SIZE * 2) { in main()
67 memset(check, 0xaa, BUF_SIZE); in main()
71 aiocb.aio_nbytes = BUF_SIZE; in main()
72 aiocb.aio_offset = BUF_SIZE; in main()
96 if (ret != BUF_SIZE) { in main()
[all …]
D5-1.c39 #define BUF_SIZE 111 in main() macro
40 unsigned char buf[BUF_SIZE]; in main()
41 unsigned char check[BUF_SIZE]; in main()
60 for (i = 0; i < BUF_SIZE; i++) in main()
63 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
68 memset(check, 0xaa, BUF_SIZE); in main()
72 aiocb.aio_nbytes = BUF_SIZE; in main()
97 if (ret != BUF_SIZE) { in main()
105 for (i = 0; i < BUF_SIZE; i++) { in main()
D3-1.c38 #define BUF_SIZE 111 in main() macro
39 char buf[BUF_SIZE]; in main()
58 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
66 aiocb.aio_nbytes = BUF_SIZE; in main()
85 if (aio_return(&aiocb) != BUF_SIZE) { in main()
D3-2.c38 #define BUF_SIZE 1024 in main() macro
39 char buf[BUF_SIZE]; in main()
58 if (write(fd, buf, BUF_SIZE / 2) != BUF_SIZE / 2) { in main()
68 aiocb.aio_nbytes = BUF_SIZE; in main()
87 if (aio_return(&aiocb) != BUF_SIZE / 2) { in main()
D11-1.c41 #define BUF_SIZE 111 in main() macro
42 char buf[BUF_SIZE]; in main()
60 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
69 aiocb.aio_nbytes = BUF_SIZE; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/
D9-1.c40 #define BUF_SIZE 512 in main() macro
41 unsigned char buf[BUF_SIZE]; in main()
42 unsigned char check[BUF_SIZE]; in main()
64 for (i = 0; i < BUF_SIZE; i++) in main()
70 aiocb.aio_nbytes = BUF_SIZE; in main()
91 if (ret != BUF_SIZE) { in main()
98 memset(check, 0xaa, BUF_SIZE); in main()
100 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main()
109 for (i = 0; i < BUF_SIZE; i++) { in main()
D8-1.c40 #define BUF_SIZE 512 in main() macro
41 unsigned char buf[BUF_SIZE]; in main()
42 unsigned char check[BUF_SIZE]; in main()
64 for (i = 0; i < BUF_SIZE; i++) in main()
67 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main()
72 memset(check, 0xaa, BUF_SIZE); in main()
76 aiocb.aio_nbytes = BUF_SIZE; in main()
99 if (ret != BUF_SIZE) { in main()
107 for (i = 0; i < BUF_SIZE; i++) { in main()
/external/adhd/cras/src/tests/
Dlinear_resampler_unittest.cc14 #define BUF_SIZE 2048 macro
16 static uint8_t in_buf[BUF_SIZE];
17 static uint8_t out_buf[BUF_SIZE];
27 memset(in_buf, 0, BUF_SIZE); in TEST()
28 memset(out_buf, 0, BUF_SIZE); in TEST()
67 memset(in_buf, 0, BUF_SIZE); in TEST()
68 memset(out_buf, 0, BUF_SIZE); in TEST()
118 memset(in_buf, 0, BUF_SIZE); in TEST()
119 memset(out_buf, 0, BUF_SIZE); in TEST()
165 memset(in_buf, 0, BUF_SIZE); in TEST()
[all …]
/external/u-boot/common/spl/
Dspl_ymodem.c18 #define BUF_SIZE 1024 macro
45 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
53 memcpy(addr, &buf[BUF_SIZE - res], res); in ymodem_read_fit()
58 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
78 char buf[BUF_SIZE]; in spl_ymodem_load_image()
88 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in spl_ymodem_load_image()
103 info.image_read = BUF_SIZE; in spl_ymodem_load_image()
108 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) in spl_ymodem_load_image()
120 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { in spl_ymodem_load_image()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D28-3.c31 #define BUF_SIZE 8 macro
37 char str[BUF_SIZE] = "qwerty"; in main()
46 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
52 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
61 if (munmap(buf, BUF_SIZE) != 0) { in main()
74 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D28-1.c30 #define BUF_SIZE 8 macro
36 char str[BUF_SIZE] = "qwerty"; in main()
45 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
60 if (munmap(buf, BUF_SIZE) != 0) { in main()
84 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D14-2.c30 #define BUF_SIZE 8 macro
36 char str[BUF_SIZE] = "qwerty"; in main()
45 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
50 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
64 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D1-1.c30 #define BUF_SIZE 8 macro
36 char str[BUF_SIZE] = "qwerty"; in main()
45 if (ftruncate(fd, BUF_SIZE) != 0) { in main()
51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
67 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D5-1.c37 #define BUF_SIZE 8 macro
40 char str[BUF_SIZE] = "qwerty";
54 if (ftruncate(fd, BUF_SIZE) != 0) { in child_process()
60 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in child_process()
93 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D1-1.c50 #define BUF_SIZE (1024*1024) macro
92 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
100 if (write(fd, bufs, NUM_AIOCBS * BUF_SIZE) != (NUM_AIOCBS * BUF_SIZE)) { in main()
115 aiocbs[i]->aio_offset = i * BUF_SIZE; in main()
116 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main()
117 aiocbs[i]->aio_nbytes = BUF_SIZE; in main()
179 if ((err != 0) && (ret != BUF_SIZE)) { in main()
202 if ((err != 0) && (ret != BUF_SIZE)) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/
D4-1.c36 #define BUF_SIZE 111 macro
41 char buf[BUF_SIZE]; in main()
61 memset(buf, 0xaa, BUF_SIZE); in main()
65 aiocb.aio_nbytes = BUF_SIZE; in main()
85 aiocb2.aio_nbytes = BUF_SIZE; in main()
97 if (retval != BUF_SIZE) { in main()
D3-1.c39 #define BUF_SIZE 4096 macro
44 char buf[BUF_SIZE]; in main()
63 memset(buf, 0xaa, BUF_SIZE); in main()
67 aiocb.aio_nbytes = BUF_SIZE; in main()
93 aiocb.aio_nbytes = BUF_SIZE / 2; in main()
116 if (retval != (BUF_SIZE / 2)) { in main()
D1-1.c36 #define BUF_SIZE 111 macro
41 char buf[BUF_SIZE]; in main()
60 memset(buf, 0xaa, BUF_SIZE); in main()
64 aiocb.aio_nbytes = BUF_SIZE; in main()
84 } else if (retval != BUF_SIZE) { in main()
D2-1.c34 #define BUF_SIZE 111 macro
39 char buf[BUF_SIZE]; in main()
58 memset(buf, 0xaa, BUF_SIZE); in main()
62 aiocb.aio_nbytes = BUF_SIZE; in main()
80 if (retval != BUF_SIZE) { in main()
D3-2.c37 #define BUF_SIZE 4096 macro
42 char buf[BUF_SIZE]; in main()
61 memset(buf, 0xaa, BUF_SIZE); in main()
65 aiocb.aio_nbytes = BUF_SIZE; in main()
87 if (retval != BUF_SIZE) { in main()
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify02.c58 #define BUF_SIZE 256 macro
59 static char fname1[BUF_SIZE], fname2[BUF_SIZE], fname3[BUF_SIZE];
64 char name[BUF_SIZE];
113 if (getcwd(fname1, BUF_SIZE) == NULL) { in verify_inotify()
115 "getcwd(%p, %d) failed", fname1, BUF_SIZE); in verify_inotify()
118 snprintf(fname2, BUF_SIZE, "%s.rename1", fname1); in verify_inotify()
135 snprintf(fname3, BUF_SIZE, "%s.rename2", fname1); in verify_inotify()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DXXHash32.java36 private static final int BUF_SIZE = 16; field in XXHash32
49 private final byte[] buffer = new byte[BUF_SIZE];
93 if (pos + len < BUF_SIZE) { in update()
100 final int size = BUF_SIZE - pos; in update()
106 final int limit = end - BUF_SIZE; in update()
109 off += BUF_SIZE; in update()
121 if (totalLen > BUF_SIZE) { in getValue()

12345678910>>...12