/bionic/tests/ |
D | pidfd_test.cpp | 46 if (pidfd.get() == -1) { in TEST() 52 int rc = waitid(P_PIDFD, pidfd.get(), &siginfo, WEXITED); in TEST() 67 if (self.get() == -1) { in TEST() 72 unique_fd dup(pidfd_getfd(self.get(), r.get(), 0)); in TEST() 73 if (dup.get() == -1) { in TEST() 78 ASSERT_NE(r.get(), dup.get()); in TEST() 79 ASSERT_EQ(3, write(w.get(), "foo", 3)); in TEST() 81 ASSERT_EQ(3, read(dup.get(), buf, sizeof(buf))); in TEST() 89 if (self.get() == -1) { in TEST_F() 94 if (pidfd_send_signal(self.get(), 0, nullptr, 0) == -1) { in TEST_F() [all …]
|
D | fdsan_test.cpp | 179 EXPECT_FDSAN_DEATH(close(fd.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 191 ASSERT_EQ(-1, fd.get()); in TEST_F() 192 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 199 ASSERT_EQ(-1, fd.get()); in TEST_F() 200 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 203 EXPECT_FDSAN_DEATH(close(fd_moved.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 214 close(fd.get()); in TEST_F()
|
D | heap_tagging_level_test.cpp | 124 EXPECT_EQ(untag_address(p.get()), p.get()); in TEST() 195 MemtagNote note = std::get<0>(GetParam()); in TEST_P() 196 bool isStatic = std::get<1>(GetParam()); in TEST_P()
|
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 | Utils.cpp | 53 while (FTSENT* ent = fts_read(fts.get())) { in collectHeaders()
|
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.h | 36 return dirname(path_copy.get()); in dirname()
|
/bionic/libc/bionic/ |
D | android_profiling_dynamic.cpp | 129 if (sock_fd.get() == -1) { in HandleTracedPerfSignal() 136 if (connect(sock_fd.get(), reinterpret_cast<const struct sockaddr*>(&saddr), addrlen) == -1) { in HandleTracedPerfSignal() 143 if (maps_fd.get() == -1) { in HandleTracedPerfSignal() 149 if (mem_fd.get() == -1) { in HandleTracedPerfSignal() 156 int send_fds[2] = { maps_fd.get(), mem_fd.get() }; in HandleTracedPerfSignal() 174 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 | 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 | 58 if (socket_.get() == -1) { in PropertyServiceConnection() 70 if (TEMP_FAILURE_RETRY(connect(socket_.get(), in PropertyServiceConnection() 78 return socket_.get() != -1; in IsValid() 86 int result = TEMP_FAILURE_RETRY(recv(socket_.get(), value, sizeof(*value), MSG_WAITALL)); in RecvInt32() 91 return socket_.get(); in socket()
|
/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:
|
D | genfunctosyscallnrs.py | 17 if syscall.get(architecture):
|
/bionic/libc/system_properties/ |
D | Android.bp | 5 // to get the below license kinds:
|
/bionic/linker/ |
D | linker_config_test.cpp | 193 ns_system = ns.get(); in run_linker_config_smoke_test() 195 ns_vndk = ns.get(); in run_linker_config_smoke_test() 197 ns_vndk_in_system = ns.get(); in run_linker_config_smoke_test()
|
/bionic/libc/async_safe/ |
D | Android.bp | 8 // to get the below license kinds:
|
/bionic/libc/malloc_hooks/ |
D | Android.bp | 8 // to get the below license kinds:
|