Searched refs:shm_fd (Results 1 – 6 of 6) sorted by relevance
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 7-4.c | 44 int shm_fd; in main() local 55 shm_fd = in main() 57 if (shm_fd == -1) { in main() 64 if (ftruncate(shm_fd, size) == -1) { in main() 69 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main() 83 shm_fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 2-1.c | 53 int shm_fd; in main() local 58 shm_fd = in main() 60 if (shm_fd == -1) { in main() 65 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main() 74 MAP_SHARED, shm_fd, 0); in main() 133 MAP_SHARED, shm_fd, 0); in main()
|
D | 2-2.c | 61 int shm_fd; in main() local 67 shm_fd = in main() 69 if (shm_fd == -1) { in main() 74 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main() 83 MAP_SHARED, shm_fd, 0); in main() 140 MAP_SHARED, shm_fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
D | 2-1.c | 56 int shm_fd; in main() local 84 shm_fd = in main() 86 if (shm_fd == -1) { in main() 91 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main() 100 MAP_SHARED, shm_fd, 0); in main() 165 MAP_SHARED, shm_fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
D | 2-1.c | 66 int shm_fd; in main() local 105 shm_fd = in main() 107 if (shm_fd == -1) { in main() 112 if (ftruncate(shm_fd, sizeof(pthread_barrier_t)) != 0) { in main() 120 MAP_SHARED, shm_fd, 0); in main() 150 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
|
/external/libchrome/base/memory/ |
D | shared_memory_unittest.cc | 526 int shm_fd = in TEST() local 529 EXPECT_EQ(0, fstat(shm_fd, &shm_stat)); in TEST()
|