/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
H A D | 1-2.c | 43 #define BUF_SIZE 1024 macro 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...] |
H A D | 1-1.c | 42 #define BUF_SIZE 512 macro 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] ! [all...] |
H A D | 3-1.c | 42 #define BUF_SIZE 512 macro 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)) {
|
H A D | 8-1.c | 40 #define BUF_SIZE 512 macro 41 char buf[BUF_SIZE]; 48 memset(buf, 0xaa, BUF_SIZE); 52 aiocb.aio_nbytes = BUF_SIZE;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
H A D | 4-1.c | 39 #define BUF_SIZE 512 macro 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...] |
H A D | 5-1.c | 40 #define BUF_SIZE 111 macro 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; [all...] |
H A D | 10-1.c | 40 #define BUF_SIZE 111 macro 41 char buf[BUF_SIZE]; 48 memset(buf, 0xaa, BUF_SIZE); 52 aiocb.aio_nbytes = BUF_SIZE;
|
H A D | 3-1.c | 39 #define BUF_SIZE 111 macro 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) {
|
H A D | 3-2.c | 39 #define BUF_SIZE 1024 macro 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) {
|
H A D | 11-1.c | 42 #define BUF_SIZE 111 macro 43 char buf[BUF_SIZE]; 61 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { 70 aiocb.aio_nbytes = BUF_SIZE;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 14-2.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 55 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 69 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
H A D | 28-2.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE | PROT_READ, MAP_SHARED, fd, 0);
|
H A D | 28-1.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 65 if (munmap(buf, BUF_SIZE) != 0) { 89 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
H A D | 28-3.c | 36 #define BUF_SIZE 8 macro 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);
|
H A D | 1-1.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; 50 if (ftruncate(fd, BUF_SIZE) != 0) { 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 72 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
H A D | 5-1.c | 42 #define BUF_SIZE 8 macro 45 char str[BUF_SIZE] = "qwerty"; 59 if (ftruncate(fd, BUF_SIZE) != 0) { 65 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 98 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|
H A D | 20-3.c | 29 #define BUF_SIZE 8 macro 51 if (ftruncate(fd, BUF_SIZE) != 0) { 57 ptr = mmap(NULL, BUF_SIZE, PROT_NONE, MAP_SHARED, fd, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
H A D | 8-1.c | 41 #define BUF_SIZE 512 macro 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; [all...] |
H A D | 9-1.c | 41 #define BUF_SIZE 512 macro 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; [all...] |
/external/icu/icu4c/source/samples/cal/ |
H A D | uprint.c | 24 #define BUF_SIZE 128 macro 34 char buf [BUF_SIZE]; 48 arraySize = BUF_SIZE; 71 arraySize = BUF_SIZE;
|
/external/icu/icu4c/source/samples/date/ |
H A D | uprint.c | 25 #define BUF_SIZE 128 macro 35 char buf [BUF_SIZE]; 49 arraySize = BUF_SIZE; 72 arraySize = BUF_SIZE;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
H A D | 1-1.c | 37 #define BUF_SIZE 111 macro 42 char buf[BUF_SIZE]; 61 memset(buf, 0xaa, BUF_SIZE); 65 aiocb.aio_nbytes = BUF_SIZE; 85 } else if (retval != BUF_SIZE) {
|
H A D | 2-1.c | 35 #define BUF_SIZE 111 macro 40 char buf[BUF_SIZE]; 59 memset(buf, 0xaa, BUF_SIZE); 63 aiocb.aio_nbytes = BUF_SIZE; 81 if (retval != BUF_SIZE) {
|
H A D | 3-1.c | 40 #define BUF_SIZE 4096 macro 45 char buf[BUF_SIZE]; 64 memset(buf, 0xaa, BUF_SIZE); 68 aiocb.aio_nbytes = BUF_SIZE; 94 aiocb.aio_nbytes = BUF_SIZE / 2; 117 if (retval != (BUF_SIZE / 2)) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
H A D | 3-1.c | 28 #define BUF_SIZE 8 macro 42 if (ftruncate(fd, BUF_SIZE) != 0) { 54 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
|