summaryrefslogtreecommitdiff
path: root/src/shared/hwclock.c
Commit message (Collapse)AuthorAge
* man: improve grammar and word formatting in numerous man pagesJason St. John2013-07-02
| | | | | | | | | | Use proper grammar, word usage, adjective hyphenation, commas, capitalization, spelling, etc. To improve readability, some run-on sentences or sentence fragments were revised. [zj: remove the space from 'file name', 'host name', and 'time zone'.]
* always unconditionally create /dev/rtc and use it internallyKay Sievers2013-04-26
| | | | | | | | | | | | | | | Partially revert 2b3c81b02fa5dd47b19558c7684e113f36a48486, which tried to avoid inconsistent rules about when and how to create the /dev/rtc symlink. Instead of conditionally or not creating the /dev/rtc link at all, now always create it with additional and more reliable udev rules. First try to find the "system rtc" with the hctosys flag, if this is not found, fall back to create the link for /dev/rtc0. Our code now never actively searches for the "system rtc" it can always use /dev/rtc.
* do not create /dev/rtc symlink, let systemd search for it if neededKay Sievers2013-04-24
| | | | | | | | | | | The export of the RTCs hctosys flag is uneccesary, the kernel takes care of the persistemt clock management itself, without any need for: CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" "Chaotic hardware platforms" without native kernel persistent clock support will find the proper RTC with the logic rtc_open() without the need for a custom symlink.
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* hwclock: use _cleanup_ to simplify functionZbigniew Jędrzejewski-Szmek2013-04-11
|
* errno is positiveZbigniew Jędrzejewski-Szmek2013-04-11
| | | | | | | | | | Make sure we compare errno against positive error codes. The ones in hwclock.c and install.c can have an impact, the rest are unlikely to be hit or in code that isn't widely used. Also check that errno > 0, to help gcc know that we are returning a negative error code.
* honor SELinux labels, when creating and writing config filesHarald Hoyer2013-02-14
| | | | | | | Also split out some fileio functions to fileio.c and provide a SELinux aware pendant in fileio-label.c see https://bugzilla.redhat.com/show_bug.cgi?id=881577
* hwclock: do not seal the kernel's time-warp call from inside the initrdKay Sievers2012-10-27
|
* hwclock: add missing OOM checkLennart Poettering2012-09-21
|
* util: define union dirent_storage and make use of it everywhereLennart Poettering2012-09-19
| | | | | | Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754
* main: when transitioning from initrd to the main system log to kmsgLennart Poettering2012-09-17
| | | | | | | | | | | | | | | When the new PID is invoked the journal socket from the initrd might still be around. Due to the default log target being journal we'd log to that initially when the new main systemd initializes even if the kernel command line included a directive to redirect systemd's logging elsewhere. With this fix we initially always log to kmsg now, if we are PID1, and only after parsing the kernel cmdline try to open the journal if that's desired. (The effective benefit of this is that SELinux performance data is now logged again to kmsg like it used to be.)
* hwclock: always set the kernel's timezoneKay Sievers2012-09-17
| | | | | | | | | | | Properly tell the kernel at bootup, and any later time zone changes, the actual system time zone. Things like the kernel's FAT filesystem driver needs the actual time zone to calculate the proper local time to use for the on-disk time stamps. https://bugzilla.redhat.com/show_bug.cgi?id=802198
* util: rename join() to strjoin()Lennart Poettering2012-07-13
| | | | This is to match strappend() and the other string related functions.
* util: split-out hwclock.[ch]Kay Sievers2012-05-08