summaryrefslogtreecommitdiff
path: root/src/shared
AgeCommit message (Collapse)Author
2012-12-31unit: add ConditionACPower=Lennart Poettering
2012-12-31macro: use C11 static_assert() macro for static assertionsLennart Poettering
2012-12-24util: if /sys mounted read-only we can't suspend/hibernateLennart Poettering
2012-12-24util: when determining controlling tty of a process properly handle ↵Lennart Poettering
processes without
2012-12-24logind: add support for automatic suspend/hibernate/shutdown on idleLennart Poettering
2012-12-24systemctl: don't show cgroup field for a unit if cgroup is emptyLennart Poettering
2012-12-23shared: move fdset.c from core/ to shared/ since it is used by more than the ↵Lennart Poettering
core now
2012-12-23journalctl: strip TABs and ANSI color sequences from log messages when ↵Lennart Poettering
displaying them
2012-12-22socket: support socket activation of containersLennart Poettering
2012-12-22nspawn: allow passing socket activation fds through nspawnLennart Poettering
2012-12-17socket-util: added check of return valueMichal Sekletar
2012-12-17path-util: set pointer to null after calling free()Michal Sekletar
In cases where path_strv_canonicalize() returns NULL, strv_free() is called afterwards and it will call free() on pointers which were freed already in path_strv_canonicalize()
2012-12-17licence: remove references to old FSF addressSami Kerola
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57206
2012-12-05core: add catalog entry and MESSAGE_ID for overmountingZbigniew Jędrzejewski-Szmek
2012-11-25timer: recalculate next elapse for calendar timer units when the system ↵Lennart Poettering
clock is changed
2012-11-24shared: FORMAT_TIMESTAMP_MAX -- include space for unicode weekdaysKay Sievers
$ LANG=el_GR.UTF-8 ./timedatectl Local time: Σαβ 2012-11-24 14:53:05 CET Universal time: Σαβ 2012-11-24 13:53:05 UTC RTC time: Σαβ 2012-11-24 13:53:04 Timezone: Europe/Berlin (CET, +0100) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: no Last DST change: DST ended at Κυρ 2012-10-28 02:59:59 CEST Κυρ 2012-10-28 02:00:00 CET Next DST change: DST begins (the clock jumps one hour forward) at Κυρ 2013-03-31 01:59:59 CET Κυρ 2013-03-31 03:00:00 CEST https://bugs.freedesktop.org/show_bug.cgi?id=57470
2012-11-23time-util: teach parse_timestamp to parse weekdaysLennart Poettering
2012-11-23path-util: when parsing a timestamp we don't know the timezoneLennart Poettering
2012-11-23time-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAXLennart Poettering
2012-11-23util: teach parse_timestamp() to parse results of format_timestamp_relative()Lennart Poettering
2012-11-23util: rename format_timestamp_pretty() to format_timestamp_relative() ↵Lennart Poettering
because that describes much better what it does
2012-11-23util: split off time related calls from util.[ch] into time-util.[ch]Lennart Poettering
2012-11-23timer: implement calendar time eventsLennart Poettering
2012-11-23util: drop "," between week day and date when formatting timestampsLennart Poettering
The glibc default (as shown by the command line tool "date") doesn't put a comma there, and so we shouldn't either.
2012-11-22shared: FORMAT_TIMESTAMP_MAX +1Kay Sievers
5 is for weekday+comma+space, but week days in french have 4 digits https://bugs.freedesktop.org/show_bug.cgi?id=57411
2012-11-22dbus: introduce _cleanup_dbus_error_free_Lennart Poettering
2012-11-21journal: by default do not decompress dat objects larger than 64KLennart Poettering
This introduces a new data threshold setting for sd_journal objects which controls the maximum size of objects to decompress. This is relieves the library from having to decompress full data objects even if a client program is only interested in the initial part of them. This speeds up "systemd-coredumpctl" drastically when invoked without parameters.
2012-11-20dbus-common: Add helper method to handle no-reply messagesColin Walters
[Tested in latest gnome-ostree; if accepted, I'll look at a followup patch which fixes the other dbus_connection_send(reply, ...) calls besides logind] DBus messages can have a flag NO_REPLY associated that means "I don't need a reply". This is for efficiency reasons - for one-off requests that can't return an error, etc. However, it's up to users to manually check dbus_message_get_no_reply() from a message. libdbus will happily send out a reply if you don't. Unfortunately, doing so is not just less efficient - it also triggers a security error, for complex reasons. This is something that will eventually be fixed in dbus, but it's also correct to handle it in client applications. This new helper API is slightly nicer in that you don't have to pass NULL to say you don't want a reply serial for your reply. This patch also tweaks logind to use the API - there are more areas of the code that need this treatment too.
2012-11-19shared/utils: systemd-cgls shows 'n/a' when piping outputAnders Olofsson
-1 was used to signal failure, but the type was unsigned. https://bugs.freedesktop.org/show_bug.cgi?id=56644
2012-11-16journal, shared: fix warnings during compilation on 32 bitsZbigniew Jędrzejewski-Szmek
Some filesystem magics are too big to fit in 31 bits, and are wrapped to negative. f_type is an int on 32 bits, so it is signed, and we get a warning on comparison.
2012-11-15journal: implement message catalogLennart Poettering
The message catalog can be used to attach short help texts to log lines, keyed by their MESSAGE_ID= fields. This is useful to help the administrator understand the context and cause of a message, find possible solutions and find further related documentation. Since this is keyed off MESSAGE_ID= this will only work for native journal messages. The message catalog supports i18n, and is useful to augment english language system messages with explanations in the local language. This commit only includes short explanatory messages for a few example message IDs, we'll add more complete documentation for the relevant systemd messages later on.
2012-11-15polkit: if PK is not around, consider this a permission denied errorLennart Poettering
Uninstalling PK should cleanly disable PK authorization but not result in further runtime errors.
2012-11-15systemctl: add help for --type/-tZbigniew Jędrzejewski-Szmek
The list of types and load states if lengthy, so a little reminder can be sometimes useful.
2012-11-14shared: add API for replacing @FOO@ style variables in stringsLennart Poettering
2012-11-14util: add strreplace() to replace a substring by another stringLennart Poettering
2012-11-14specifier: minor modernizationsLennart Poettering
2012-11-14polkit: fix type on comparisonLennart Poettering
2012-11-13shared/socket-util: kill gcc warning about uninitialized variableZbigniew Jędrzejewski-Szmek
The warning was invalid, but distracting.
2012-11-12util: nicer tree drawingsMichal Schmidt
Draw trees more similar to pstree/findmnt/lsblk/...
2012-11-12use the same email address everywhereKay Sievers
2012-11-11timedatectl: properly print 30 minutes DST transitionsKay Sievers
2012-11-09dbus: when verifying PK privs, bypass PK if uid=0 of clientLennart Poettering
This reduces the number of roundtrips when the client is privileged and makes the PK dep optional for root clients.
2012-11-06Revert "Implement SocketUser= and SocketGroup= for [Socket]"Dave Reisner
This was never intended to be pushed. This reverts commit aea54018a5e66a41318afb6c6be745b6aef48d9e.
2012-11-05Implement SocketUser= and SocketGroup= for [Socket]Dave Reisner
Since we already allow defining the mode of AF_UNIX sockets and FIFO, it makes sense to also allow specific user/group ownership of the socket file for restricting access.
2012-11-04shared: add is_efiboot()Kay Sievers
2012-11-02util : fallback to plain ASCII drawing if locale is not UTF-8Michal Schmidt
When printing cgroup and sysfs hierarchies, avoid using UTF-8 box drawing characters if the locale is not UTF-8. https://bugzilla.redhat.com/show_bug.cgi?id=871153
2012-11-02util: add is_locale_utf8()Michal Schmidt
journalctl and vconsole-setup both implement utf8 locale detection. Let's have a common function for it. The next patch will add another use.
2012-11-02timedatectl: show "DST active: n/a" if no DST data is availableKay Sievers
2012-11-02shared: add timer_get_dst()Kay Sievers
2012-10-30strv: cleanup error path loopsLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=858799