chiark / gitweb /
elogind.git
10 years agonspawn: add new --drop-capability= switch
Lennart Poettering [Wed, 20 Nov 2013 21:10:42 +0000 (22:10 +0100)]
nspawn: add new --drop-capability= switch

10 years agoevent: make sure to possibly disarm the timerfds before we reenter epoll_wait
Lennart Poettering [Wed, 20 Nov 2013 17:20:23 +0000 (18:20 +0100)]
event: make sure to possibly disarm the timerfds before we reenter epoll_wait

10 years agoevent: don't disarm invalid timerfd
Lennart Poettering [Wed, 20 Nov 2013 17:19:05 +0000 (18:19 +0100)]
event: don't disarm invalid timerfd

10 years agobus: make sure an additional ref to a busevent source doesn't cause the event source...
Lennart Poettering [Wed, 20 Nov 2013 17:18:09 +0000 (18:18 +0100)]
bus: make sure an additional ref to a busevent source doesn't cause the event source to be triggered again

10 years agoevent: whenever a time source changes pending state reshuffle elapsation prioqs
Lennart Poettering [Wed, 20 Nov 2013 17:07:07 +0000 (18:07 +0100)]
event: whenever a time source changes pending state reshuffle elapsation prioqs

10 years agoevent: when we change the io events to watch we need to figure out if a an event...
Lennart Poettering [Wed, 20 Nov 2013 15:39:22 +0000 (16:39 +0100)]
event: when we change the io events to watch we need to figure out if a an event is pending again

10 years agosd-event: fix comparison functions
Lennart Poettering [Wed, 20 Nov 2013 02:58:05 +0000 (03:58 +0100)]
sd-event: fix comparison functions

10 years agomanager: don't do plymouth in a container
Lennart Poettering [Wed, 20 Nov 2013 02:44:11 +0000 (03:44 +0100)]
manager: don't do plymouth in a container

Given that plymouth listens on an abstract namespace socket and if
CLONE_NEWNET is not used the abstract namespace is shared with the host
we might actually end up send plymouth data to the host.

10 years agobusctl: when no match is specified, add default match
Lennart Poettering [Tue, 19 Nov 2013 20:37:32 +0000 (21:37 +0100)]
busctl: when no match is specified, add default match

10 years agobus: add color and indentation to bus_message_dump()
Lennart Poettering [Tue, 19 Nov 2013 20:35:31 +0000 (21:35 +0100)]
bus: add color and indentation to bus_message_dump()

10 years agocore: convert PID 1 to libsystemd-bus
Lennart Poettering [Tue, 19 Nov 2013 20:12:59 +0000 (21:12 +0100)]
core: convert PID 1 to libsystemd-bus

This patch converts PID 1 to libsystemd-bus and thus drops the
dependency on libdbus. The only remaining code using libdbus is a test
case that validates our bus marshalling against libdbus' marshalling,
and this dependency can be turned off.

This patch also adds a couple of things to libsystem-bus, that are
necessary to make the port work:

- Synthesizing of "Disconnected" messages when bus connections are
  severed.

- Support for attaching multiple vtables for the same interface on the
  same path.

This patch also fixes the SetDefaultTarget() and GetDefaultTarget() bus
calls which used an inappropriate signature.

As a side effect we will now generate PropertiesChanged messages which
carry property contents, rather than just invalidation information.

10 years agohashmap: be a bit more conservative with pre-allocating hash tables and items
Lennart Poettering [Tue, 19 Nov 2013 20:02:59 +0000 (21:02 +0100)]
hashmap: be a bit more conservative with pre-allocating hash tables and items

10 years agoinstall: when determining where default.target points to, accept a file instead of...
Lennart Poettering [Tue, 19 Nov 2013 20:02:16 +0000 (21:02 +0100)]
install: when determining where default.target points to, accept a file instead of a symlink, too

10 years agotest: exit early if we would conflict with running user systemd
Lennart Poettering [Tue, 19 Nov 2013 20:01:24 +0000 (21:01 +0100)]
test: exit early if we would conflict with running user systemd

