/external/llvm/unittests/Support/ |
H A D | ReplaceFileTest.cpp | 44 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 D | broker_channel.h | 20 typedef base::ScopedFD EndPoint;
|
H A D | broker_host.cc | 178 std::vector<base::ScopedFD> fds; 196 base::ScopedFD temporary_ipc(std::move(fds[0]));
|
H A D | broker_process_unittest.cc | 259 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 D | unix_domain_socket_linux_unittest.cc | 33 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 D | unix_domain_socket_linux.h | 46 std::vector<ScopedFD>* fds); 55 std::vector<ScopedFD>* fds, 98 std::vector<ScopedFD>* fds,
|
H A D | unix_domain_socket_linux.cc | 32 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 D | scoped_file.h | 53 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD; typedef in namespace:base
|
H A D | file.h | 321 ScopedFD file_;
|
/external/libchrome/base/test/ |
H A D | test_file_util_linux.cc | 18 ScopedFD fd(open(file.value().c_str(), O_RDONLY));
|
/external/libchrome/sandbox/linux/services/ |
H A D | proc_util.h | 34 static base::ScopedFD OpenProc();
|
H A D | proc_util_unittest.cc | 17 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 D | proc_util.cc | 31 base::ScopedFD OpenDirectory(const char* path) { 33 base::ScopedFD directory_fd( 109 base::ScopedFD proc_fd( 115 base::ScopedFD ProcUtil::OpenProc() {
|
H A D | scoped_process_unittest.cc | 77 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 D | credentials_unittest.cc | 163 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 D | yama.cc | 83 base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY)));
|
H A D | thread_helpers.cc | 167 base::ScopedFD task_fd(ProcUtil::OpenProc()); 179 base::ScopedFD task_fd(ProcUtil::OpenProc());
|
H A D | credentials.cc | 167 base::ScopedFD proc_fd(ProcUtil::OpenProc());
|
/external/libchrome/sandbox/linux/seccomp-bpf/ |
H A D | sandbox_bpf.h | 74 void SetProcFd(base::ScopedFD proc_fd); 105 base::ScopedFD proc_fd_;
|
H A D | sandbox_bpf.cc | 198 void SandboxBPF::SetProcFd(base::ScopedFD proc_fd) {
|
/external/libbrillo/brillo/ |
H A D | file_utils.cc | 62 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 D | file_descriptor_posix.h | 35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {}
|
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
H A D | baseline_policy_unittest.cc | 50 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 D | shared_memory.h | 270 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly);
|
/external/libchrome/base/process/ |
H A D | process_posix.cc | 97 base::ScopedFD kq(kqueue());
|