[systemd-commits] 2 commits - TODO src/libsystemd-bus
Lennart Poettering
lennart at kemper.freedesktop.org
Wed Apr 17 09:48:40 PDT 2013
TODO | 8 ++++++++
src/libsystemd-bus/bus-kernel.c | 5 +++--
2 files changed, 11 insertions(+), 2 deletions(-)
New commits:
commit b454b11220e87add6d0f011695c7912b009c853d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Apr 17 18:48:23 2013 +0200
update TODO
diff --git a/TODO b/TODO
index 3c0425a..88be72d 100644
--- a/TODO
+++ b/TODO
@@ -36,6 +36,14 @@ Fedora 19:
Features:
+* maybe add a generator that looks for "systemd.run=" on the kernel cmdline for container usercases...
+
+* timedatctl, localectl: possibly make some commands work without the daemon, for chroot situations...
+
+* nspawn: expose init PID and UUID as cgroup EAs
+
+* logind: consider making suspend inhibitor locks non-session specific, but keep suspend-key inhibitor locks session specific
+
* logind: add Suspend() bus calls which take timestamps to fix double suspend issues when somebody hits suspend and closes laptop quickly.
* we need dynamic units
commit c556fe792d4075a365b276e51666a8009d7dca19
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Apr 17 18:45:45 2013 +0200
bus: replace aligned_alloc() with memalign() everywhere
aligned_alloc() is C11 and not available everywhere. Also it would
require us to align the size value. So let's just invoke memalign()
instead, which is universally available and doesn't have any alignment
restrictions on the size parameter.
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 086877e..2bb1b9a 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -24,6 +24,7 @@
#endif
#include <fcntl.h>
+#include <malloc.h>
#include "util.h"
@@ -199,7 +200,7 @@ static int bus_message_setup_kmsg(sd_bus *b, sd_bus_message *m) {
sz += ALIGN8(offsetof(struct kdbus_msg_item, str) + dl + 1);
}
- m->kdbus = aligned_alloc(8, sz);
+ m->kdbus = memalign(8, sz);
if (!m->kdbus)
return -ENOMEM;
@@ -500,7 +501,7 @@ int bus_kernel_read_message(sd_bus *bus, sd_bus_message **m) {
for (;;) {
void *q;
- q = aligned_alloc(8, sz);
+ q = memalign(8, sz);
if (!q)
return -errno;
More information about the systemd-commits
mailing list