cee25393d8
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps - Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected) - Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared between hotplug handler and DriverConfig::probe() to stop infinite re-probing of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided) - Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON - Add driver-manager SIGTERM handler, ACPI bus registration, --status mode, driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
33 lines
1.0 KiB
C
33 lines
1.0 KiB
C
#include "config.h"
|
|
|
|
/*
|
|
* This is the only way to disable deprecation warnings for macros, and we need
|
|
* to continue using G_MODULE_SUFFIX in the implementation of
|
|
* g_module_build_path() which is also deprecated API.
|
|
*/
|
|
#ifndef GLIB_DISABLE_DEPRECATION_WARNINGS
|
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
|
#endif
|
|
|
|
#include <glib.h>
|
|
|
|
#if (G_MODULE_IMPL == G_MODULE_IMPL_AR) || (G_MODULE_IMPL == G_MODULE_IMPL_DL)
|
|
G_GNUC_INTERNAL gchar* _g_module_build_path (const gchar *directory,
|
|
const gchar *module_name);
|
|
|
|
gchar*
|
|
_g_module_build_path (const gchar *directory,
|
|
const gchar *module_name)
|
|
{
|
|
if (directory && *directory) {
|
|
if (strncmp (module_name, "lib", 3) == 0)
|
|
return g_strconcat (directory, "/", module_name, NULL);
|
|
else
|
|
return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
|
} else if (strncmp (module_name, "lib", 3) == 0)
|
|
return g_strdup (module_name);
|
|
else
|
|
return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
|
}
|
|
#endif
|