10 years agobus: add sd_bus_send_to() API call
Lennart Poettering [Tue, 19 Nov 2013 00:23:08 +0000 (01:23 +0100)]
bus: add sd_bus_send_to() API call

10 years agobus: bump serial number counter when sending already sealed messages
Lennart Poettering [Tue, 19 Nov 2013 00:21:27 +0000 (01:21 +0100)]
bus: bump serial number counter when sending already sealed messages

10 years agobus: sd_bus_error_setxyz calls should always return the error as errno style negative int
Lennart Poettering [Tue, 19 Nov 2013 00:19:02 +0000 (01:19 +0100)]
bus: sd_bus_error_setxyz calls should always return the error as errno style negative int

10 years agolibudev: always return NULL in _unref() APIs
Lennart Poettering [Tue, 19 Nov 2013 00:15:31 +0000 (01:15 +0100)]
libudev: always return NULL in _unref() APIs

Returning anything else but NULL would suggest the caller's reference
might still be valid, but it isn't, because the caller just invoked
_unref() after all.

This turns the return value into a typesafe shortcut that allows
unreffing and resetting a reference in one line. In contrast to
solutions for this which take a pointer to a pointer to accomplish the
same this solution is just syntactic sugar the developer can make use of
but doesn't have to, and this is particularly useful when immediately
unreffing objects returned by function calls.

10 years agolibudev: always return valid negative error codes on API functions
Lennart Poettering [Tue, 19 Nov 2013 00:14:21 +0000 (01:14 +0100)]
libudev: always return valid negative error codes on API functions

10 years agocalendar: support 'yearly' and 'annually' names the same way as cron
Lennart Poettering [Tue, 19 Nov 2013 00:13:42 +0000 (01:13 +0100)]
calendar: support 'yearly' and 'annually' names the same way as cron

10 years agohwclock: modernizations
Lennart Poettering [Tue, 19 Nov 2013 00:12:03 +0000 (01:12 +0100)]
hwclock: modernizations

10 years agomacro: add _unlikely_() to assert_return()
Lennart Poettering [Tue, 19 Nov 2013 00:10:40 +0000 (01:10 +0100)]
macro: add _unlikely_() to assert_return()

As the name indicates assert_return() is really just for assertions,
i.e. where it's a programming error if the assertion does not hold.
Hence it is safe to add _unlikely_() decorators for the expression to
check.

10 years agomacro: change assert_cc() so that it can appear outside of functions
Lennart Poettering [Tue, 19 Nov 2013 00:10:22 +0000 (01:10 +0100)]
macro: change assert_cc() so that it can appear outside of functions

10 years agoinclude: make direct includion of _sd-common.h harder
Lennart Poettering [Tue, 19 Nov 2013 00:09:48 +0000 (01:09 +0100)]
include: make direct includion of _sd-common.h harder

10 years agoinstall: use const where we can
Lennart Poettering [Tue, 19 Nov 2013 00:09:12 +0000 (01:09 +0100)]
install: use const where we can

10 years agoconf-parser: don't leak section names
Tom Gundersen [Wed, 20 Nov 2013 16:51:42 +0000 (17:51 +0100)]
conf-parser: don't leak section names

If we encounter an unknown section, we must free the previous section before
clearing the pointer.

10 years agoevent: clear pending-state when re-arming timers
David Herrmann [Wed, 20 Nov 2013 06:54:24 +0000 (07:54 +0100)]
event: clear pending-state when re-arming timers

If a timer fires and is marked pending, but an application re-arms it
before it is dispatched, we now clear the pending state.

This fixes a bug where an application arms a timer, which fires and is
marked pending. But before it is dispatched, the application loses
interest in it and disables it. Now if the timer is re-armed and
re-enabled later, it will be immediately dispatched as it is still marked
pending.

This behavior is unexpected, so avoid it by clearing pending state when
re-arming timers. Note that applications have no way to clear pending
state themselves, so there's no current workaround.

10 years agobus: fix error-path in bus_map_all_properties()
David Herrmann [Wed, 20 Nov 2013 15:18:37 +0000 (16:18 +0100)]
bus: fix error-path in bus_map_all_properties()

