(name, find_next)
| 21 | |
| 22 | |
| 23 | def find_library(name, find_next): |
| 24 | subst = { |
| 25 | 'rt': 'c', |
| 26 | 'pthread': 'c', |
| 27 | 'm': 'c', |
| 28 | } |
| 29 | |
| 30 | builtin = builtin_symbols.get(subst.get(name, name)) |
| 31 | |
| 32 | if builtin: |
| 33 | return { |
| 34 | 'name': name, |
| 35 | 'symbols': builtin, |
| 36 | } |
| 37 | |
| 38 | if 'musl' in caps: |
| 39 | return None |
| 40 | |
| 41 | try: |
| 42 | subprocess.Popen.__patched__ |
| 43 | |
| 44 | return None |
| 45 | except Exception: |
| 46 | pass |
| 47 | |
| 48 | return find_next(name) |
no test coverage detected