| 57 | |
| 58 | std::optional<std::pair<dev_t, ino_t>> devinoby(const char* lib) { |
| 59 | struct State { |
| 60 | const char* needle; |
| 61 | std::optional<std::pair<dev_t, ino_t>> result; |
| 62 | } state = { lib }; |
| 63 | |
| 64 | dl_iterate_phdr([](struct dl_phdr_info* info, size_t, void* data) -> int { |
| 65 | auto* s = static_cast<State*>(data); |
nothing calls this directly
no outgoing calls
no test coverage detected