Home
last modified time | relevance | path

Searched refs:ScopedFD (Results 1 – 25 of 27) sorted by relevance

12

/external/libchrome/base/posix/
Dunix_domain_socket_linux_unittest.cc33 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 …]
Dunix_domain_socket_linux.cc32 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()
Dunix_domain_socket_linux.h46 std::vector<ScopedFD>* fds);
55 std::vector<ScopedFD>* fds,
98 std::vector<ScopedFD>* fds,
/external/llvm/unittests/Support/
DReplaceFileTest.cpp44 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/
Dproc_util_unittest.cc17 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()
Dproc_util.cc31 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()
Dscoped_process_unittest.cc77 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()
Dcredentials_unittest.cc163 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()
Dthread_helpers.cc167 base::ScopedFD task_fd(ProcUtil::OpenProc()); in IsSingleThreaded()
179 base::ScopedFD task_fd(ProcUtil::OpenProc()); in AssertSingleThreaded()
Dproc_util.h34 static base::ScopedFD OpenProc();
Dyama.cc83 base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY))); in GetStatus()
Dcredentials.cc167 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in DropAllCapabilities()
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy_unittest.cc50 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/
Dfile_utils.cc62 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/
Dsandbox_bpf.h74 void SetProcFd(base::ScopedFD proc_fd);
105 base::ScopedFD proc_fd_;
Dsandbox_bpf.cc198 void SandboxBPF::SetProcFd(base::ScopedFD proc_fd) { in SetProcFd()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process_unittest.cc259 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()
Dbroker_host.cc178 std::vector<base::ScopedFD> fds; in HandleRequest()
196 base::ScopedFD temporary_ipc(std::move(fds[0])); in HandleRequest()
Dbroker_channel.h20 typedef base::ScopedFD EndPoint;
/external/libchrome/base/test/
Dtest_file_util_linux.cc18 ScopedFD fd(open(file.value().c_str(), O_RDONLY)); in EvictFileFromSystemCache()
/external/libchrome/base/files/
Dscoped_file.h53 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD; typedef
Dfile.h321 ScopedFD file_;
/external/libchrome/base/
Dfile_descriptor_posix.h35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {} in FileDescriptor()
/external/libchrome/base/memory/
Dshared_memory.h270 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly);
/external/libchrome/base/process/
Dprocess_posix.cc97 base::ScopedFD kq(kqueue()); in WaitForSingleNonChildProcess()

12