/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 7-4.c | 43 int shm_fd; in main() local 54 shm_fd = in main() 56 if (shm_fd == -1) { in main() 63 if (ftruncate(shm_fd, size) == -1) { in main() 68 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main() 82 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 | 60 int shm_fd; in main() local 66 shm_fd = in main() 68 if (shm_fd == -1) { in main() 73 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main() 82 MAP_SHARED, shm_fd, 0); in main() 139 MAP_SHARED, shm_fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
D | 2-1.c | 55 int shm_fd; in main() local 83 shm_fd = in main() 85 if (shm_fd == -1) { in main() 90 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main() 99 MAP_SHARED, shm_fd, 0); in main() 164 MAP_SHARED, shm_fd, 0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
D | 2-1.c | 65 int shm_fd; in main() local 104 shm_fd = in main() 106 if (shm_fd == -1) { in main() 111 if (ftruncate(shm_fd, sizeof(pthread_barrier_t)) != 0) { in main() 119 MAP_SHARED, shm_fd, 0); in main() 149 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
|
/external/adhd/cras/src/server/ |
D | cras_system_state.c | 65 int shm_fd; member 138 state.shm_fd = rw_shm_fd; in cras_system_state_init() 218 cras_shm_close_unlink(state.shm_name, state.shm_fd); in cras_system_state_deinit() 219 if (state.shm_fd_ro != state.shm_fd) in cras_system_state_deinit()
|
/external/perfetto/src/tracing/ipc/producer/ |
D | producer_ipc_client_impl.cc | 160 int shm_fd = -1; in OnConnect() local 162 shm_fd = static_cast<PosixSharedMemory*>(shared_memory_.get())->fd(); in OnConnect() 174 producer_port_.InitializeConnection(req, std::move(on_init), shm_fd); in OnConnect()
|
/external/crosvm/gpu_display/src/ |
D | dwl.rs | 97 shm_fd: ::std::os::raw::c_int, in dwl_context_surface_new()
|
D | display_wl.c | 557 int shm_fd, size_t shm_size, in dwl_context_surface_new() argument 582 wl_shm_create_pool(self->ifaces.shm, shm_fd, shm_size); in dwl_context_surface_new()
|
/external/perfetto/src/tracing/ipc/service/ |
D | producer_ipc_service.cc | 459 const int shm_fd = in SendSetupTracing() local 462 cmd.set_fd(shm_fd); in SendSetupTracing()
|
/external/libchrome/base/memory/ |
D | shared_memory_unittest.cc | 677 int shm_fd = in TEST_P() local 680 EXPECT_EQ(0, fstat(shm_fd, &shm_stat)); in TEST_P()
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 1724 static int client_attach_shm(struct cras_client *client, int shm_fd) in client_attach_shm() argument 1737 shm_fd, 0); in client_attach_shm() 1739 close(shm_fd); in client_attach_shm()
|