/external/libchrome/base/posix/ |
D | unix_domain_socket_linux_unittest.cc | 33 ScopedFD scoped_fd0(fds[0]); in TEST() 34 ScopedFD scoped_fd1(fds[1]); in TEST() 44 std::vector<ScopedFD> message_fds; in TEST() 68 ScopedFD scoped_fd1(fds[1]); in TEST() 86 ScopedFD recv_sock(fds[0]); in TEST() 87 ScopedFD send_sock(fds[1]); in TEST() 99 std::vector<ScopedFD> fd_vec; in TEST() 113 ScopedFD recv_sock(fds[0]); in TEST() 114 ScopedFD send_sock(fds[1]); in TEST() 128 std::vector<ScopedFD> recv_fds; in TEST() [all …]
|
D | unix_domain_socket_linux.cc | 32 static bool CreateSocketPair(ScopedFD* one, ScopedFD* two) { in CreateSocketPair() 90 std::vector<ScopedFD>* fds) { in RecvMsg() 98 std::vector<ScopedFD>* fds, in RecvMsgWithPid() 108 std::vector<ScopedFD>* fds, in RecvMsgWithFlags() 170 fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back in RecvMsgWithFlags() 208 ScopedFD recv_sock, send_sock; in SendRecvMsgWithFlags() 224 std::vector<ScopedFD> recv_fds; in SendRecvMsgWithFlags()
|
D | unix_domain_socket_linux.h | 46 std::vector<ScopedFD>* fds); 55 std::vector<ScopedFD>* fds, 98 std::vector<ScopedFD>* fds,
|
/external/llvm/unittests/Support/ |
D | ReplaceFileTest.cpp | 44 class ScopedFD { class 47 ScopedFD(const ScopedFD &) = delete; 48 ScopedFD &operator=(const ScopedFD &) = delete; 51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} in ScopedFD() function in __anon1a3b9b960111::ScopedFD 52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } in ~ScopedFD() 75 ScopedFD EventuallyCloseIt(ReadFD); in TEST() 95 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
|
/external/libchrome/sandbox/linux/services/ |
D | proc_util_unittest.cc | 17 base::ScopedFD proc_fd(open("/proc/", O_RDONLY | O_DIRECTORY)); in TEST() 33 base::ScopedFD proc_fd_closer(proc_fd); in TEST() 41 base::ScopedFD proc_fd_closer(proc_fd); in TEST() 53 base::ScopedFD open_directory_fd_closer(open_directory_fd); in TEST()
|
D | proc_util.cc | 31 base::ScopedFD OpenDirectory(const char* path) { in OpenDirectory() 33 base::ScopedFD directory_fd( in OpenDirectory() 109 base::ScopedFD proc_fd( in HasOpenDirectory() 115 base::ScopedFD ProcUtil::OpenProc() { in OpenProc()
|
D | scoped_process_unittest.cc | 77 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 78 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST() 112 base::ScopedFD read_end_closer(pipe_fds[0]); in TEST() 113 base::ScopedFD write_end_closer(pipe_fds[1]); in TEST()
|
D | credentials_unittest.cc | 163 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST() 181 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST() 203 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST() 222 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()
|
D | thread_helpers.cc | 167 base::ScopedFD task_fd(ProcUtil::OpenProc()); in IsSingleThreaded() 179 base::ScopedFD task_fd(ProcUtil::OpenProc()); in AssertSingleThreaded()
|
D | proc_util.h | 34 static base::ScopedFD OpenProc();
|
D | yama.cc | 83 base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY))); in GetStatus()
|
D | credentials.cc | 167 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in DropAllCapabilities()
|
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
D | baseline_policy_unittest.cc | 50 void TestPipeOrSocketPair(base::ScopedFD read_end, base::ScopedFD write_end) { in TestPipeOrSocketPair() 78 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1])); in BPF_TEST_C() 164 TestPipeOrSocketPair(base::ScopedFD(sv[0]), base::ScopedFD(sv[1])); in BPF_TEST_C() 168 TestPipeOrSocketPair(base::ScopedFD(sv[0]), base::ScopedFD(sv[1])); in BPF_TEST_C()
|
/external/libbrillo/brillo/ |
D | file_utils.cc | 62 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in RegularFileOrDelete() 97 base::ScopedFD* fd_out) { in TouchFileInternal() 115 base::ScopedFD scoped_fd( in TouchFileInternal() 143 base::ScopedFD scoped_fd; in TouchFile()
|
/external/libchrome/sandbox/linux/seccomp-bpf/ |
D | sandbox_bpf.h | 74 void SetProcFd(base::ScopedFD proc_fd); 105 base::ScopedFD proc_fd_;
|
D | sandbox_bpf.cc | 198 void SandboxBPF::SetProcFd(base::ScopedFD proc_fd) { in SetProcFd()
|
/external/libchrome/sandbox/linux/syscall_broker/ |
D | broker_process_unittest.cc | 259 base::ScopedFD cpuinfo_fd_closer(cpuinfo_fd); in TestBadPaths() 319 base::ScopedFD fd_closer(fd); in TestOpenCpuinfo() 331 base::ScopedFD cpuinfo_fd_closer(cpuinfo_fd); in TestOpenCpuinfo() 340 base::ScopedFD cpuinfo_fd2_closer(cpuinfo_fd2); in TestOpenCpuinfo() 506 base::ScopedFD message_fd(available_fds[0]); in SANDBOX_TEST_ALLOW_NOISE() 586 base::ScopedFD reader(lifeline_fds[0]); in TEST() 632 base::ScopedFD scoped_fd(fd); in TEST() 647 base::ScopedFD scoped_fd(fd_check); in TEST()
|
D | broker_host.cc | 178 std::vector<base::ScopedFD> fds; in HandleRequest() 196 base::ScopedFD temporary_ipc(std::move(fds[0])); in HandleRequest()
|
D | broker_channel.h | 20 typedef base::ScopedFD EndPoint;
|
/external/libchrome/base/test/ |
D | test_file_util_linux.cc | 18 ScopedFD fd(open(file.value().c_str(), O_RDONLY)); in EvictFileFromSystemCache()
|
/external/libchrome/base/files/ |
D | scoped_file.h | 53 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD; typedef
|
D | file.h | 321 ScopedFD file_;
|
/external/libchrome/base/ |
D | file_descriptor_posix.h | 35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {} in FileDescriptor()
|
/external/libchrome/base/memory/ |
D | shared_memory.h | 270 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly);
|
/external/libchrome/base/process/ |
D | process_posix.cc | 97 base::ScopedFD kq(kqueue()); in WaitForSingleNonChildProcess()
|