Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | shared/dlfcn-util: add sentinel helper or for dlsym_many_or_warn() | Zbigniew Jędrzejewski-Szmek | 2021-06-24 | 1 | -1/+3 |
| | | | | I didn't do this before to avoid churn in all the users. | ||||
* | dlfcn-util: invert function naming and add helper that does the whole job | Zbigniew Jędrzejewski-Szmek | 2021-06-24 | 1 | -2/+6 |
| | | | | | | | | | | | | | We warn when the operation fails, not when it succeeds. Hence this should be "<do>_or_<handle failure>", not "<do>_and_<handle failure>". We *could* use whatever convention we want, but rust and perl are rather consistent in using the logical convention. We don't care about perl that much, but having a naming convention inverted wrt. rust would be rather confusing. Also, pretty much every implementation does similar steps, so add a nice wrapper which combines opening of the library and loading of the symbols. Also add missing sentinel attribute in dlopen_or_warn(). | ||||
* | basic,shared: move dlopen helpers to shared/ | Zbigniew Jędrzejewski-Szmek | 2021-06-24 | 1 | -0/+16 |
This was added in 88d775b734644f26fb490836769c2bc275498fde, with the apparent intent of using in shared/ and the rest of our code. It doesn't matter much for our code, since libdl is part of glibc anyway, but moving it removes one linkage from libsystemd. (libshared was already linking to libdl explicitly). |