We shouldn't return positive integers on errors. Fix the typo by removing
the negation.

10 years agobus/rtnl: silence clang warnings
Thomas Hindoe Paaboel Andersen [Tue, 19 Nov 2013 20:12:38 +0000 (21:12 +0100)]
bus/rtnl: silence clang warnings

10 years agonetworkd: make sure Links and Networks are freed
Tom Gundersen [Mon, 18 Nov 2013 10:54:09 +0000 (11:54 +0100)]
networkd: make sure Links and Networks are freed

10 years agokeymap: Add Toshiba Satellite U940
Jose Ignacio Naranjo [Sun, 17 Nov 2013 20:11:34 +0000 (21:11 +0100)]
keymap: Add Toshiba Satellite U940

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
10 years agolocaled: match converted keymaps before legacy
Zbigniew Jędrzejewski-Szmek [Mon, 18 Nov 2013 18:42:57 +0000 (13:42 -0500)]
localed: match converted keymaps before legacy

Before, X11 keymap fr-pc105-oss would be converted to fr,
even though fr-oss exists. Now, if
/usr/lib/kbd/keymaps/xkb/<layout>[-<variant>].map[.gz] exists,
<layout>[-<variant>] will be used as the console keymap,
falling back to the legacy mappings otherwise.

% sudo localectl set-x11-keymap pl pc105
% localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: pl                      (was pl2 before)
      X11 Layout: pl
       X11 Model: pc105
% sudo localectl set-x11-keymap fr pc105 oss
% localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: fr-oss                  (was fr before)
      X11 Layout: fr
       X11 Model: pc105
     X11 Variant: oss
% sudo localectl set-x11-keymap fr pc105
% localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: fr
      X11 Layout: fr
       X11 Model: pc105
% sudo localectl set-x11-keymap gb
% localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: gb                     (was uk before)
      X11 Layout: gb

10 years agolocaled: use _cleanup_
Zbigniew Jędrzejewski-Szmek [Mon, 18 Nov 2013 15:19:29 +0000 (10:19 -0500)]
localed: use _cleanup_

10 years agoRemove duplicate includes
Karel Zak [Mon, 18 Nov 2013 13:48:16 +0000 (14:48 +0100)]
Remove duplicate includes

10 years agouse #pragma once instead of foo*foo define guards
Shawn Landden [Mon, 18 Nov 2013 15:58:43 +0000 (07:58 -0800)]
use #pragma once instead of foo*foo define guards

10 years agoremove unused variables
Thomas Hindoe Paaboel Andersen [Mon, 18 Nov 2013 21:57:56 +0000 (22:57 +0100)]
remove unused variables

10 years agobus: TIMESTAMP is optional kdbus metadata now, NAMES are always added
Kay Sievers [Mon, 18 Nov 2013 00:30:57 +0000 (01:30 +0100)]
bus: TIMESTAMP is optional kdbus metadata now, NAMES are always added

10 years agocore/socket: fix SO_REUSEPORT
Shawn Landden [Sat, 16 Nov 2013 21:18:13 +0000 (13:18 -0800)]
core/socket: fix SO_REUSEPORT

10 years agocore/socket: use _cleanup_free_
Shawn Landden [Sat, 16 Nov 2013 21:18:12 +0000 (13:18 -0800)]
core/socket: use _cleanup_free_

10 years agonetworkd: make all calls async
Tom Gundersen [Thu, 14 Nov 2013 15:22:51 +0000 (16:22 +0100)]
networkd: make all calls async

10 years agonetworkd: store netmask and mac address explicitly
Tom Gundersen [Sun, 17 Nov 2013 20:01:20 +0000 (21:01 +0100)]
networkd: store netmask and mac address explicitly

10 years agobus: CREDS and NAMES are optional kdbus metadata now
Kay Sievers [Sun, 17 Nov 2013 21:35:58 +0000 (22:35 +0100)]
bus: CREDS and NAMES are optional kdbus metadata now

