Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 55) sorted by relevance

123

/bionic/libc/bionic/
Dandroid_profiling_dynamic.cpp129 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()
Dbionic_netlink.cpp58 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()
Drealpath.cpp55 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()
Dnet_if.cpp49 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()
Dsystem_property_set.cpp58 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()
Dfchmodat.cpp51 if (fd.get() == -1) return -1; in fchmodat()
58 return fchmod(fd.get(), mode); in fchmodat()
Dgetentropy.cpp38 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()
Dgrp_pwd_file.cpp237 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()
Difaddrs.cpp282 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/
DVFS.cpp46 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()
DDriver.cpp86 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()
DSymbolDatabase.cpp48 ELFObjectFileBase* elf = dyn_cast_or_null<ELFObjectFileBase>(binaryOrError.get().getBinary()); in getSymbols()
61 result.insert(symbolNameOrError.get().str()); in getSymbols()
Dversioner.cpp236 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()
DUtils.cpp53 while (FTSENT* ent = fts_read(fts.get())) { in collectHeaders()
DUtils.h36 return dirname(path_copy.get()); in dirname()
/bionic/tests/
Dfdsan_test.cpp169 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()
Dheap_tagging_level_test.cpp137 EXPECT_EQ(untag_address(p.get()), p.get()); in TEST()
Dmte_test.cpp32 reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(p.get()) + (1ULL << 56)); in test_tag_mismatch()
Dutils.h121 while (fgets(line, sizeof(line), fp.get()) != nullptr) { in parse_maps()
288 while ((de = readdir(fd_dir.get())) != nullptr) { in CountOpenFds()
/bionic/linker/
Dlinker_config_test.cpp191 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()
Dlinker_main.cpp277 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/
DScopedFd.h56 int get() const { in get() function
/bionic/libc/kernel/
DREADME.md8 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/
DREADME_api.md3 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/
Dgenfunctosyscallnrs.py19 if syscall.get(architecture):

123