/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
D | 1-2.c | 43 #define BUF_SIZE 1024 in main() macro 44 char buf[BUF_SIZE]; in main() 45 char check[BUF_SIZE * 2]; in main() 65 memset(buf, 0x00, BUF_SIZE); in main() 67 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 72 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 77 memset(buf, 0xaa, BUF_SIZE); in main() 81 aiocb.aio_nbytes = BUF_SIZE; in main() 82 aiocb.aio_offset = BUF_SIZE / 2; in main() 103 if (ret != BUF_SIZE) { in main() [all …]
|
D | 1-1.c | 42 #define BUF_SIZE 512 in main() macro 43 char buf[BUF_SIZE]; in main() 44 char check[BUF_SIZE + 1]; in main() 64 memset(buf, 0xaa, BUF_SIZE); in main() 68 aiocb.aio_nbytes = BUF_SIZE; in main() 90 if (ret != BUF_SIZE) { in main() 106 check[BUF_SIZE] = 1; in main() 107 if (read(fd, check, BUF_SIZE + 1) != BUF_SIZE) { in main() 113 if (check[BUF_SIZE] != 1) { in main() 119 if (memcmp(buf, check, BUF_SIZE)) { in main()
|
D | 3-1.c | 42 #define BUF_SIZE 512 in main() macro 43 char buf[BUF_SIZE]; in main() 44 char check[BUF_SIZE]; in main() 64 memset(buf, 0xaa, BUF_SIZE); in main() 68 aiocb.aio_nbytes = BUF_SIZE; in main() 90 if (ret != BUF_SIZE) { in main() 103 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main() 108 if (memcmp(buf, check, BUF_SIZE)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
D | 4-1.c | 39 #define BUF_SIZE 512 in main() macro 40 unsigned char buf[BUF_SIZE * 2]; in main() 41 unsigned char check[BUF_SIZE]; in main() 60 memset(&buf[0], 1, BUF_SIZE); in main() 61 memset(&buf[BUF_SIZE], 2, BUF_SIZE); in main() 63 if (write(fd, buf, BUF_SIZE * 2) != BUF_SIZE * 2) { in main() 68 memset(check, 0xaa, BUF_SIZE); in main() 72 aiocb.aio_nbytes = BUF_SIZE; in main() 73 aiocb.aio_offset = BUF_SIZE; in main() 97 if (ret != BUF_SIZE) { in main() [all …]
|
D | 5-1.c | 40 #define BUF_SIZE 111 in main() macro 41 unsigned char buf[BUF_SIZE]; in main() 42 unsigned char check[BUF_SIZE]; in main() 61 for (i = 0; i < BUF_SIZE; i++) in main() 64 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 69 memset(check, 0xaa, BUF_SIZE); in main() 73 aiocb.aio_nbytes = BUF_SIZE; in main() 98 if (ret != BUF_SIZE) { in main() 106 for (i = 0; i < BUF_SIZE; i++) { in main()
|
D | 3-1.c | 39 #define BUF_SIZE 111 in main() macro 40 char buf[BUF_SIZE]; in main() 59 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 67 aiocb.aio_nbytes = BUF_SIZE; in main() 86 if (aio_return(&aiocb) != BUF_SIZE) { in main()
|
D | 3-2.c | 39 #define BUF_SIZE 1024 in main() macro 40 char buf[BUF_SIZE]; in main() 59 if (write(fd, buf, BUF_SIZE / 2) != BUF_SIZE / 2) { in main() 69 aiocb.aio_nbytes = BUF_SIZE; in main() 88 if (aio_return(&aiocb) != BUF_SIZE / 2) { in main()
|
D | 11-1.c | 42 #define BUF_SIZE 111 in main() macro 43 char buf[BUF_SIZE]; in main() 61 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 70 aiocb.aio_nbytes = BUF_SIZE; in main()
|
D | 9-1.c | 44 #define BUF_SIZE 512 in main() macro 45 char buf[BUF_SIZE]; in main() 68 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 78 aiocbs[i].aio_nbytes = BUF_SIZE; in main()
|
D | 10-1.c | 40 #define BUF_SIZE 111 in main() macro 41 char buf[BUF_SIZE]; in main() 48 memset(buf, 0xaa, BUF_SIZE); in main() 52 aiocb.aio_nbytes = BUF_SIZE; in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
D | 9-1.c | 41 #define BUF_SIZE 512 in main() macro 42 unsigned char buf[BUF_SIZE]; in main() 43 unsigned char check[BUF_SIZE]; in main() 65 for (i = 0; i < BUF_SIZE; i++) in main() 71 aiocb.aio_nbytes = BUF_SIZE; in main() 92 if (ret != BUF_SIZE) { in main() 99 memset(check, 0xaa, BUF_SIZE); in main() 101 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main() 110 for (i = 0; i < BUF_SIZE; i++) { in main()
|
D | 8-1.c | 41 #define BUF_SIZE 512 in main() macro 42 unsigned char buf[BUF_SIZE]; in main() 43 unsigned char check[BUF_SIZE]; in main() 65 for (i = 0; i < BUF_SIZE; i++) in main() 68 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 73 memset(check, 0xaa, BUF_SIZE); in main() 77 aiocb.aio_nbytes = BUF_SIZE; in main() 100 if (ret != BUF_SIZE) { in main() 108 for (i = 0; i < BUF_SIZE; i++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 28-3.c | 36 #define BUF_SIZE 8 macro 42 char str[BUF_SIZE] = "qwerty"; in main() 51 if (ftruncate(fd, BUF_SIZE) != 0) { in main() 57 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 66 if (munmap(buf, BUF_SIZE) != 0) { in main() 79 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 28-1.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; in main() 50 if (ftruncate(fd, BUF_SIZE) != 0) { in main() 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 65 if (munmap(buf, BUF_SIZE) != 0) { in main() 89 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 14-2.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; in main() 50 if (ftruncate(fd, BUF_SIZE) != 0) { in main() 55 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 69 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 1-1.c | 35 #define BUF_SIZE 8 macro 41 char str[BUF_SIZE] = "qwerty"; in main() 50 if (ftruncate(fd, BUF_SIZE) != 0) { in main() 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main() 72 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
D | 5-1.c | 42 #define BUF_SIZE 8 macro 45 char str[BUF_SIZE] = "qwerty"; 59 if (ftruncate(fd, BUF_SIZE) != 0) { in child_process() 65 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in child_process() 98 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
D | 1-1.c | 51 #define BUF_SIZE (1024*1024) macro 93 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main() 101 if (write(fd, bufs, NUM_AIOCBS * BUF_SIZE) != (NUM_AIOCBS * BUF_SIZE)) { in main() 116 aiocbs[i]->aio_offset = i * BUF_SIZE; in main() 117 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main() 118 aiocbs[i]->aio_nbytes = BUF_SIZE; in main() 180 if ((err != 0) && (ret != BUF_SIZE)) { in main() 203 if ((err != 0) && (ret != BUF_SIZE)) { in main()
|
D | 4-1.c | 41 #define BUF_SIZE (1024*1024) macro 89 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main() 97 if (write(fd, bufs, NUM_AIOCBS * BUF_SIZE) != (NUM_AIOCBS * BUF_SIZE)) { in main() 113 aiocbs[i]->aio_offset = i * BUF_SIZE; in main() 114 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main() 115 aiocbs[i]->aio_nbytes = BUF_SIZE; in main() 219 if ((err != 0) && (ret != BUF_SIZE)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
D | 4-1.c | 37 #define BUF_SIZE 111 macro 42 char buf[BUF_SIZE]; in main() 62 memset(buf, 0xaa, BUF_SIZE); in main() 66 aiocb.aio_nbytes = BUF_SIZE; in main() 86 aiocb2.aio_nbytes = BUF_SIZE; in main() 98 if (retval != BUF_SIZE) { in main()
|
D | 3-1.c | 40 #define BUF_SIZE 4096 macro 45 char buf[BUF_SIZE]; in main() 64 memset(buf, 0xaa, BUF_SIZE); in main() 68 aiocb.aio_nbytes = BUF_SIZE; in main() 94 aiocb.aio_nbytes = BUF_SIZE / 2; in main() 117 if (retval != (BUF_SIZE / 2)) { in main()
|
D | 1-1.c | 37 #define BUF_SIZE 111 macro 42 char buf[BUF_SIZE]; in main() 61 memset(buf, 0xaa, BUF_SIZE); in main() 65 aiocb.aio_nbytes = BUF_SIZE; in main() 85 } else if (retval != BUF_SIZE) { in main()
|
D | 2-1.c | 35 #define BUF_SIZE 111 macro 40 char buf[BUF_SIZE]; in main() 59 memset(buf, 0xaa, BUF_SIZE); in main() 63 aiocb.aio_nbytes = BUF_SIZE; in main() 81 if (retval != BUF_SIZE) { in main()
|
D | 3-2.c | 38 #define BUF_SIZE 4096 macro 43 char buf[BUF_SIZE]; in main() 62 memset(buf, 0xaa, BUF_SIZE); in main() 66 aiocb.aio_nbytes = BUF_SIZE; in main() 88 if (retval != BUF_SIZE) { in main()
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify02.c | 64 #define BUF_SIZE 256 macro 65 static char fname1[BUF_SIZE], fname2[BUF_SIZE], fname3[BUF_SIZE]; 70 char name[BUF_SIZE]; 136 if (getcwd(fname1, BUF_SIZE) == NULL) { in main() 138 "getcwd(%p, %d) failed", fname1, BUF_SIZE); in main() 141 snprintf(fname2, BUF_SIZE, "%s.rename1", fname1); in main() 164 snprintf(fname3, BUF_SIZE, "%s.rename2", fname1); in main()
|