/bionic/tests/ |
D | pidfd_test.cpp | 48 if (pidfd.get() == -1 && errno == ENOSYS) GTEST_SKIP() << "no pidfd_open() in this kernel"; in TEST() 49 ASSERT_NE(-1, pidfd.get()) << strerror(errno); in TEST() 52 int rc = waitid(P_PIDFD, pidfd.get(), &siginfo, WEXITED); in TEST() 67 if (self.get() == -1 && errno == ENOSYS) GTEST_SKIP() << "no pidfd_open() in this kernel"; in TEST() 68 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST() 70 unique_fd dup(pidfd_getfd(self.get(), r.get(), 0)); in TEST() 71 if (dup.get() == -1 && errno == ENOSYS) GTEST_SKIP() << "no pidfd_getfd() in this kernel"; in TEST() 72 ASSERT_NE(-1, dup.get()) << strerror(errno); in TEST() 74 ASSERT_NE(r.get(), dup.get()); in TEST() 75 ASSERT_EQ(3, write(w.get(), "foo", 3)); in TEST() [all …]
|
D | memtag_stack_test.cpp | 34 bool is_static = std::get<1>(GetParam()); in TEST_P() 37 const char* arg = std::get<0>(GetParam()); in TEST_P() 52 std::string s = std::get<0>(info.param); in __anon289024e40202() 53 if (std::get<1>(info.param)) s += "_static"; in __anon289024e40202()
|
D | fdsan_test.cpp | 178 EXPECT_FDSAN_DEATH(close(fd.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 190 ASSERT_EQ(-1, fd.get()); in TEST_F() 191 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 198 ASSERT_EQ(-1, fd.get()); in TEST_F() 199 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 202 EXPECT_FDSAN_DEATH(close(fd_moved.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 213 close(fd.get()); in TEST_F()
|
D | heap_tagging_level_test.cpp | 160 EXPECT_EQ(untag_address(p.get()), p.get()); in TEST() 246 MemtagNote note = std::get<0>(GetParam()); in TEST_P() 247 bool isStatic = std::get<1>(GetParam()); in TEST_P() 265 MemtagNote note = std::get<0>(info.param); in __anond4696d290302() 267 if (std::get<1>(info.param)) s += "_static"; in __anond4696d290302()
|
D | mte_test.cpp | 32 reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(p.get()) + (1ULL << 56)); in test_tag_mismatch()
|
/bionic/libc/dns/resolv/ |
D | res_data.cpp | 41 __res_state* get() { in get() function in GlobalStateAccessor 99 res_pquery(gsa.get(), msg, len, file); in fp_nquery() 106 return res_nmkquery(gsa.get(), op, dname, klass, type, data, datalen, newrr_in, buf, buflen); in res_mkquery() 111 return res_nquery(gsa.get(), name, klass, type, answer, anslen); in res_query() 116 gsa.get()->qhook = hook; in res_send_setqhook() 121 gsa.get()->rhook = hook; in res_send_setrhook() 126 return res_ourserver_p(gsa.get(), reinterpret_cast<const sockaddr*>(inp)); in res_isourserver() 131 return res_nsend(gsa.get(), buf, buflen, ans, anssiz); in res_send() 136 res_nclose(gsa.get()); in res_close() 141 return res_nsearch(gsa.get(), name, klass, type, answer, anslen); in res_search() [all …]
|
/bionic/tools/versioner/src/ |
D | VFS.cpp | 46 while (FTSENT* ent = fts_read(fts.get())) { in addDirectoryToVFS() 62 if (!vfs->addFile(file_path, ent->fts_statp->st_mtime, std::move(buffer_opt.get()))) { in addDirectoryToVFS() 72 addDirectoryToVFS(vfs.get(), header_dir); in createCommonVFS() 74 addDirectoryToVFS(vfs.get(), dependency_dir); in createCommonVFS() 88 vfs->addFile("android/versioning.h", 0, std::move(buffer_opt.get())); in createCommonVFS()
|
D | Driver.cpp | 87 auto diag_printer = std::make_unique<TextDiagnosticPrinter>(llvm::errs(), diag_opts.get()); in constructDiags() 90 new DiagnosticsEngine(diag_ids.get(), diag_opts.get(), diag_printer.release())); in constructDiags() 247 if (!CompilerInvocation::CreateFromArgs(*invocation.get(), cc1_flags, *diags)) { in compileHeader() 254 Compiler.setDiagnostics(diags.get()); in compileHeader()
|
D | SymbolDatabase.cpp | 48 ELFObjectFileBase* elf = dyn_cast_or_null<ELFObjectFileBase>(binaryOrError.get().getBinary()); in getSymbols() 61 result.insert(symbolNameOrError.get().str()); in getSymbols()
|
D | versioner.cpp | 236 compileHeader(vfs, result.get(), job.first, job.second); in compileHeaders() 249 compileHeader(vfs, result.get(), job.first, job.second); in compileHeaders() 679 if (!validityCheck(declaration_database.get())) { in main() 685 if (!checkVersions(compilation_types, declaration_database.get(), *symbol_database)) { in main() 694 declaration_database.get()); in main()
|
D | Utils.cpp | 53 while (FTSENT* ent = fts_read(fts.get())) { in collectHeaders()
|
/bionic/libc/bionic/ |
D | android_profiling_dynamic.cpp | 128 if (sock_fd.get() == -1) { in HandleTracedPerfSignal() 135 if (connect(sock_fd.get(), reinterpret_cast<const struct sockaddr*>(&saddr), addrlen) == -1) { in HandleTracedPerfSignal() 154 if (maps_fd.get() == -1) { in HandleTracedPerfSignal() 158 if (mem_fd.get() == -1) { in HandleTracedPerfSignal() 164 int send_fds[2] = { maps_fd.get(), mem_fd.get() }; in HandleTracedPerfSignal() 182 if (sendmsg(sock_fd.get(), &msg_hdr, 0) == -1) { in HandleTracedPerfSignal()
|
D | bionic_netlink.cpp | 58 if (fd_.get() == -1) { in SendRequest() 60 if (fd_.get() == -1) return false; in SendRequest() 73 return (TEMP_FAILURE_RETRY(send(fd_.get(), &request, sizeof(request), 0)) == sizeof(request)); in SendRequest() 79 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_.get(), data_, size_, 0))) > 0) { in ReadResponses()
|
D | execinfo.cpp | 114 if (fd.get() == -1) { in backtrace_symbols() 117 backtrace_symbols_fd(buffer, size, fd.get()); in backtrace_symbols() 120 off_t file_size = lseek(fd.get(), 0, SEEK_END); in backtrace_symbols() 143 lseek(fd.get(), 0, SEEK_SET); in backtrace_symbols() 144 ssize_t num_read = read(fd.get(), cur_string, file_size); in backtrace_symbols()
|
D | realpath.cpp | 55 if (fd.get() == -1) return nullptr; in realpath() 59 if (fstat(fd.get(), &sb) == -1) return nullptr; in realpath() 64 FdPath fd_path(fd.get()); in realpath()
|
D | fchmodat.cpp | 51 if (fd.get() == -1) return -1; in fchmodat() 58 return fchmod(fd.get(), mode); in fchmodat()
|
D | net_if.cpp | 49 if (s.get() == -1) return nullptr; in if_indextoname() 52 return (ioctl(s.get(), SIOCGIFNAME, &ifr) == -1) ? nullptr in if_indextoname() 58 if (s.get() == -1) return 0; in if_nametoindex() 63 return (ioctl(s.get(), SIOCGIFINDEX, &ifr) == -1) ? 0 : ifr.ifr_ifindex; in if_nametoindex()
|
D | getentropy.cpp | 38 if (fd.get() == -1) return -1; in getentropy_urandom() 42 ssize_t count = TEMP_FAILURE_RETRY(read(fd.get(), static_cast<char*>(buffer) + collected, in getentropy_urandom()
|
D | system_property_set.cpp | 60 if (socket_.get() == -1) { in PropertyServiceConnection() 83 if (TEMP_FAILURE_RETRY(connect(socket_.get(), in PropertyServiceConnection() 91 return socket_.get() != -1; in IsValid() 99 int result = TEMP_FAILURE_RETRY(recv(socket_.get(), value, sizeof(*value), MSG_WAITALL)); in RecvInt32() 104 return socket_.get(); in socket()
|
/bionic/linker/ |
D | linker_crt_pad_segment_test.cpp | 59 EXPECT_GE(fd.get(), 0) << "Failed to open " << path << ": " << strerror(errno); in GetPadSegment() 62 EXPECT_NE(TEMP_FAILURE_RETRY(fstat(fd.get(), &file_stat)), -1) in GetPadSegment() 66 EXPECT_TRUE(elf_reader.Read(path.c_str(), fd.get(), 0, file_stat.st_size)) in GetPadSegment()
|
D | linker_config_test.cpp | 229 ns_system = ns.get(); in run_linker_config_smoke_test() 231 ns_vndk = ns.get(); in run_linker_config_smoke_test() 233 ns_vndk_in_system = ns.get(); in run_linker_config_smoke_test()
|
/bionic/libc/private/ |
D | ScopedFd.h | 56 int get() const { in get() function
|
/bionic/libc/tools/ |
D | Android.bp | 5 // to get the below license kinds:
|
/bionic/libc/async_safe/ |
D | Android.bp | 8 // to get the below license kinds:
|
/bionic/libc/system_properties/ |
D | Android.bp | 6 // to get the below license kinds:
|