mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 11:38:16 +02:00
* dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches): new win32 functions as counterpart of unix related
This commit is contained in:
parent
e26ed1576a
commit
176ab45000
2 changed files with 45 additions and 13 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-06-14 Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
* dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches):
|
||||
new win32 functions as counterpart of unix related
|
||||
|
||||
2007-06-14 Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
* cmake/modules/FindKDEWIN.cmake,
|
||||
|
|
|
|||
|
|
@ -1919,6 +1919,20 @@ _dbus_getuid(void)
|
|||
return retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* The only reason this is separate from _dbus_getpid() is to allow it
|
||||
* on Windows for logging but not for other purposes.
|
||||
*
|
||||
* @returns process ID to put in log messages
|
||||
*/
|
||||
unsigned long
|
||||
_dbus_pid_for_log (void)
|
||||
{
|
||||
return _dbus_getpid ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef DBUS_BUILD_TESTS
|
||||
/** Gets our GID
|
||||
* @returns process GID
|
||||
|
|
@ -3676,6 +3690,19 @@ again:
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the credentials of the current process.
|
||||
*
|
||||
* @param credentials credentials to fill in.
|
||||
*/
|
||||
void
|
||||
_dbus_credentials_from_current_process (DBusCredentials *credentials)
|
||||
{
|
||||
credentials->pid = _dbus_getpid ();
|
||||
credentials->uid = _dbus_getuid ();
|
||||
credentials->gid = _dbus_getgid ();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads a single byte which must be nul (an error occurs otherwise),
|
||||
* and reads unix credentials if available. Fills in pid/uid/gid with
|
||||
|
|
@ -3938,18 +3965,6 @@ _dbus_disable_sigpipe (void)
|
|||
_dbus_verbose("FIXME: implement _dbus_disable_sigpipe (void)\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the credentials of the current process.
|
||||
*
|
||||
* @param credentials credentials to fill in.
|
||||
*/
|
||||
void
|
||||
_dbus_credentials_from_current_process (DBusCredentials *credentials)
|
||||
{
|
||||
credentials->pid = _dbus_getpid ();
|
||||
credentials->uid = _dbus_getuid ();
|
||||
credentials->gid = _dbus_getgid ();
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends the contents of the given file to the string,
|
||||
|
|
@ -5131,6 +5146,18 @@ _dbus_atomic_dec (DBusAtomic *atomic)
|
|||
|
||||
#endif /* asserts or tests enabled */
|
||||
|
||||
/** @} end of sysdeps-win */
|
||||
/**
|
||||
* Called when the bus daemon is signaled to reload its configuration; any
|
||||
* caches should be nuked. Of course any caches that need explicit reload
|
||||
* are probably broken, but c'est la vie.
|
||||
*
|
||||
*
|
||||
*/
|
||||
void
|
||||
_dbus_flush_caches (void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/** @} end of sysdeps-win */
|
||||
/* tests in dbus-sysdeps-util.c */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue