Systemd/src/timesync
Lennart Poettering 4f9ff96a55 conf-parser: return mtime in config_parse() and friends
This is a follow-up for 9f83091e3c.

Instead of reading the mtime off the configuration files after reading,
let's do so before reading, but with the fd we read the data from. This
is not only cleaner (as it allows us to save one stat()), but also has
the benefit that we'll detect changes that happen while we read the
files.

This also reworks unit file drop-ins to use the common code for
determining drop-in mtime, instead of reading system clock for that.
2020-06-02 19:32:20 +02:00
..
80-systemd-timesync.list timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
meson.build timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
org.freedesktop.timesync1.conf timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
org.freedesktop.timesync1.service timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
test-timesync.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
timesyncd-bus.c tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
timesyncd-bus.h timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
timesyncd-conf.c conf-parser: return mtime in config_parse() and friends 2020-06-02 19:32:20 +02:00
timesyncd-conf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd-gperf.gperf timesync: fix typo 2018-01-10 20:52:59 +09:00
timesyncd-manager.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
timesyncd-manager.h tree-wide: replace 'unsigned int' with 'unsigned' 2018-10-19 22:19:12 +02:00
timesyncd-ntp-message.h timesync: save and expose NTP responce on bus 2018-05-03 18:05:14 +09:00
timesyncd-server.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-server.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
timesyncd.conf.in timesync: make poll interval configurable 2017-11-08 01:47:38 +09:00