Home
last modified time | relevance | path

Searched refs:shm_fd (Results 1 – 6 of 6) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D7-4.c44 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/
D2-1.c53 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()
D2-2.c61 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/
D2-1.c56 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/
D2-1.c66 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/
Dshared_memory_unittest.cc526 int shm_fd = in TEST() local
529 EXPECT_EQ(0, fstat(shm_fd, &shm_stat)); in TEST()