10 years agocatalog: add French translation
Sylvain Plantefeve [Sun, 17 Nov 2013 16:22:14 +0000 (11:22 -0500)]
catalog: add French translation

10 years agotmpfiles: adjust excludes for the new per-service private dirs
Zbigniew Jędrzejewski-Szmek [Sat, 16 Nov 2013 22:29:28 +0000 (17:29 -0500)]
tmpfiles: adjust excludes for the new per-service private dirs

In d8c9d3a (systemd: use unit name in PrivateTmp directories)
I forgot to update the tmpfiles config.

10 years agoFix RemainAfterExit services keeping a hold on console
Olivier Brunel [Thu, 14 Nov 2013 14:52:54 +0000 (15:52 +0100)]
Fix RemainAfterExit services keeping a hold on console

When a service exits succesfully and has RemainAfterExit set, its hold
on the console (in m->n_on_console) wasn't released since the unit state
didn't change.

10 years agopo: add French translation
Sylvain Plantefeve [Sat, 16 Nov 2013 16:56:14 +0000 (11:56 -0500)]
po: add French translation

10 years agobash-completion: journalctl --file
Zbigniew Jędrzejewski-Szmek [Sat, 16 Nov 2013 00:00:01 +0000 (19:00 -0500)]
bash-completion: journalctl --file

10 years agorandom-seed: improve debugging messages a bit
Zbigniew Jędrzejewski-Szmek [Wed, 13 Nov 2013 03:05:16 +0000 (22:05 -0500)]
random-seed: improve debugging messages a bit

10 years agofstab-generator: use RequiresOverridable for fsck units
Zbigniew Jędrzejewski-Szmek [Wed, 13 Nov 2013 03:01:10 +0000 (22:01 -0500)]
fstab-generator: use RequiresOverridable for fsck units

This allows the user to disable fsck's by masking.

If fsck fails, emergency target is started, the user might mount the
unit using mount and disable fsck by masking the unit. In this case,
.mount will be active because the mount is detect through
/proc/self/mountinfo, but systemd-fsck@.service will still be in
failed mode. This results in a funny situation where

$ systemctl show -p ActiveState local-fs.target yyy.mount
ActiveState=active
ActiveState=active

$ sudo systemctl start local-fs.target
[sudo] password for test:
Failed to start local-fs.target: Unit systemd-fsck@xxx.service is masked.

10 years agocore: some more _cleanup_free_
Zbigniew Jędrzejewski-Szmek [Mon, 21 Oct 2013 23:54:10 +0000 (19:54 -0400)]
core: some more _cleanup_free_

10 years agofsck,fstab-generator: be lenient about missing fsck.<type>
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 05:53:59 +0000 (00:53 -0500)]
fsck,fstab-generator: be lenient about missing fsck.<type>

If fstab contains 1 for passno, treat this as an error, but only warn
briefly. If fstab doesn't contain this information, don't complain at
all.

Patch is complicated a bit by the fact that we might have the fstype specified
in fstab or on /proc/cmdline, in which case we can check if we have the appropriate
fsck tool, or not specified, or specified as auto, in which case we have to look
and check the type of the filesystem ourselves. It cannot be done before the
device appears, so it is too early in the generator phase, and it must be done
directly in fsck service.

10 years agofsck: modernization
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 04:32:31 +0000 (23:32 -0500)]
fsck: modernization

10 years agoycm_extra_conf: include src/systemd for headers
Dave Reisner [Sat, 16 Nov 2013 03:44:15 +0000 (22:44 -0500)]
ycm_extra_conf: include src/systemd for headers

10 years agobuild: use printf to generate symbol tests
Dave Reisner [Sat, 16 Nov 2013 03:38:12 +0000 (22:38 -0500)]
build: use printf to generate symbol tests

echo is basically unportable, so use printf instead.

10 years agobuild-sys: don't mix dynamic and static libs
Tom Gundersen [Fri, 15 Nov 2013 12:47:12 +0000 (13:47 +0100)]
build-sys: don't mix dynamic and static libs

10 years agortnl: add event loop integration
Tom Gundersen [Thu, 14 Nov 2013 18:23:39 +0000 (19:23 +0100)]
rtnl: add event loop integration

