/** * Wrapper for getenv(). * * @param varname name of environment variable * @returns value of environment variable or #NULL if unset */ const char* _dbus_getenv (const char *varname) { /* Don't respect any environment variables if the current process is * setuid. This is the equivalent of glibc's __secure_getenv(). */ if (_dbus_check_setuid ()) return NULL; return getenv (varname); }
dbus_bool_t _dbus_threads_init_platform_specific (void) { /* These have static variables, and we need to handle both the case * where dbus_threads_init() has been called and when it hasn't; * so initialize them before any threads are allowed to enter. */ check_monotonic_clock (); (void) _dbus_check_setuid (); return dbus_threads_init (NULL); }