1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-14 15:21:37 +03:00
Commit Graph

14267 Commits

Author SHA1 Message Date
Tom Gundersen
2cc412b593 network/link: Match - filter on kernel cmdline, host and virt 2014-02-20 21:50:34 +01:00
Tom Gundersen
b77c08e06b condition: split out most of condition handling into libsystemd-shard
The parts that require linknig to libcap, libselinux and friends stays in libsystemd-core.
2014-02-20 20:14:33 +01:00
Tom Gundersen
afc50ea84e condition: refactor a bit
No functional change, just move code around a bit to make it simpler to split out
some functions.
2014-02-20 20:14:33 +01:00
Lennart Poettering
41736b25a7 python: reindent _reader.c
All files should follow our coding style, and that means 8ch indenting.
Let's correct that.
2014-02-20 19:14:52 +01:00
Lennart Poettering
8fca4e305f macro: add nice macro for disabling -Wnonnull temporarily 2014-02-20 18:47:33 +01:00
Lennart Poettering
f0f2e63bb2 macro: introduce nice macro for disabling -Wmissing-prototypes warnigs 2014-02-20 18:47:33 +01:00
Lennart Poettering
bcfce235a3 macro: introduce a nice macro for disabling -Wformat-nonliteral temporarily 2014-02-20 18:18:32 +01:00
Lennart Poettering
beb999379c update TODO 2014-02-20 18:07:01 +01:00
Lennart Poettering
7ebe131a9f util: get rid of warnings around assert_cc() macro
Suggested by Holger Schurig.
2014-02-20 18:07:01 +01:00
Daniel Mack
748db5928c journal: fix compiler warning in journal_file_append_data()
gcc (4.8.2, arm) does not understand that journal_file_append_field()
will always set 'fo' when it returns 0, so this warning is bogus.

Anyway, fix it by initialiting fo = NULL.
2014-02-20 17:24:36 +01:00
Daniel Mack
a002d44b00 journal: fix compiler warning in real_journal_next()
gcc (4.8.2, arm) does not understand that next_beyond_location() will
always set 'p' when it returns > 0. Initialize p in order to fix this.
2014-02-20 17:21:13 +01:00
Daniel Mack
c94d7fc3ce libsystemd: fix compiler warning in property_get_set_callbacks_run()
gcc (4.8.2, arm) doesn't understand that vtable_property_get_userdata()
will always set 'u' when it returns > 0. Hence, the warning is bogus,
but anyway.

  src/libsystemd/sd-bus/bus-objects.c:510:19: warning: 'u' may be used uninitialized in this function [-Wmaybe-uninitialized]

(and yes, indeed, even the reported line numbers are bogus in this case)
2014-02-20 17:18:07 +01:00
Dave Reisner
e288d6a81a readd journald.so install hooks under libsystemd.so
Inadvertently removed in add00dfd1f.
2014-02-20 09:05:59 -05:00
Daniel Mack
db57f3c6d1 core/unit: fix unit_add_target_dependencies() for units with no dependencies
For units without any dependencies, r needs to be initialized to 0.
Otherwise, the return value of unit_add_target_dependencies() is
unspecified.
2014-02-20 13:29:54 +01:00
Lennart Poettering
6300b3eca9 NEWS: fixes that probably should have been made before the 209 release 2014-02-20 03:55:22 +01:00
Lennart Poettering
24442f3b25 build-sys: missing EXTRA_DIST 2014-02-20 01:22:12 +01:00
Lennart Poettering
3d3143b44f build-sys: install compat .pc file 2014-02-20 00:54:42 +01:00
Lennart Poettering
62ae6dd4fa build-sys: add linkwarning.h to tarball 2014-02-20 00:25:37 +01:00
Lennart Poettering
27f7454c38 update TODO 2014-02-20 00:03:10 +01:00
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