chiark / gitweb /
shared: rename hwclock.[ch] to clock-util.[ch]
[elogind.git] / src / shared / clock-util.c
similarity index 94%
rename from src/shared/hwclock.c
rename to src/shared/clock-util.c
index 7059d9c75b8367a0cb1d3b39983d74087cc54f6d..15535732f7dd1407c65cf89f278f2cc95727fb49 100644 (file)
 #include "util.h"
 #include "log.h"
 #include "strv.h"
-#include "hwclock.h"
+#include "clock-util.h"
 #include "fileio.h"
 
-int hwclock_get_time(struct tm *tm) {
+int clock_get_time(struct tm *tm) {
         _cleanup_close_ int fd = -1;
 
         assert(tm);
@@ -64,7 +64,7 @@ int hwclock_get_time(struct tm *tm) {
         return 0;
 }
 
-int hwclock_set_time(const struct tm *tm) {
+int clock_set_time(const struct tm *tm) {
         _cleanup_close_ int fd = -1;
 
         assert(tm);
@@ -79,7 +79,7 @@ int hwclock_set_time(const struct tm *tm) {
         return 0;
 }
 
-int hwclock_is_localtime(void) {
+int clock_is_localtime(void) {
         _cleanup_fclose_ FILE *f;
 
         /*
@@ -109,7 +109,7 @@ int hwclock_is_localtime(void) {
         return 0;
 }
 
-int hwclock_set_timezone(int *min) {
+int clock_set_timezone(int *min) {
         const struct timeval *tv_null = NULL;
         struct timespec ts;
         struct tm *tm;
@@ -135,7 +135,7 @@ int hwclock_set_timezone(int *min) {
         return 0;
 }
 
-int hwclock_reset_timezone(void) {
+int clock_reset_timezone(void) {
         const struct timeval *tv_null = NULL;
         struct timezone tz;