/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 | 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 | 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()
|
D | fchmodat.cpp | 51 if (fd.get() == -1) return -1; in fchmodat() 58 return fchmod(fd.get(), mode); in fchmodat()
|
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 | grp_pwd_file.cpp | 237 if (fstat(fd.get(), &fd_stat) == -1) { in DoMmap() 243 void* map_result = mmap(nullptr, mmap_size, PROT_READ, MAP_SHARED, fd.get(), 0); in DoMmap()
|
D | ifaddrs.cpp | 282 if (s.get() == -1) { in get_interface_flags_via_ioctl() 293 if (ioctl(s.get(), SIOCGIFFLAGS, &ifr) != -1) { in get_interface_flags_via_ioctl()
|
/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 | 86 auto diag_printer = std::make_unique<TextDiagnosticPrinter>(llvm::errs(), diag_opts.get()); in constructDiags() 89 new DiagnosticsEngine(diag_ids.get(), diag_opts.get(), diag_printer.release())); in constructDiags() 246 if (!CompilerInvocation::CreateFromArgs(*invocation.get(), cc1_flags, *diags)) { in compileHeader() 253 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()
|
D | Utils.h | 36 return dirname(path_copy.get()); in dirname()
|
/bionic/tests/ |
D | fdsan_test.cpp | 169 EXPECT_FDSAN_DEATH(close(fd.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 181 ASSERT_EQ(-1, fd.get()); in TEST_F() 182 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 189 ASSERT_EQ(-1, fd.get()); in TEST_F() 190 ASSERT_GT(fd_moved.get(), -1); in TEST_F() 193 EXPECT_FDSAN_DEATH(close(fd_moved.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 204 close(fd.get()); in TEST_F()
|
D | heap_tagging_level_test.cpp | 137 EXPECT_EQ(untag_address(p.get()), p.get()); in TEST()
|
D | mte_test.cpp | 32 reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(p.get()) + (1ULL << 56)); in test_tag_mismatch()
|
D | utils.h | 121 while (fgets(line, sizeof(line), fp.get()) != nullptr) { in parse_maps() 288 while ((de = readdir(fd_dir.get())) != nullptr) { in CountOpenFds()
|
/bionic/linker/ |
D | linker_config_test.cpp | 191 ns_system = ns.get(); in run_linker_config_smoke_test() 193 ns_vndk = ns.get(); in run_linker_config_smoke_test() 195 ns_vndk_in_system = ns.get(); in run_linker_config_smoke_test()
|
D | linker_main.cpp | 277 if (fd.get() == -1) { in load_executable() 281 if (TEMP_FAILURE_RETRY(fstat(fd.get(), &result.file_stat)) == -1) { in load_executable() 286 if (!elf_reader.Read(result.path.c_str(), fd.get(), file_offset, result.file_stat.st_size)) { in load_executable()
|
/bionic/libc/private/ |
D | ScopedFd.h | 56 int get() const { in get() function
|
/bionic/libc/kernel/ |
D | README.md | 8 unmodified kernel headers in order to get rid of many annoying 30 Contains various Python and shell scripts used to get and re-generate 33 The tools to get/parse the headers:
|
/bionic/libc/malloc_debug/ |
D | README_api.md | 3 Malloc debug can be used to get information on all of the live allocations 39 *get\_malloc\_leak\_info*. This value is not variable, it is the same
|
/bionic/libc/tools/ |
D | genfunctosyscallnrs.py | 19 if syscall.get(architecture):
|