10 years agobus: typo
Tom Gundersen [Thu, 14 Nov 2013 21:19:19 +0000 (22:19 +0100)]
bus: typo

Fix a couple of 'void' that should have been 'sd_bus'.

10 years agoloopback-setup: move to rtnl
Tom Gundersen [Tue, 29 Oct 2013 22:50:07 +0000 (23:50 +0100)]
loopback-setup: move to rtnl

This should be equivalent to the old behavior.

10 years agortnl: add call_async and call_async_cancel
Tom Gundersen [Wed, 13 Nov 2013 22:18:20 +0000 (23:18 +0100)]
rtnl: add call_async and call_async_cancel

They work in the same way as the sd-bus equivalents.

10 years agoUpdate TODO
Zbigniew Jędrzejewski-Szmek [Thu, 14 Nov 2013 05:08:36 +0000 (00:08 -0500)]
Update TODO

10 years agoFix possible lack of status messages on shutdown/reboot
Olivier Brunel [Fri, 20 Sep 2013 20:18:30 +0000 (22:18 +0200)]
Fix possible lack of status messages on shutdown/reboot

Since 31a7eb86 the output on console can be disabled to avoid colliding with
gettys. However, it could also lead to a lack of messages during
shutdown/reboot.

10 years agoOnly disable output on console during boot if needed
Olivier Brunel [Fri, 20 Sep 2013 20:18:29 +0000 (22:18 +0200)]
Only disable output on console during boot if needed

If there are no more jobs on console, no need/we shouldn't disable output.

10 years agoResolve /dev/console to the active tty instead of just "tty0"
Olivier Brunel [Fri, 20 Sep 2013 20:18:28 +0000 (22:18 +0200)]
Resolve /dev/console to the active tty instead of just "tty0"

When resolving /dev/console one would often get "tty0" meaning the active VT.
Resolving to the actual tty (e.g. "tty1") will notably help on boot when
determining whether or not PID1 can output to the console.

10 years agozsh-completion: add bootctl
Marko Myllynen [Thu, 14 Nov 2013 04:02:23 +0000 (23:02 -0500)]
zsh-completion: add bootctl

10 years agoman: add bootctl(8)
Marko Myllynen [Wed, 13 Nov 2013 09:06:13 +0000 (11:06 +0200)]
man: add bootctl(8)

https://bugzilla.redhat.com/show_bug.cgi?id=1014303

10 years agojournal: timestamp support on console messages
Umut Tezduyar Lindskog [Wed, 13 Nov 2013 14:27:19 +0000 (15:27 +0100)]
journal: timestamp support on console messages

journald mimics the kernel here: timestamps will be printed if
/sys/module/printk/parameters/time contains "Y".

10 years agortnl: start adding support for asynchronous messaging
Tom Gundersen [Tue, 12 Nov 2013 21:37:51 +0000 (22:37 +0100)]
rtnl: start adding support for asynchronous messaging

Similarly to sd-bus, add:

sd_rtnl_wait
sd_rtnl_process
sd_rtnl_send

and adapt sd_rtnl_call accordingly.

10 years agortnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()
Tom Gundersen [Mon, 11 Nov 2013 17:55:34 +0000 (18:55 +0100)]
rtnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()

Follow the equivalent rename in sd-bus to stay as similar as possible.

10 years agologind: create the session fifo before saving the session file
Thomas Hindoe Paaboel Andersen [Wed, 13 Nov 2013 17:06:34 +0000 (18:06 +0100)]
logind: create the session fifo before saving the session file

If the session fifo is not created the session state written to
the session file is "closing". This caused the lock screen in
gnome-shell to go into a loop trying to find the active session.

The problem was introduced in the sd-bus port in
cc3773810855956bad92337cee8fa193584ab62e

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=71525
10 years agoactivate: fix crash when -s is passed
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:16 +0000 (13:36 +0200)]
activate: fix crash when -s is passed

getopt_long() was told to accept -s which was never implemented.

