summaryrefslogtreecommitdiff
path: root/src/basic/musl_missing.c
Commit message (Collapse)AuthorAge
* Fix bug that program_invocation_name is NULL when backgroundingSven Eden2017-03-14
| | | | | | | | | | | | | | | This is a weird issue. When elogind is started from a tty, everything works just fine. But since adding the fixes to build elogind against the musl libc, which does not provide program_invocation_name and program_invocation_short_name, glibc does not set them when elogind is background. Neither when done manually, nor when doing it using a system init tool like openrc /sbin/start-stop-daemon. The "workaround" is to allow elogind_set_program_name() to (re-)set both globals if they are either NULL, or not set to the correct value. This should work fine with both glibc and musl-libc.
* Add support for building elogind against musl libcSven Eden2017-03-14
* Check whether printf.h is available and define/undef HAVE_PRINTF_H accordingly. * Added src/shared/parse-printf-format.[hc] by Emil Renner Berthing <systemd@esmil.dk> that provides parse_printf_format() if printf.h is unavailable * Added src/basic/musl_missing.h by Juergen Buchmueller <pullmoll@t-online.de> that implements glibc functions missing in musl libc as macros. * Extended src/basic/musl_missing.h and added src/basic/musl_missing.c providing - program_invocation_name - program_invocation_short_name and - elogind_set_program_name() to set the two where appropriate. * Added calls to elogind_set_program_name() to all main() functions where needed. * A few other fixes to work nicely with musl libc.