Home
last modified time | relevance | path

Searched refs:ipc_fd (Results 1 – 2 of 2) sorted by relevance

/external/ltp/lib/
Dtst_test.c53 static int ipc_fd; variable
82 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc()
83 if (ipc_fd < 0) in setup_ipc()
86 SAFE_FTRUNCATE(ipc_fd, size); in setup_ipc()
88 results = SAFE_MMAP(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ipc_fd, 0); in setup_ipc()
96 SAFE_CLOSE(ipc_fd); in setup_ipc()
108 if (ipc_fd > 0 && close(ipc_fd)) in cleanup_ipc()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process_unittest.cc543 const int ipc_fd = BrokerProcessTestHelper::GetIPCDescriptor(&open_broker); in SANDBOX_TEST_ALLOW_NOISE() local
544 SANDBOX_ASSERT(ipc_fd >= 0); in SANDBOX_TEST_ALLOW_NOISE()
554 base::UnixDomainSocket::SendMsg(ipc_fd, kBogus, sizeof(kBogus), fds)); in SANDBOX_TEST_ALLOW_NOISE()