10 years agoactivate: mention -E in the help text
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:17 +0000 (13:36 +0200)]
activate: mention -E in the help text

10 years agosystemctl: honor --no-legend in 'list-jobs'
Mantas Mikulėnas [Wed, 13 Nov 2013 11:36:18 +0000 (13:36 +0200)]
systemctl: honor --no-legend in 'list-jobs'

10 years agobuild: Allow disabling maintainer mode
Umut Tezduyar Lindskog [Wed, 13 Nov 2013 08:47:57 +0000 (09:47 +0100)]
build: Allow disabling maintainer mode

This allows make rules for generated build files (i.e.  configure,
Makefile.in, ... ) to be skipped.  This is useful when
the source is stored without timestamps (for example in CVS or GIT).

When the build rules trigger to regenerate the build files, it tries to
use the same autotools version (currently 1.14) as was originally used
for the release.  Since many of our build machines run Debian Squeeze,
they only have autotools 1.11 available and the build fails.

Currently, we have to work around this by touching all the generated
files before building to avoid triggering the make rule. With this
patch, we would be able to just run configure with
--disable-maintainer-mode instead.  The patch sets the default to enable
to not change the default behavior.

Ref: http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/
     ?id=f5cc26c77d2f332a9b40f51f0ec72e95711edf1e

10 years agoudev: declare some symbols static
Kay Sievers [Wed, 13 Nov 2013 02:34:24 +0000 (03:34 +0100)]
udev: declare some symbols static

10 years agolibsystemd-id128: statically include sd_listen_fds()
Kay Sievers [Wed, 13 Nov 2013 01:46:28 +0000 (02:46 +0100)]
libsystemd-id128: statically include sd_listen_fds()

10 years agobuild-sys: parallelize 'exported' target
Zbigniew Jędrzejewski-Szmek [Wed, 13 Nov 2013 00:02:28 +0000 (19:02 -0500)]
build-sys: parallelize 'exported' target

10 years agosystemd-python: fix booted() and add two functions to docs
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 00:53:59 +0000 (19:53 -0500)]
systemd-python: fix booted() and add two functions to docs

For some reason sphinx doesn't want to show inherited C functions.

10 years agobuild-sys: make public libraries depend on .sym files
Zbigniew Jędrzejewski-Szmek [Tue, 12 Nov 2013 00:32:34 +0000 (19:32 -0500)]
build-sys: make public libraries depend on .sym files

This way modyfing the .sym file causes a rebuild.

10 years agobuild-sys: add a link test for exported symbols
Zbigniew Jędrzejewski-Szmek [Mon, 11 Nov 2013 03:17:25 +0000 (22:17 -0500)]
build-sys: add a link test for exported symbols

I know that this is a pretty big net to catch some small fish,
but we *do* regularly forget to properly export symbols that
were supposed to be exported.

This time sd_bus_get_current and some renamed symbols are caught.

10 years agobuild-sys: make networkd man pages conditional
Tom Gundersen [Tue, 12 Nov 2013 21:44:18 +0000 (22:44 +0100)]
build-sys: make networkd man pages conditional

10 years agobuild-sys: Add --disable-networkd option
Colin Walters [Tue, 12 Nov 2013 20:43:17 +0000 (15:43 -0500)]
build-sys: Add --disable-networkd option

For GNOME (Continuous), we are unlikely to require or want
systemd-networkd in the near term future; all of the tools and code
are targeting NetworkManager.

The long term story is still an open question of course, but for now,
there's no reason for gnome-continuous to build or ship this.

10 years agouaccess: Add new DRM render nodes
Kristian Høgsberg [Tue, 12 Nov 2013 17:11:43 +0000 (18:11 +0100)]
uaccess: Add new DRM render nodes

10 years agoudev: declare some symbols static
Kay Sievers [Tue, 12 Nov 2013 17:09:08 +0000 (18:09 +0100)]
udev: declare some symbols static

10 years agobus: test-bus-objects - add missing header
Kay Sievers [Tue, 12 Nov 2013 14:49:36 +0000 (15:49 +0100)]
bus: test-bus-objects - add missing header

