Lennart Poettering
151b9b9662
api: in constructor function calls, always put the returned object pointer first (or second)
...
Previously the returned object of constructor functions where sometimes
returned as last, sometimes as first and sometimes as second parameter.
Let's clean this up a bit. Here are the new rules:
1. The object the new object is derived from is put first, if there is any
2. The object we are creating will be returned in the next arguments
3. This is followed by any additional arguments
Rationale:
For functions that operate on an object we always put that object first.
Constructors should probably not be too different in this regard. Also,
if the additional parameters might want to use varargs which suggests to
put them last.
Note that this new scheme only applies to constructor functions, not to
all other functions. We do give a lot of freedom for those.
Note that this commit only changes the order of the new functions we
added, for old ones we accept the wrong order and leave it like that.
2014-02-20 00:03:10 +01:00
Jason A. Donenfeld
3db729cb8e
sd-bus: the bus returned should be the first arg
...
This matches the API of previous headers, such as sd-journal.h.
2014-02-20 00:03:09 +01:00
Tom Gundersen
e51660ae56
udev: net-config - allow interface names to be set from the hwdb
2014-02-19 23:29:51 +01:00
Kay Sievers
dd8875f939
build-sys: install experimental man pages only with --enable-kdbus
2014-02-19 21:16:55 +01:00
Lennart Poettering
e2044076bf
build-sys: bump release in preparation for release
2014-02-19 21:03:55 +01:00
Kay Sievers
b20e61f436
build-sys: enable compat-libs for distcheck
2014-02-19 20:53:18 +01:00
Kay Sievers
2b0a23e864
build-sys: export experimental symbols only with --enable-kdbus
2014-02-19 20:53:18 +01:00
Lennart Poettering
23abf5d582
bus: fix unreffing logic
2014-02-19 20:36:17 +01:00
Tom Gundersen
8f61afd8d8
sd-dhcp-client: fix mixup between raw and udp sockets
2014-02-19 19:48:10 +01:00
Kay Sievers
4a8cf55467
build-sys: add gcrypt CFLAGS
2014-02-19 18:46:27 +01:00
Lennart Poettering
14bf87881b
man: fix references to .pc files which aren't separate anymore
2014-02-19 18:31:03 +01:00
Kay Sievers
952d1536f4
sd-damon is LGPL now
2014-02-19 18:23:14 +01:00
Lennart Poettering
d4fdc205a4
update TODO
2014-02-19 18:20:12 +01:00
Lennart Poettering
26e3ff59a6
man: don't advertise sd-daemon as embeddable anymore
...
It's now part of libsystemd, and should be used like any other API.
2014-02-19 18:20:12 +01:00
Kay Sievers
add00dfd1f
build-sys: merge libsystemd-journal into libsystemd
2014-02-19 18:12:58 +01:00
Thomas Hindoe Paaboel Andersen
51f6888bfc
busctl: install bash completion
2014-02-19 18:05:07 +01:00
Lennart Poettering
e26da2dcea
tmpfiles: simplification
2014-02-19 17:53:50 +01:00
Lennart Poettering
833fce2857
util: simplify get_ctty()
2014-02-19 17:53:50 +01:00
Lennart Poettering
480a61ae74
timedatectl: fix minor memory leak
2014-02-19 17:53:50 +01:00
Lennart Poettering
d4f1ef4437
udev: make sure we always return a valid error code in trie_store()
2014-02-19 17:53:50 +01:00
Lennart Poettering
0f0e240cb8
sd-id128: use new dev_urandom() call
2014-02-19 17:53:50 +01:00
Lennart Poettering
581483bf59
journal: don't clobber return parameters of sd_journal_get_cutoff_realtime_usec() on failure
2014-02-19 17:53:50 +01:00
Lennart Poettering
1756a0118e
execute: modernizations
2014-02-19 17:53:50 +01:00
Lennart Poettering
39883f622f
make gcc shut up
...
If -flto is used then gcc will generate a lot more warnings than before,
among them a number of use-without-initialization warnings. Most of them
without are false positives, but let's make them go away, because it
doesn't really matter.
2014-02-19 17:53:50 +01:00
Lennart Poettering
ca721e3608
NEWS: Mention the new Personality= switch in unit files
2014-02-19 17:53:50 +01:00
Thomas Hindoe Paaboel Andersen
17d47d8d2d
busctl: add --no-legend and use in bash completion
2014-02-19 17:35:35 +01:00
Thomas Hindoe Paaboel Andersen
8ec76163ff
busctl: update bash completion
2014-02-19 17:12:17 +01:00
Thomas Hindoe Paaboel Andersen
f5ca75f4a1
man: busctl typo fix
2014-02-19 17:02:45 +01:00
Tom Gundersen
5723e1760f
sd-rtnl: test - include missing.h to build on old kernels
2014-02-19 16:46:58 +01:00
Tom Gundersen
14efd7617b
networkd: dhcp - log when lease is lost
2014-02-19 16:46:58 +01:00
Tom Gundersen
216816c6bc
networkd: link - only reset transient hostname if it was set by us
2014-02-19 16:46:58 +01:00
Maciej Wereski
31d5a60cae
systemctl: remove erroneous return in runlevel_parse_argv()
2014-02-19 16:24:16 +01:00
Maciej Wereski
d1368aa9bd
logind: remove redundant check in manager_new()
2014-02-19 16:24:13 +01:00
Lennart Poettering
7bb2954901
update TODO
2014-02-19 16:23:43 +01:00
Lennart Poettering
708e25e137
label: minor optimizations
2014-02-19 16:23:43 +01:00
Tom Gundersen
d5eff74097
missing.h: add some IFLA_* constants
...
These were added to the kernel between 3.5 and 3.9, let's not require such
recent kernels (yet).
2014-02-19 15:50:24 +01:00
David Herrmann
7a0d4a3d16
event: fix crash on child-source state modifications
...
Setting a child-source state to anything but SD_EVENT_OFF currently does
nothing. The condition logic is flawed. Move the state update *below* the
test for the previous state.
Fixes a crash if you call:
sd_event_source_set_enabled(source, SD_EVENT_ON);
sd_event_source_unref(source);
on a child-source in its own callback.
2014-02-19 13:24:38 +01:00
Lennart Poettering
b67f562c9c
man: document $MAINPID
2014-02-19 03:27:03 +01:00
Lennart Poettering
270b085101
update TODO
2014-02-19 03:27:03 +01:00
Lennart Poettering
ac45f971a1
core: add Personality= option for units to set the personality for spawned processes
2014-02-19 03:27:03 +01:00
Zbigniew Jędrzejewski-Szmek
49a356c258
build-sys: fixups for libsystemd-daemon merge
2014-02-18 20:32:40 -05:00
Kay Sievers
be4b47cb52
build-sys: install headers with --enable-kdbus
2014-02-19 02:24:57 +01:00
Kay Sievers
0ebee88184
build-sys: merge libsystemd-daemon into libsystemd
2014-02-19 01:09:19 +01:00
Lennart Poettering
0e4061c4d5
test: add missing test units
2014-02-18 23:55:41 +01:00
Lennart Poettering
6afc95b736
nspawn: add new --personality= switch to make it easier to run 32bit containers on a 64bit host
2014-02-18 23:37:27 +01:00
Thomas Hindoe Paaboel Andersen
0bc8e31b35
delta: add bash completion
2014-02-18 22:34:59 +01:00
Tom Gundersen
9b1c2626ce
net-match: fix Driver= match
...
It should match on the driver of the parent device.
2014-02-18 22:34:26 +01:00
Tom Gundersen
11a7f22939
networkd: refactor link_add() :(
...
Don't set set **ret when returning r < 0, as matching on the errno may easily
give false positives in the future leading to null pointer dereference.
Reported-by: David Herrmann <dh.herrmann@gmail.com>
2014-02-18 22:34:26 +01:00
Lennart Poettering
3302da4667
nspawn: x86 is special with its socketcall() semantics, be permissive in the seccomp setup
2014-02-18 22:27:46 +01:00
Lennart Poettering
e9642be2cc
seccomp: add helper call to add all secondary archs to a seccomp filter
...
And make use of it where appropriate for executing services and for
nspawn.
2014-02-18 22:14:00 +01:00