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

12

/external/llvm/unittests/Support/
H A DReplaceFileTest.cpp44 class ScopedFD { class in namespace:__anon13243
47 ScopedFD(const ScopedFD &) = delete;
48 ScopedFD &operator=(const ScopedFD &) = delete;
51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} function in class:__anon13243::ScopedFD
52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); }
75 ScopedFD EventuallyCloseIt(ReadFD);
95 ScopedFD EventuallyCloseIt(ReadFD);
/external/libchrome/sandbox/linux/syscall_broker/
H A Dbroker_channel.h20 typedef base::ScopedFD EndPoint;
H A Dbroker_host.cc178 std::vector<base::ScopedFD> fds;
196 base::ScopedFD temporary_ipc(std::move(fds[0]));
H A Dbroker_process_unittest.cc259 base::ScopedFD cpuinfo_fd_closer(cpuinfo_fd);
319 base::ScopedFD fd_closer(fd);
331 base::ScopedFD cpuinfo_fd_closer(cpuinfo_fd);
340 base::ScopedFD cpuinfo_fd2_closer(cpuinfo_fd2);
506 base::ScopedFD message_fd(available_fds[0]);
586 base::ScopedFD reader(lifeline_fds[0]);
632 base::ScopedFD scoped_fd(fd);
647 base::ScopedFD scoped_fd(fd_check);
/external/libchrome/base/posix/
H A Dunix_domain_socket_linux_unittest.cc33 ScopedFD scoped_fd0(fds[0]);
34 ScopedFD scoped_fd1(fds[1]);
44 std::vector<ScopedFD> message_fds;
68 ScopedFD scoped_fd1(fds[1]);
86 ScopedFD recv_sock(fds[0]);
87 ScopedFD send_sock(fds[1]);
99 std::vector<ScopedFD> fd_vec;
113 ScopedFD recv_sock(fds[0]);
114 ScopedFD send_sock(fds[1]);
128 std::vector<ScopedFD> recv_fd
[all...]
H A Dunix_domain_socket_linux.h46 std::vector<ScopedFD>* fds);
55 std::vector<ScopedFD>* fds,
98 std::vector<ScopedFD>* fds,
H A Dunix_domain_socket_linux.cc32 static bool CreateSocketPair(ScopedFD* one, ScopedFD* two) {
90 std::vector<ScopedFD>* fds) {
98 std::vector<ScopedFD>* fds,
108 std::vector<ScopedFD>* fds,
170 fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back
208 ScopedFD recv_sock, send_sock;
224 std::vector<ScopedFD> recv_fds;
/external/libchrome/base/files/
H A Dscoped_file.h53 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD; typedef in namespace:base
H A Dfile.h321 ScopedFD file_;
/external/libchrome/base/test/
H A Dtest_file_util_linux.cc18 ScopedFD fd(open(file.value().c_str(), O_RDONLY));
/external/libchrome/sandbox/linux/services/
H A Dproc_util.h34 static base::ScopedFD OpenProc();
H A Dproc_util_unittest.cc17 base::ScopedFD proc_fd(open("/proc/", O_RDONLY | O_DIRECTORY));
33 base::ScopedFD proc_fd_closer(proc_fd);
41 base::ScopedFD proc_fd_closer(proc_fd);
53 base::ScopedFD open_directory_fd_closer(open_directory_fd);
H A Dproc_util.cc31 base::ScopedFD OpenDirectory(const char* path) {
33 base::ScopedFD directory_fd(
109 base::ScopedFD proc_fd(
115 base::ScopedFD ProcUtil::OpenProc() {
H A Dscoped_process_unittest.cc77 base::ScopedFD read_end_closer(pipe_fds[0]);
78 base::ScopedFD write_end_closer(pipe_fds[1]);
112 base::ScopedFD read_end_closer(pipe_fds[0]);
113 base::ScopedFD write_end_closer(pipe_fds[1]);
H A Dcredentials_unittest.cc163 base::ScopedFD proc_fd(ProcUtil::OpenProc());
181 base::ScopedFD proc_fd(ProcUtil::OpenProc());
203 base::ScopedFD proc_fd(ProcUtil::OpenProc());
222 base::ScopedFD proc_fd(ProcUtil::OpenProc());
H A Dyama.cc83 base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY)));
H A Dthread_helpers.cc167 base::ScopedFD task_fd(ProcUtil::OpenProc());
179 base::ScopedFD task_fd(ProcUtil::OpenProc());
H A Dcredentials.cc167 base::ScopedFD proc_fd(ProcUtil::OpenProc());
/external/libchrome/sandbox/linux/seccomp-bpf/
H A Dsandbox_bpf.h74 void SetProcFd(base::ScopedFD proc_fd);
105 base::ScopedFD proc_fd_;
H A Dsandbox_bpf.cc198 void SandboxBPF::SetProcFd(base::ScopedFD proc_fd) {
/external/libbrillo/brillo/
H A Dfile_utils.cc62 base::ScopedFD scoped_fd(HANDLE_EINTR(openat(
97 base::ScopedFD* fd_out) {
115 base::ScopedFD scoped_fd(
143 base::ScopedFD scoped_fd;
/external/libchrome/base/
H A Dfile_descriptor_posix.h35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {}
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
H A Dbaseline_policy_unittest.cc50 void TestPipeOrSocketPair(base::ScopedFD read_end, base::ScopedFD write_end) {
78 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1]));
164 TestPipeOrSocketPair(base::ScopedFD(sv[0]), base::ScopedFD(sv[1]));
168 TestPipeOrSocketPair(base::ScopedFD(sv[0]), base::ScopedFD(sv[1]));
/external/libchrome/base/memory/
H A Dshared_memory.h270 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly);
/external/libchrome/base/process/
H A Dprocess_posix.cc97 base::ScopedFD kq(kqueue());

Completed in 5198 milliseconds

12