/external/llvm/unittests/Support/ |
ReplaceFileTest.cpp | 44 class ScopedFD { 47 ScopedFD(const ScopedFD &) = delete; 48 ScopedFD &operator=(const ScopedFD &) = delete; 51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} 52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } 75 ScopedFD EventuallyCloseIt(ReadFD); 95 ScopedFD EventuallyCloseIt(ReadFD);
|
/external/libchrome/sandbox/linux/services/ |
proc_util.h | 34 static base::ScopedFD OpenProc();
|
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);
|
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() {
|
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]);
|
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());
|
yama.cc | 83 base::ScopedFD yama_scope(HANDLE_EINTR(open(kPtraceScopePath, O_RDONLY)));
|
thread_helpers.cc | 167 base::ScopedFD task_fd(ProcUtil::OpenProc()); 179 base::ScopedFD task_fd(ProcUtil::OpenProc());
|
/external/libchrome/sandbox/linux/syscall_broker/ |
broker_channel.h | 20 typedef base::ScopedFD EndPoint;
|
broker_host.cc | 178 std::vector<base::ScopedFD> fds; 196 base::ScopedFD temporary_ipc(std::move(fds[0]));
|
/external/libchrome/base/posix/ |
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_fds [all...] |
unix_domain_socket_linux.h | 46 std::vector<ScopedFD>* fds); 55 std::vector<ScopedFD>* fds, 98 std::vector<ScopedFD>* fds,
|
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/sandbox/linux/seccomp-bpf/ |
sandbox_bpf.h | 74 void SetProcFd(base::ScopedFD proc_fd); 105 base::ScopedFD proc_fd_;
|
/external/libchrome/base/files/ |
scoped_file.h | 53 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD;
|
/external/libchrome/base/test/ |
test_file_util_linux.cc | 18 ScopedFD fd(open(file.value().c_str(), O_RDONLY));
|
/external/libbrillo/brillo/ |
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/ |
file_descriptor_posix.h | 35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {}
|
/system/bt/vendor_libs/test_vendor_lib/include/ |
test_channel_transport.h | 68 std::unique_ptr<base::ScopedFD> fd_;
|
hci_transport.h | 124 std::unique_ptr<base::ScopedFD> hci_fd_; 125 std::unique_ptr<base::ScopedFD> vendor_fd_;
|
/system/connectivity/shill/ |
protobuf_lite_streams.h | 47 base::ScopedFD scoped_fd_closer_;
|
/system/bt/service/ipc/ |
ipc_handler_linux.h | 67 base::ScopedFD socket_;
|
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
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]));
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
hci_transport.cc | 58 hci_fd_.reset(new base::ScopedFD(socketpair_fds[0])); 59 vendor_fd_.reset(new base::ScopedFD(socketpair_fds[1]));
|
test_channel_transport.cc | 76 fd_.reset(new base::ScopedFD(accept_fd));
|