10 years agobus: add missing dump.[ch]
Lennart Poettering [Tue, 12 Nov 2013 11:11:24 +0000 (12:11 +0100)]
bus: add missing dump.[ch]

10 years agobus: beautify bus_message_dump() output a bit
Lennart Poettering [Mon, 11 Nov 2013 23:12:08 +0000 (00:12 +0100)]
bus: beautify bus_message_dump() output a bit

10 years agobusctl: show machine name of all registered names
Lennart Poettering [Mon, 11 Nov 2013 22:45:36 +0000 (23:45 +0100)]
busctl: show machine name of all registered names

10 years agobus: set no_auto_start flag for GetMachineId calls, so that we don't auto-start if...
Lennart Poettering [Mon, 11 Nov 2013 22:44:00 +0000 (23:44 +0100)]
bus: set no_auto_start flag for GetMachineId calls, so that we don't auto-start if we want to know the machine of a bus service

10 years agobus: detect blocking message calls to our own connection and return ELOOP early
Lennart Poettering [Mon, 11 Nov 2013 22:42:30 +0000 (23:42 +0100)]
bus: detect blocking message calls to our own connection and return ELOOP early

10 years agobus: add api to control auto start message flag
Lennart Poettering [Mon, 11 Nov 2013 22:42:00 +0000 (23:42 +0100)]
bus: add api to control auto start message flag

10 years agoid128: introduce SD_ID128_STRING_MAX consant for sizing id128 strings
Lennart Poettering [Mon, 11 Nov 2013 22:40:41 +0000 (23:40 +0100)]
id128: introduce SD_ID128_STRING_MAX consant for sizing id128 strings

10 years agobus: export utf8 validator calls as pure functions
Lennart Poettering [Mon, 11 Nov 2013 22:40:00 +0000 (23:40 +0100)]
bus: export utf8 validator calls as pure functions

10 years agobus: introduce concept of a default bus for each thread and make use of it everywhere
Lennart Poettering [Mon, 11 Nov 2013 21:00:48 +0000 (22:00 +0100)]
bus: introduce concept of a default bus for each thread and make use of it everywhere

We want to emphasize bus connections as per-thread communication
primitives, hence introduce a concept of a per-thread default bus, and
make use of it everywhere.

10 years agobus: introduce concept of a "default" event loop per-thread and make use of it everywhere
Lennart Poettering [Mon, 11 Nov 2013 18:34:13 +0000 (19:34 +0100)]
bus: introduce concept of a "default" event loop per-thread and make use of it everywhere

Try to emphasize a bit that there should be a mapping between event
loops and threads, hence introduce a logic that there's one "default"
event loop for each thread, that can be queried via
"sd_event_default()".

10 years agotest: fix minor memory leak in test-event
Lennart Poettering [Mon, 11 Nov 2013 18:09:02 +0000 (19:09 +0100)]
test: fix minor memory leak in test-event

10 years agobus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()
Lennart Poettering [Mon, 11 Nov 2013 17:55:34 +0000 (18:55 +0100)]
bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()

The call is one of the most important ones we expose, where we place
major emphasis on. We should make sure to give it a short, memorable
name.

10 years agosystemctl: warning: ‘r’ may be used uninitialized in this function
Kay Sievers [Mon, 11 Nov 2013 16:18:51 +0000 (17:18 +0100)]
systemctl: warning: ‘r’ may be used uninitialized in this function

10 years agoshell: add list-timers to systemctl completions
Dave Reisner [Mon, 11 Nov 2013 15:13:36 +0000 (10:13 -0500)]
shell: add list-timers to systemctl completions

10 years agosystemctl: avoid unitialized access when showing 0 timers
Zbigniew Jędrzejewski-Szmek [Mon, 11 Nov 2013 13:06:14 +0000 (08:06 -0500)]
systemctl: avoid unitialized access when showing 0 timers

10 years agobus: add APIs for adding iovecs to messages as string or arrays
Lennart Poettering [Mon, 11 Nov 2013 15:26:12 +0000 (16:26 +0100)]
bus: add APIs for adding iovecs to messages as string or arrays