4299eb3c0907100fe95d2986984b48d40cc52841 |
|
08-Jul-2015 |
Daniel Erat <derat@google.com> |
Incorporate upstream changes to v1.6.8. Squash upstream commits up to and including the v1.6.8 release (upstream commit 1cad15cc). This repository's changes from upstream are now limited to: - addition of Android.mk, CleanSpec.mk, config.h, and NOTICE files - addition of dbus/dbus-arch-deps.h and removal from dbus/.gitignore (ebae2d21, f022f55d) - WANT_PIDFILE #ifdefs added to bus/bus.c to disable writing dbus-daemon's PID to a file (3100d06a) - TRACE_LOCKS set to 0 in dbus/dbus-connection.c (88a0ffe5) - DBUS_ANDROID_LOG added to dbus/dbus-internals.c to use logcat (7de15def) - ANDROID_MANAGED_SOCKET added to dbus/dbus-sysdeps-unix.c to use an SELinux-managed socket rather than a dbus-daemon-created Unix domain socket (3100d06a) Bug: 22328216 Change-Id: I793ebdf963d9b0740f0da28f1de593d088f08406
/external/dbus/dbus/dbus-sysdeps-unix.c
|
7b1aec2081dcbcd66cc85c035e027f34c8597bc8 |
|
28-Jul-2011 |
Jaikumar Ganesh <jaikumar@google.com> |
Use Android's implementation of atomic operations Instead of generic global lock defined by d-bus on non-x86 platforms, Android could directly utilize its own atomic operation implementation. Original author: Jim Huang <jserv@0xlab.org> Change-Id: I2dfecf2f09debe57afc7d524581dd799c0f0f801
/external/dbus/dbus/dbus-sysdeps-unix.c
|
3100d06aa6965f2eaa3f8f393817d0a4858c5329 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution Change-Id: I0ab320d198c700993f361d7d3d5b46a33a708fc9
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d365dd8141e709222f3a619d7b04ec4ded6429fd |
|
31-Aug-2010 |
Havoc Pennington <hp@pobox.com> |
Change failure of setsockopt SO_REUSEADDR to be a warning, not set an error It was previously setting an error but then continuing, which is not allowed since errors can't be "piled up"
/external/dbus/dbus/dbus-sysdeps-unix.c
|
87d324c3434b03214d82c6fc30cb7a6a754318ab |
|
03-Sep-2010 |
Colin Walters <walters@verbum.org> |
Merge branch 'dbus-1.2' Conflicts: dbus/dbus-sysdeps-unix.c
|
dd31130a971593b5e20a1c4cb04f93c2aae90c84 |
|
25-May-2010 |
Lennart Poettering <lennart@poettering.net> |
systemd: add systemd-style socket-activation This is a pretty straightforward implementation of systemd-style socket activation using the reference implementation of the $LISTEN_FDS/$LISTEN_PID env var parsing as supplied by systemd upstream.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
8f5f340b77b51fed1f036a9ee9f70a31b201f2c9 |
|
29-Jun-2010 |
Sledz <sledz@MOBIL-400-586.intern.dresearch.de> |
sysdeps-unix: enable address reuse on TCP sockets This helps to avoid 'Address already in use' problems if server has been shut down, and then restarted while sockets are still active on its port. Signed-off-by: Steffen Sledz <sledz@dresearch.de>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
a44d08711c64e7ae807d2b4f181cefa848e2aa32 |
|
17-Jun-2010 |
Will Thompson <will.thompson@collabora.co.uk> |
Revert "Bug 28460 - Refactored dbus configuration access." This reverts commit 6f9077ee870ad02119facf83d1293301b4535c3b, which broke the build on Unix (see previous patch) and introduced a bunch of warnings.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
6f9077ee870ad02119facf83d1293301b4535c3b |
|
14-Jun-2010 |
Ralf Habacker <ralf.habacker@freenet.de> |
Bug 28460 - Refactored dbus configuration access. Libdbus uses several config variables. On unix these settings are read from environment variables by using _dbus_getenv. On other platforms like wince there are no environment variables available and _dbus_getenv needs an emulation for those plattforms (see dbus/dbus-sysdeps-wince-glue.c) To cleanup this emulation the appended patch adds a config api by adding _dbus_config_... functions. Also having all client config related functions listed in one header file provides a good overview about which config attributes are available. The default implementation retrieves the config values from environment variables. For other os this could be easily extended or replaced by.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
c096c5cb9ac636626e158ed327b3d9279c4de347 |
|
03-May-2010 |
Fridrich Štrba <fridrich.strba@bluewin.ch> |
Don't truncate pointers on Windows x64 platform
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ed79e030ca4a3d87803b5f4789941fd63fb84444 |
|
21-Apr-2010 |
Fridrich Štrba <fridrich.strba@bluewin.ch> |
Patch relocating "exec" variable and position of service files
/external/dbus/dbus/dbus-sysdeps-unix.c
|
235eebdb1618ecdd0f752c9bcd92c61d17752e0b |
|
19-Feb-2010 |
Colin Walters <walters@verbum.org> |
Finish moving file-related functions from dbus-sysdeps-unix to dbus-file-unix
/external/dbus/dbus/dbus-sysdeps-unix.c
|
19d48c3344fa0b43d960c2f0b8b5fbb2f9f8cb86 |
|
02-Feb-2010 |
Colin Walters <walters@verbum.org> |
Merge branch 'my-dbus-1.2' Conflicts: configure.in
|
1c6596eb52fdf196705efe6c06dcd9fe8f836afc |
|
13-Dec-2009 |
Tom Hughes <tom.hughes@palm.com> |
Use monotonic clock for _dbus_get_current_time() if it's available. _dbus_get_current_time() is used for timeouts, but uses gettimeofday(), which relies on the wall clock time, which can change. If the time is changed forwards or backwards, the timeouts are no longer valid, so the monotonic clock must be used. https://bugs.freedesktop.org/show_bug.cgi?id=25624 Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
7a4cd46284dd634c165b5c4eb23606b7c0ff4ade |
|
28-Jan-2010 |
Colin Walters <walters@verbum.org> |
Merge branch 'my-dbus-1.2' Conflicts: bus/Makefile.am dbus/dbus-sysdeps-util-unix.c dbus/dbus-transport.c test/test-service.c
|
35eb740bda2cc330f1e0a9eb3275f28fcdd7eb60 |
|
18-Dec-2009 |
Ralf Habacker <ralf.habacker@freenet.de> |
moved out DBusPipe implementation into separate files
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d9e4725fa93d03368a81f0aa3cb8e66800d96c65 |
|
22-Oct-2009 |
Frank Osterfeld <frank@kdab.net> |
Windows fixes Replace dbus_daemon_init() by dbus_publish_session_bus_address(), publishing the full address. Omit username from mutexes (not necessary as mutex names are local to session). Don't exit if publishing the address failed (allow multiple session bus instances per session). Based on 00ee92ae314 by Tor Lillqvist. Cherry-picked from commit 23945513e9a4da61d286ebfbce3897aa061ddbfe in the dbus4win repository by tml@iki.fi. Remove claim of that commit not being merged from README.dbus4win.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
0617102b4b156e40591e7af2a936a1988ef4b4d7 |
|
21-Oct-2009 |
Frank Osterfeld <frank@kdab.net> |
Fixes to the nonce code Cherry-picked from commit f9bc0f4bd036f6ede5d9850fb0f8587178c85f44 in the dbus4win repository, slightly massaged to apply by tml@iki.fi.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
25ceeeb6799849e2d1c67b421be2110aee2804ff |
|
21-Oct-2009 |
Frank Osterfeld <frank@kdab.net> |
Cleanup of nonce code Remove the write_file function and use the existing _dbus_string_save_to_file, improve error handling Cherry picked from commit 0f7b026d01be7e0fd444cdb56e5f9b7a5137a062 in the dbus4win repository. Edited to apply and fix whitespace issues by tml@iki.fi.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
5e2a99c12c7e3531d908ed4fca82caca9cb02825 |
|
21-Oct-2009 |
Frank Osterfeld <frank@kdab.net> |
The current state of the nonce-tcp implementation Merged and cleaned up patch from my [Frank Osterfeld's] local work branch. Cherry-picked from commit e2801eca57b2d9e09afd662ed5ef6fc83be73afc and edited by tml@iki.fi to make it apply, and fixing whitespace issues.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
a8cf509a06cdc42568e446dea8a54a398e1c003b |
|
22-Jul-2009 |
Benjamin Reed <rangerrick@befunk.com> |
Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed Signed-off-by: Thiago Macieira <thiago@kde.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
37019e9d271390fa8c62c1aae62d30bb9068adaa |
|
16-Jul-2009 |
Thiago Macieira <thiago@kde.org> |
Merge branch 'fd-passing' Conflicts: dbus/dbus-connection.c dbus/dbus-message-util.c dbus/dbus-sysdeps-unix.c
|
ffa322b80f512d7bcbe6cc7591b0a11c0e877a66 |
|
16-Jul-2009 |
Aurelien Jarno <aurel32@debian.org> |
Bug 19432 followup - Fix Debian/FreeBSD CMSGCRED compilation
/external/dbus/dbus/dbus-sysdeps-unix.c
|
3028841a74fbac7886be5c16843a75f19383c9b3 |
|
14-Jul-2009 |
Colin Walters <walters@verbum.org> |
Cope with dbus-launch not being in DBUS_BINDIR This is a temporary hack for systems which use DBUS_BINDIR=/bin, but then move dbus-launch back into /usr/bin. Longer term, we should explicitly support this in upstream code, or even better figure out how to move dbus-launch into /bin (e.g. dynamically load libX11 if available), or have a --with-x11-tools configure option. (cherry picked from commit 70c5285eb4b757fdd4e552e002c5d54072492152)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
5abb8aeb5e315df997cbaccfbc8865ef2b70bcf1 |
|
13-Jul-2009 |
Hasso Tepper <hasso@estpak.ee> |
Bug 19432 - Fix handling of HAVE_CMSGCRED case (FreeBSD) Fixes dbus on FreeBSD and DragonFly systems. The patch is obtained from FreeBSD ports tree. Signed-off-by: Colin Walters <walters@verbum.org> (cherry picked from commit 7bf132c7d15c1d8214b11442f053f7d53bca9a8f)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
96e785bb0614dc9ebbf6aebe12797d93a1b76b14 |
|
13-Jul-2009 |
Colin Walters <walters@verbum.org> |
Bug 14259 - Refactor _dbus_get_autolaunch_address Split out the process-launching code, which can be reused for other applications; in particular, a forthcoming patch to parse output from launchd for MacOS X. (cherry picked from commit 6b163e95e7a2318a98c16c0d0944337e38e62efa)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
44062b35af52e60b8e302488c556af0ad4443970 |
|
13-Jul-2009 |
Colin Walters <walters@verbum.org> |
Bug 14259 - Make session address lookup system-dependent On some platforms such as MacOS X and Windows, we can't depend on an environment variable to determine the address of the session bus. Create a sysdep function dbus_lookup_session_address which can be filled in with platform-specific code. (cherry picked from commit 6478ec6949c6bb794237b43d03b68f80eba1288c)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
8420a5bb5733f30d591ef6bbba8446fc9f42d3a1 |
|
13-Jul-2009 |
Benjamin Reed <ranger@befunk.com> |
Bug 14259 - Work around broken getgrouplist on MacOS X We don't get the number of groups, so allocate an arbitrary larger array. Signed-off-by: Colin Walters <walters@space-ghost.verbum.org> (cherry picked from commit c71403ddde230378e3beffee21a3d1fe6edc9bce)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
dc33f4f7749ed303374ebdf00e48ea8a471afd25 |
|
11-Jul-2009 |
Tobias Mueller <fdo-bugs@cryptobitch.de> |
Bug 21161 - Update the FSF address No comment. Signed-off-by: Colin Walters <walters@verbum.org> (cherry picked from commit 5baf2f856a9c6625993234855b07680da1c8916f)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
a8b1b8c0b2d3b13bdbb96eb7a9cbea1ea765b6f8 |
|
11-Jul-2009 |
Kurt Miller <kurt@intricatesoftware.com> |
Bug 21347 - Don't fail autolaunching if process has SIGCHLD handler If other code in the process set a global SIGCHLD handler, it will make autolaunching fail spuriously due to waitpid() failing. This fix will temporarily block SIGCHLD delivery. Signed-off-by: Colin Walters <walters@verbum.org> (cherry picked from commit 644fc38b249b490981becda4b2de5261865bba23)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
70c5285eb4b757fdd4e552e002c5d54072492152 |
|
14-Jul-2009 |
Colin Walters <walters@verbum.org> |
Cope with dbus-launch not being in DBUS_BINDIR This is a temporary hack for systems which use DBUS_BINDIR=/bin, but then move dbus-launch back into /usr/bin. Longer term, we should explicitly support this in upstream code, or even better figure out how to move dbus-launch into /bin (e.g. dynamically load libX11 if available), or have a --with-x11-tools configure option.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
7bf132c7d15c1d8214b11442f053f7d53bca9a8f |
|
13-Jul-2009 |
Hasso Tepper <hasso@estpak.ee> |
Bug 19432 - Fix handling of HAVE_CMSGCRED case (FreeBSD) Fixes dbus on FreeBSD and DragonFly systems. The patch is obtained from FreeBSD ports tree. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
6b163e95e7a2318a98c16c0d0944337e38e62efa |
|
13-Jul-2009 |
Colin Walters <walters@verbum.org> |
Bug 14259 - Refactor _dbus_get_autolaunch_address Split out the process-launching code, which can be reused for other applications; in particular, a forthcoming patch to parse output from launchd for MacOS X.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
6478ec6949c6bb794237b43d03b68f80eba1288c |
|
13-Jul-2009 |
Colin Walters <walters@verbum.org> |
Bug 14259 - Make session address lookup system-dependent On some platforms such as MacOS X and Windows, we can't depend on an environment variable to determine the address of the session bus. Create a sysdep function dbus_lookup_session_address which can be filled in with platform-specific code.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
c71403ddde230378e3beffee21a3d1fe6edc9bce |
|
13-Jul-2009 |
Benjamin Reed <ranger@befunk.com> |
Bug 14259 - Work around broken getgrouplist on MacOS X We don't get the number of groups, so allocate an arbitrary larger array. Signed-off-by: Colin Walters <walters@space-ghost.verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
5baf2f856a9c6625993234855b07680da1c8916f |
|
11-Jul-2009 |
Tobias Mueller <fdo-bugs@cryptobitch.de> |
Bug 21161 - Update the FSF address No comment. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
644fc38b249b490981becda4b2de5261865bba23 |
|
11-Jul-2009 |
Kurt Miller <kurt@intricatesoftware.com> |
Bug 21347 - Don't fail autolaunching if process has SIGCHLD handler If other code in the process set a global SIGCHLD handler, it will make autolaunching fail spuriously due to waitpid() failing. This fix will temporarily block SIGCHLD delivery. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
9293e823767daee79386cc797510808f4eed01a3 |
|
19-May-2009 |
Lennart Poettering <lennart@poettering.net> |
atomic: implement atomic operations based on gcc's __sync extension Newer gccs and intel ccs support a __sync extension for making use of atomic operations. This patch replaces the handcrafted x86 atomic operation support with usage of __sync. __sync is supported by more processors and by more compilers than the old assembler code. Also, this extension has been available on gcc for quite a while now for x86, so replacing the old assembler code should only be a loss when very old compiilers are used.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
cbf0874f018c6ddd831de26b1ac5bcf7b517e2da |
|
05-May-2009 |
Lennart Poettering <lennart@poettering.net> |
memset: replace memset() by _DBUS_ZERO where applicable
/external/dbus/dbus/dbus-sysdeps-unix.c
|
89318bbeb4076d8d9de9831d69621fc1411760d3 |
|
06-May-2009 |
Lennart Poettering <lennart@poettering.net> |
cloexec: set all sockets that are created with SOCK_CLOEXEC Since all socket users enable FD_CLOEXEC anyway we can just do that in _dbus_open_socket() and be done with it for all cases. By side effect this allows us to use SOCK_CLOEXEC and hence close the CLOEXEC race.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
18b08180aa5a4417fa1d6d268a1aad894e8a4549 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
build-system: define _GNU_SOURCE centrally Instead of having everyone define _GNU_SOURCE and similar macros seperately, simply do so centrally by using AC_USE_SYSTEM_EXTENSIONS
/external/dbus/dbus/dbus-sysdeps-unix.c
|
44f3a1465a5a3f6d2e022409a960443441662629 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
cloexec: set FD_CLOEXEC for all full duplex pipes All users of full duplex pipes enable FD_CLOEXEC later anyway so let's just do it as part of _dbus_full_duplex_pipe. By side effect this allows to make use of SOCK_CLOEXEC which fixes a race when forking/execing from a different thread at the same time as we ar in this function.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
4c4db7f9da1aa29c264a9f9d7d9fb1d774e28ee1 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
sysdeps-unix: add basic IO primitives for unix fd passing This introduces three new functions: _dbus_read_socket_with_unix_fds _dbus_write_socket_with_unix_fds _dbus_read_socket_with_unix_fds_two These work exactly like their counterpart sans 'with_unix_fds' except that they also send/recieve file descriptors along with the actual payload data.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
64c63db21ebdc81f4f830d0d9f1957259cff8f24 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
sysdeps-unix: introduce _dbus_socket_can_pass_unix_fd() This function can be used to check if a socket can be used to pass file descriptors. On platforms that don't support this at all this is hardcoded to return FALSE.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
18f7259a439740d02f6cd727e32348b51191de14 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
sysdeps-unix: introduce _dbus_dup() This is a simple wrapper around dup()-like functionality. Also handles CLOEXEC and makes sure we don't interfere with the standard I/O file descriptors 0, 1 and 2.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ff0a8993d4716cb7729f4a0ffab9ab242f82b242 |
|
22-Apr-2009 |
Lennart Poettering <lennart@poettering.net> |
sysdeps-unix: Use MSG_NOSIGNAL when available On Linux send()/sendmsg() know the special flag MSG_NOSIGNAL which if set makes sure that no SIGPIPE signal is raised when we write to a socket that has been disconnected. By using this flag we don't have to play games with SIGPIPE which is pretty ugly stuff since it touches the global process context.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
f8d2ef4aca7d74788b9c03272e9bb536254a8ac6 |
|
20-Dec-2008 |
Colin Walters <walters@verbum.org> |
Various compiler warning fixes
/external/dbus/dbus/dbus-sysdeps-unix.c
|
69ed32cbccbec9d613447cb64e9d7b1ffa11ce3c |
|
10-Dec-2008 |
Colin Walters <walters@verbum.org> |
Add syslog of security denials and configuration file reloads We need to start logging denials so that they become more easily trackable and debuggable.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
bb2a464067c6843320f367b590b0e4cb00225e50 |
|
10-Dec-2008 |
Colin Walters <walters@verbum.org> |
Add syslog of security denials and configuration file reloads We need to start logging denials so that they become more easily trackable and debuggable.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
008bca5a4e3600d56ac7c1fe984789110b83e1b2 |
|
05-Sep-2008 |
Joe Marcus Clarke <marcus@freedesktop.org> |
Bug 17061: Handle error return from sysconf correctly * dbus/dbus-sysdeps-unix.c: * dbus/dbus-sysdeps-util-unix.c: Cast return from sysconf temporarily so we actually see -1. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
e8ea01bd07eedb3c98bc0725e5799fe08499262a |
|
07-Aug-2008 |
Jens Granseuer <jensgr@gmx.net> |
Bug 13387: Fix compilation failure with AI_ADDRCONFIG Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
6531968a0b62959633627f9a74a6f19f2741261d |
|
29-Aug-2008 |
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> |
Bug 17352: synchronize the file before renaming Dbus is doing atomic file updates by copying them, changing the copy, and re-naming them. However, it does not synchronize the file before re-naming, which results in corruption in case of unclean reboots. The reason for this is that file-systems have write-back cache and they postpone writing data to the media. This patch adds the missed fsync() for the Unix part. I do not have windows so cannot provide a windows port fix. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
99ccfb952af9766148cb33f2900e86cab06d5556 |
|
19-Sep-2008 |
Tor Lillqvist <tml@iki.fi> |
Bug 16755: Ensure we use the correct errno * dbus/dbus-sysdeps-unix.c: Save errno across cleanup and use it for errors to ensure we display the right error message. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
3564e5cbe4d9c0538d6eb519904ef0befab39d75 |
|
05-Sep-2008 |
Joe Marcus Clarke <marcus@freedesktop.org> |
Bug 17061: Handle error return from sysconf correctly * dbus/dbus-sysdeps-unix.c: * dbus/dbus-sysdeps-util-unix.c: Cast return from sysconf temporarily so we actually see -1. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
9680c283586d7165e7482db8c3dcaf2d03e2f0b6 |
|
29-Aug-2008 |
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> |
Bug 17352: synchronize the file before renaming Dbus is doing atomic file updates by copying them, changing the copy, and re-naming them. However, it does not synchronize the file before re-naming, which results in corruption in case of unclean reboots. The reason for this is that file-systems have write-back cache and they postpone writing data to the media. This patch adds the missed fsync() for the Unix part. I do not have windows so cannot provide a windows port fix. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
b8e24d6b9c2edff252c54013ef96241ba5f5c1b7 |
|
07-Aug-2008 |
Jens Granseuer <jensgr@gmx.net> |
Bug 13387: Fix compilation failure with AI_ADDRCONFIG Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
dd6de35b4ebdce887c3ef0e993ee5538ca67aedb |
|
28-Jul-2008 |
Colin Walters <walters@verbum.org> |
Bug 15646: Remove spurious debugging fprintf(stderr
/external/dbus/dbus/dbus-sysdeps-unix.c
|
9d51f086b05df196b94234d6a0d388594feedd73 |
|
28-Jul-2008 |
Marc Brockschmidt <he@debian.org> |
Bug 16727: Handle ERANGE for getgr; fixes user in many groups Patch originally from Noèl Köthe. Modified by Colin Walters <walters@verbum.org> * dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-unix-utils.c: Use a while() loop to reallocate buffer if we get ERANGE return. This fixes the case where a user is in a large number of groups.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ab1eb1fd5a26affa2383b0eb7e292efd83ec2546 |
|
05-Jun-2008 |
Colin Walters <walters@verbum.org> |
Bug 15740: Solaris/ADT auditing support (simon zheng) * bus/driver.c: Add GetAdtAuditSessionData method which returns audit data for a connection. * configure.in: Detect ADT auditing support * dbus/dbus-auth.c: Read ADT auditing creds. * dbus/dbus-connection.c: Implement dbus_connection_get_adt_audit_session_data. * dbus/dbus-connection.h: Export it. * dbus/dbus-credentials.c: Add support for gathering adt_audit_data and retrieving it via _dbus_credentials_get_adt_audit_data. * dbus/dbus-credentials.h: Add DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID. * dbus/dbus-protocol.h: New error DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN. * dbus/dbus-sysdeps.c: Support for reading audit credentials via ADT API. * dbus/dbus-transport.c: New function _dbus_transport_get_adt_audit_session_data to retrieve credentials. * dbus/dbus-transport.h: Export it.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
e2bc7232069b14b7299cb8b2eab436f60a232007 |
|
28-May-2008 |
Colin Walters <walters@verbum.org> |
Bug 15947: Close file descriptors before execing helper (Markus Rechberger) * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Close file descriptors before exec.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d25151483fe0143354dc188e888a0f2d740df2da |
|
04-Mar-2008 |
John (J5) Palmieri <johnp@redhat.com> |
fix broken poll on Mac OSX - build patch by Benjamin Reed * configure.in: check for OSX's deadlocking poll * dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll don't use poll
/external/dbus/dbus/dbus-sysdeps-unix.c
|
3250072c6e46961e2979c875ce07697ef37206c7 |
|
28-Feb-2008 |
John (J5) Palmieri <johnp@redhat.com> |
define _AI_ADDRCONFIG if not defined so that we can compile with an older glibc
/external/dbus/dbus/dbus-sysdeps-unix.c
|
be8750940bac3e2c876ea45988c916c3ac182de7 |
|
21-Feb-2008 |
John (J5) Palmieri <johnp@redhat.com> |
fix build against the latest gcc/glibc * dbus/dbus-sysdeps-unix.c: define _GNU_SOURCE * bus/selinux.c: include limits.h * Patch by Matthias Clasen <mclasen at redhat.com>
/external/dbus/dbus/dbus-sysdeps-unix.c
|
85d7a8e4d7e192ab886633f0a223cc9abb47e506 |
|
15-Jan-2008 |
John (J5) Palmieri <johnp@redhat.com> |
add OOM handling in various places 2008-01-15 John (J5) Palmieri <johnp@redhat.com> * patches by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> * dbus/dbus-sysdeps-unix (_dbus_get_autolaunch_address): handle OOM (FDO Bug #12945) * dbus/dbus-uuidgen.c (return_uuid): handle OOM (FDO Bug #12928) * dbus/dbus-misc.c (dbus_get_local_machine_id): handle OOM, fix return value to return NULL not FALSE (FDO Bug #12946)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ede4e4514698612e226763ea8b6ae8ce13f2173d |
|
14-Jan-2008 |
John (J5) Palmieri <johnp@redhat.com> |
add _dbus_geteuid to fix EXTERNAL authentication in setuid applications 2008-01-14 John (J5) Palmieri <johnp@redhat.com> * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a _dbus_geteuid function to fix EXTERNAL authentication in setuid applications * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective uid of the running program (_dbus_credentials_add_from_current_process): use geteuid instead of getuid (_dbus_append_user_from_current_process): use geteuid instead of getuid * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use geteuid instead of getuid (_dbus_unix_user_is_at_console): use geteuid instead of getuid * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant that returns DBUS_UID_UNSET
/external/dbus/dbus/dbus-sysdeps-unix.c
|
176738f0f0f57de3f4c8553a411b26b171fdd117 |
|
11-Oct-2007 |
Simon McVittie <simon.mcvittie@collabora.co.uk> |
Fix detection of i486 atomic ops. Previously, the attempts to determine support at compile-time on Darwin were causing the i486 atomic ops to be used on *all* i386 or x86-64 GCC builds (AH_VERBATIM can't be conditionalized like we were trying to).
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ee71e1ff6033ad1eb2385f11d4f3678259b8397b |
|
25-Jul-2007 |
Daniel P. Berrange <dan@berrange.com> |
Switch over to using getaddrinfo for TCP clients & servers to enable IPv6
/external/dbus/dbus/dbus-sysdeps-unix.c
|
227c67220ba50ef38fabc8587bf729d21534977f |
|
24-Jul-2007 |
Richard Hughes <richard@hughsie.com> |
2007-07-24 Richard Hughes <richard@hughsie.com> * dbus/dbus-sysdeps-unix.c: (_dbus_get_standard_system_servicedirs): * dbus/dbus-sysdeps-win.c: Provide a way to get the standard system servicedirs, just like we do for the session service dirs. These should be seporate, as there may be a security issue starting up some session stuff as root. The use-case for the same binary starting up per-system _and_ per-session is also not valid.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d012387afef0ba02185ebe27bc6bb15551912e92 |
|
14-Jul-2007 |
Havoc Pennington <hp@redhat.com> |
2007-07-13 Havoc Pennington <hp@redhat.com> * Add indent-tabs-mode: nil to all file headers.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ded479fda43da9dbe5780d0a2b287b5b1dcac64e |
|
18-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-18 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.c (_dbus_read_credentials_socket): clean this up a little bit, to try and understand why telnet'ing to a server and sending a non-nul byte didn't disconnect immediately; now it seems that it does disconnect immediately as it should, though I don't understand what has changed.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
b62633b919d481265d3fd75a5d32750dbdc41ddf |
|
15-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-15 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.c (_dbus_append_session_config_file) (_dbus_append_system_config_file): new functions * bus/main.c (main): use _dbus_append_system_config_file() and _dbus_append_session_config_file() * dbus/Makefile.am (INCLUDES): move DBUS_SYSTEM_CONFIG_FILE and DBUS_SESSION_CONFIG_FILE into this makefile
/external/dbus/dbus/dbus-sysdeps-unix.c
|
43b944a0a6ea48e8a8b06ae3e638299f591cde8d |
|
15-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-15 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero) (_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr) (_dbus_strerror_from_errno): family of functions to abstract errno, though these are somewhat bogus (really we should make our socket wrappers not use errno probably - the issue is that any usage of errno that isn't socket-related probably is not cross-platform, so should either be in a unix-only file that can use errno directly, or is a bug - these general errno wrappers hide issues of this nature in non-socket code, while socket-specific API changes would not since sockets are allowed cross-platform)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
e7c0d217795f4e8eb618f82b9b3e52807436c8f1 |
|
14-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-14 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.c (_dbus_credentials_parse_and_add_user): delete this function since it was effectively the same as _dbus_credentials_add_from_username()
/external/dbus/dbus/dbus-sysdeps-unix.c
|
48c6f1472dc315c9572cb1aebf8c7b68a66f5bef |
|
14-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-14 Havoc Pennington <hp@redhat.com> * dbus/dbus-auth.c: adapt to keyring changes * dbus/dbus-keyring.c: change to avoid using user ID and home directory directly; instead use a keyring-location-from-credentials function in dbus-sysdeps * fix to use _dbus_append_user_from_current_process() instead of _dbus_username_from_current_process() or _dbus_append_desired_identity().
/external/dbus/dbus/dbus-sysdeps-unix.c
|
72697649524238bd8389670e71c9faa55b7b4a1a |
|
13-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-13 Havoc Pennington <hp@redhat.com> * dbus/dbus-server-socket.c (_dbus_server_listen_socket): support all_interfaces=true|false for tcp servers * dbus/dbus-sysdeps-unix.c (_dbus_listen_tcp_socket): support inaddr_any flag * bus/selinux.c: fix some missing includes * dbus/dbus-server-socket.c (_dbus_server_listen_socket): allow port to simply be omitted in addition to specifying 0
/external/dbus/dbus/dbus-sysdeps-unix.c
|
7be5fd95cdccdca28937804f32ca8b1308887d09 |
|
10-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-09 Havoc Pennington <hp@redhat.com> * bus/policy.c (bus_policy_create_client_policy): gracefully continue if the connection has no unix user - just don't apply any unix user dependent rules. * bus/config-parser.c: remove dbus-userdb.h usage * bus/bus.c: remove dbus-userdb.h usage * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): support Windows user function; also, fix the logic for checking auth as root in the default auth code (broken in the previous commit) * dbus/dbus-connection.c (dbus_connection_set_windows_user_function): new function (dbus_connection_get_windows_user): new function
/external/dbus/dbus/dbus-sysdeps-unix.c
|
23832672266bb4ff23b66247c0cfa1a2ed0cc97b |
|
09-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-09 Havoc Pennington <hp@redhat.com> * bus/dispatch.c (check_get_connection_unix_process_id): adapt since sysdeps-unix.h stuff isn't included anymore * bus/bus.c (bus_context_new): use more abstract functions to change user, so they can be no-ops on Windows * dbus/dbus-credentials.c, dbus/dbus-credentials.h, dbus/dbus-credentials-util.c: new files containing a fully opaque DBusCredentials data type to replace the old not opaque one. * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on windows * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean up the uses of it in bus/*.c and factor out the parts of cookie auth that depend on it
/external/dbus/dbus/dbus-sysdeps-unix.c
|
c85da0358009d318553506b94f4b24eb8783b6f9 |
|
27-Apr-2007 |
Havoc Pennington <hp@redhat.com> |
2007-04-27 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from Tobias Nygren, checking pointer to fd vs. 0 rather than checking the fd itself
/external/dbus/dbus/dbus-sysdeps-unix.c
|
6e07b30faba52c772f011a0dee999662ec46e1cb |
|
16-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* dbus/dbus-sysdeps.h (_dbus_split_paths_and_append): new prototyp (_DBUS_PATH_SEPARATOR): new macro. * dbus/dbus-sysdeps.c (_dbus_split_paths_and_append): merged from dbus/dbus-sysdeps-unix.c and dbus/dbus-sysdeps-win.c.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
fabc97752724d36149fec6fde3caf354336862eb |
|
13-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* dbus/dbus-sysdeps-win.c: fixed broken DBusPipe on win32. * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-unix.c: moved platform independent DBusPipe function to dbus-sysdeps.c.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
9362aac398e3f2ec680e30c61ebfcb1e407eff72 |
|
12-Mar-2007 |
Havoc Pennington <hp@redhat.com> |
2007-03-11 Havoc Pennington <hp@redhat.com> * tools/dbus-launch.c (do_close_stderr): fix C89 problem and formatting problem * Mostly fix the DBusPipe mess. - put line break after function return types - put space before parens - do not pass structs around by value - don't use dbus_strerror after calling supposedly cross-platform api - don't name pipe variables "fd" - abstract special fd numbers like -1 and 1
/external/dbus/dbus/dbus-sysdeps-unix.c
|
47e318a6e1893069e1326945ce1af25ddf8201d1 |
|
10-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* bus/bus.c, bus/bus.h, bus/main.c, bus/test.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-util-unix.c, dbus/dbus-sysdeps-util-win.c, bus/dbus-sysdeps-win.c,dbus/dbus-sysdeps.h: renamed _dbus_xxx_pipe to _dbus_pipe_xxx, completed _dbus_pipe support.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
f3fd4d60ad5de9f0c6576f6e100f944792fed255 |
|
10-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* dbus/dbus-sysdeps.h (_dbus_listen_tcp_socket): changed type or port to pointer, because the port is given back. * dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket): implemented returning tcp port. Skipping port parameter and non integer port values in config <listen> statement needs more effort. * dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-win.c (_dbus_listen_tcp_socket): return the real used tcp port. * bus/dbus-daemon.1.in: added <listen> tcp examples
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ee51364bd71b0867f708950332b2f0fd3bf77088 |
|
08-Mar-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* bus/bus.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps.h: rename pipe related write() function calls to _dbus_write_pipe().
/external/dbus/dbus/dbus-sysdeps-unix.c
|
4ceb86d29a68ebe52b20c8c090bc90c68a58f8c8 |
|
03-Mar-2007 |
Thiago Macieira <thiago@kde.org> |
* dbus/dbus-sysdeps-unix.c: capture the dbus-launch stderr output and add it to the DBusError message we return. * tools/dbus-launch.1: * tools/dbus-launch.c: Add option --close-stderr to, well, close stderr before starting dbus-daemon.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d45c4a1f40c80d203b6ca8efc338a61d9232846e |
|
01-Jan-2007 |
Ralf Habacker <ralf.habacker@freenet.de> |
* dbus/dbus-sysdeps-unix.c: unix compile fix, moved atomic_exchange_and_add() from dbus/dbus-sysdeps.c to here, it's used by _dbus_atomic_inc() and _dbus_atomic_dec().
/external/dbus/dbus/dbus-sysdeps-unix.c
|
2dae3a600ba5adfa47645438843e9d61b171d019 |
|
31-Dec-2006 |
Ralf Habacker <ralf.habacker@freenet.de> |
* dbus/dbus-sysdeps-unix.c: moved _dbus_atomic_inc/dec() from dbus/dbus-sysdeps.c, windows version of _dbus_atomic_inc/dec() is in dbus-sysdeps-win.c (not in this patch). * dbus/dbus-sysdeps.h: DBusAtomic::value is long on windows to fit with InterlockedInc/Decrement. - Patches from Christian Ehrlicher
/external/dbus/dbus/dbus-sysdeps-unix.c
|
5640f7a57b6c8b2e1847e99db412db3c41c9eb98 |
|
02-Nov-2006 |
John (J5) Palmieri <johnp@redhat.com> |
* configure.in: expose DBUS_DATADIR * bus/config-parser.c: add the standard_session_servicedirs element to the parser (bus_config_parser_content): process the standard_session_servicedirs element by getting the standard directories from sysdeps and merging them into the service directory list (test_default_session_servicedirs): make sure we get what we expect * bus/session.conf.in: replace the servicedir tag with the standard_session_servicedirs tag * dbus/dbus-list.h: remove the typedef of DBusList and place it in dbus-sysdeps.h to avoid circular header dependencies * dbus/dbus-sysdeps.h: add the typedef of DBusList * dbus/dbus-sysdeps-unix.c (split_paths_and_append): utility function which takes a string of directories delimited by colons, parses them out, appends a suffix and puts them in a list ignoring empty elements (_dbus_get_standard_session_servicedirs): returns the standard directories for a session bus to look for service activation files on Unix which includes the XDG_DATA_HOME, XDG_DATA_DIRS and DBUS_DATADIR directories * test/data/valid-config-files/many-rules.conf: add the standard_session_servicedirs tag to the valid config file tests
/external/dbus/dbus/dbus-sysdeps-unix.c
|
caae991f97ce1b09595d3229f2868268678b8de6 |
|
26-Oct-2006 |
John (J5) Palmieri <johnp@redhat.com> |
* dbus-sysdeps-unix.c (_dbus_set_local_creds): Clean up the LOCAL_CREDS vs CMSGCRED stuff a bit. Prefer CMSGCRED. This needs to be cleaned up more. * doc/TODO: Add a todo that *BSD hackers should look at cleaning up the CREDS issue.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
9bb44a470ffd4eace9307b47be37f9ccab276eec |
|
24-Oct-2006 |
Thiago Macieira <thiago@kde.org> |
* dbus/dbus-sysdeps.h: * dbus/dbus-sysdeps-unix.c: Add function _dbus_make_file_world_readable that chmods a file to 0644. * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Avoid writing to the static "argv" array, thereby avoiding a COW on the child process. * dbus/dbus-internals.c (_dbus_create_uuid_file_exclusively): call _dbus_make_file_world_readable on the created file.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
e19ebac55d671ecd92877af182300311afa7641a |
|
21-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-21 Havoc Pennington <hp@redhat.com> * Clean up Doxygen group markers for public API so Doxygen finds everything (not comprehensively fixed for private API). Means all remaining Doxygen warnings are just about missing docs and thus pretty simple to resolve.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
15ef0ef6fbba7827453b7973e62b6c1853576601 |
|
20-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-19 Havoc Pennington <hp@redhat.com> * Fix a pile of Doxygen warnings and missing docs
/external/dbus/dbus/dbus-sysdeps-unix.c
|
f1ca9b89e92de4d876dc5e7e85710c4d2dc87638 |
|
17-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-17 Havoc Pennington <hp@redhat.com> * dbus/dbus-internals.c (_dbus_warn_check_failed): new function to be used for return_if_fail type warnings; prefixes the pid, and fatal by default.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
ff99239bd429cb3335406dff1761a0a54ad2996b |
|
02-Oct-2006 |
John (J5) Palmieri <johnp@redhat.com> |
* dbus/dbus-sysdeps.c (_dbus_abort): Remove from #ifndef DBUS_DISABLE_ASSERTS macro to fix distcheck * dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): Remove from #if !defined (DBUS_DISABLE_ASSERT) || defined(DBUS_BUILD_TESTS) macro because _dbus_abort calls it * tools/Makefile.am: Add dbus-launch.h to the source list so distcheck works
/external/dbus/dbus/dbus-sysdeps-unix.c
|
10fe37f58213d3895229208453c3e691e554ed72 |
|
01-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-01 Havoc Pennington <hp@redhat.com> * tools/dbus-launch.c (print_variables): if no syntax is given, don't print something that's sort-of-half-sh-syntax, just print a plain key-value pairs thing. * tools/dbus-launch-x11.c: use machine ID rather than hostname for the local machine representation (but still have the hostname in the display). Remove the hostname from the display if it is localhost. Change session files to be named ~/.dbus/session-bus/machine-display. Change X atoms to be underscore-prefixed so nobody whines about ICCCM compliance. Otherwise name them the same as the env variables. Change session file format to include key-value pairs and an explanatory comment. Keys are the same as the env variables. (set_address_in_x11): X property format can't depend on sizeof(pid_t) on a particular machine, fix to always be 32 bits * tools/dbus-launch.c: make --autolaunch take a machine id argument. If --autolaunch is used with a program to run, complain for now (but add a FIXME). Also, don't look for existing bus if there's a program to run (but add a FIXME). * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): pass machine uuid to dbus-launch (avoids linking dbus-launch to libdbus just to get this, and avoids duplicating uuid-reading code). * tools/dbus-launch.1: clarify various things
/external/dbus/dbus/dbus-sysdeps-unix.c
|
a2129f7cccaf0265fffe0da79ca0510b6e01131b |
|
01-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-01 Havoc Pennington <hp@redhat.com> * dbus/dbus-connection.c (_dbus_connection_close_if_only_one_ref): Add a hack to make DBusNewConnectionFunction work right. * dbus/dbus-server-socket.c (handle_new_client_fd_and_unlock): use the hack here. Also, fix the todo about refcount leak. * dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new): and use the hack here * dbus/dbus-connection.c: Kill the "shared" flag vs. the "shareable" flag; this was completely broken, since it meant dbus_connection_open() returned a connection of unknown shared-ness. Now, we always hold a ref on anything opened as shareable. Move the call to notify dbus-bus.c into connection_forget_shared_unlocked, so libdbus consistently forgets all its knowledge of a connection at once. This exposed numerous places where things were totally broken if we dropped a ref inside get_dispatch_status_unlocked where connection_forget_shared_unlocked was previously, so move connection_forget_shared_unlocked into _dbus_connection_update_dispatch_status_and_unlock. Also move the exit_on_disconnect here. (shared_connections_shutdown): this assumed weak refs to the shared connections; since we have strong refs now, the assertion was failing and stuff was left in the hash. Fix it to close still-open shared connections. * bus/dispatch.c: fixup to use dbus_connection_open_private on the debug pipe connections * dbus/dbus-connection.c (dbus_connection_dispatch): only notify dbus-bus.c if the closed connection is in fact shared (_dbus_connection_close_possibly_shared): rename from _dbus_connection_close_internal (dbus_connection_close, dbus_connection_open, dbus_connection_open_private): Improve docs to explain the deal with when you should close or unref or both * dbus/dbus-bus.c (_dbus_bus_notify_shared_connection_disconnected_unlocked): rename from _dbus_bus_check_connection_and_unref_unlocked and modify to loop over all connections * test/test-utils.c (test_connection_shutdown): don't try to close shared connections. * test/name-test/test-threads-init.c (main): fix warnings in here * dbus/dbus-sysdeps.c (_dbus_abort): support DBUS_BLOCK_ON_ABORT env variable to cause blocking waiting for gdb; drop DBUS_PRINT_BACKTRACE and just call _dbus_print_backtrace() unconditionally. * configure.in: add -export-dynamic to libtool flags if assertions enabled so _dbus_print_backtrace works. * dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): use fprintf instead of _dbus_verbose to print the backtrace, and diagnose lack of -rdynamic/-export-dynamic
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d8155bf51bf6484a94e734601526bf211053a5e1 |
|
01-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-09-30 Havoc Pennington <hp@redhat.com> * configure.in (LT_CURRENT, LT_AGE): increment current and age to reflect addition of interfaces. * doc/dbus-specification.xml: describe a new org.freedesktop.DBus.Peer.GetMachineId method * dbus/dbus-string.c (_dbus_string_skip_white_reverse): new function (_dbus_string_skip_white, _dbus_string_skip_blank): use new DBUS_IS_ASCII_BLANK, DBUS_IS_ASCII_WHITE macros and fix assertion at end of skip_white (_dbus_string_chop_white): new function * bus/connection.c (bus_connections_setup_connection): call dbus_connection_set_route_peer_messages. * dbus/dbus-connection.c (_dbus_connection_peer_filter_unlocked_no_update): modify to support a GetMachineId method. Also, support a new flag to let the bus pass peer methods through to apps on the bus, which can be set with dbus_connection_set_route_peer_messages. Finally, handle and return an error for anything unknown on the Peer interface, which will allow us to extend the Peer interface in the future without fear that we're now intercepting something apps were wanting to see. * tools/dbus-uuidgen.c: a thin wrapper around the functions in dbus/dbus-uuidgen.c * dbus/dbus-uuidgen.c: implement the bulk of the dbus-uuidgen binary here, since most of the code is already in libdbus * dbus/dbus-sysdeps.c (_dbus_read_local_machine_uuid): read the uuid from the system config file * dbus/dbus-internals.c (_dbus_generate_uuid, _dbus_uuid_encode) (_dbus_read_uuid_file_without_creating) (_dbus_create_uuid_file_exclusively, _dbus_read_uuid_file): new uuid-related functions, partly factored out from dbus-server.c * dbus/dbus-sysdeps.c (_dbus_error_from_errno): convert EEXIST to DBUS_ERROR_FILE_EXISTS instead of EEXIST * dbus/dbus-protocol.h (DBUS_ERROR_FILE_EXISTS): add file exists error * tools/dbus-cleanup-sockets.1: explain what the point of this thing is a bit more * autogen.sh (run_configure): add --config-cache to default configure args * dbus/dbus-internals.h (_DBUS_ASSERT_ERROR_IS_SET): disable the error set/clear assertions when DBUS_DISABLE_CHECKS is defined * tools/dbus-launch.c (main): if xdisplay hasn't been opened, don't try to save address, fixes crash in make check
/external/dbus/dbus/dbus-sysdeps-unix.c
|
f6fa010403cb2badd88ce096ae91f664418508d1 |
|
30-Sep-2006 |
Thiago Macieira <thiago@kde.org> |
* configure.in: add DBUS_BINDIR as a #define to C source code. * tools/dbus-launch.c * tools/dbus-launch.h * tools/dbus-launch-x11.c: * tools/dbus-launch.1: Add the --autolaunch option to dbus-launch, which makes it scan for an existing session started with --autolaunch. With that option, it also creates an X11 window and saves the bus address and PID to it. * dbus/dbus-sysdeps.h: * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Add a function that runs "dbus-launch --autolaunch" to retrieve the running D-Bus session address (or start one if none was running) * dbus/dbus-transport.c: Add the handler for the "autolaunch:" address protocol, which tries to get the running session from dbus-launch. * dbus/dbus-bus.c: * dbus/dbus-internals.h: Make "autolaunch:" be the default D-Bus session bus address. * dbus/dbus-connection.c: Fix horrible typo in error message.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
d0971c53df10195a07bdea2d274c9c42403bb1d0 |
|
16-Sep-2006 |
Havoc Pennington <hp@redhat.com> |
2006-09-16 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.c (_dbus_open_tcp_socket) (_dbus_open_unix_socket, _dbus_open_socket): change API for _dbus_open_socket so the domain/type/protocol from system headers are not required. This is kind of pointless though unless we move part of _dbus_connect_tcp_socket into sysdeps.c instead of sysdeps-unix.c, which would mean adding a wrapper around bind/listen/etc. Also, add DBusError to the socket-opening functions so they don't require use of errno.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
08079a5bdedd6ec91cda413983e4bd3b6ee0252d |
|
16-Sep-2006 |
Havoc Pennington <hp@redhat.com> |
2006-09-16 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-unix.h: small change to Peter's patch to make dbus-sysdeps-unix-util.c build, add unix-specific sysdeps header. * dbus/dbus-sysdeps.h, dbus-sysdeps-unix.c: patch from Peter Kümmel bug #8249 to make the sysdeps.h read/write/open/close functions specifically for sockets only, and move generic read/write/open/close into unix-specific code.
/external/dbus/dbus/dbus-sysdeps-unix.c
|
e7563d502bc1400548f99dd339b5b0873eda0370 |
|
14-Sep-2006 |
John (J5) Palmieri <johnp@redhat.com> |
* dbus/dbus-sysdeps.c: Add support for LOCAL_CREDS socket credentials. Fixes "external" authentication under e.g. NetBSD which does not support any other socket credentials mechanism. (Patch from Julio M. Merino Vidal <jmmv at NetBSD dot org>)
/external/dbus/dbus/dbus-sysdeps-unix.c
|
15c60238853f2896738c23b53e574b5d9cae1635 |
|
11-Sep-2006 |
John (J5) Palmieri <johnp@redhat.com> |
* remove a bunch of todo items from the 1.0 list
/external/dbus/dbus/dbus-sysdeps-unix.c
|
8e659dac9fd5585c7b4ade836e09c22227d9ddc6 |
|
10-Sep-2006 |
Havoc Pennington <hp@redhat.com> |
2006-09-10 Havoc Pennington <hp@redhat.com> patch mostly by Peter Kümmel, bug #8211 * dbus/dbus-sysdeps-unix.c: new file, which splits out unix-specific stuff in dbus-sysdeps.c * dbus/dbus-sysdeps.c: don't include any UNIX-only headers, and move unix-specific stuff to dbus-sysdeps-unix.c * configure.in: check HAVE_ERRNO_H
/external/dbus/dbus/dbus-sysdeps-unix.c
|