chiark / gitweb /
Prep v221: Update and clean up build system to sync with upstream
[elogind.git] / src / basic / time-util.c
similarity index 99%
rename from src/shared/time-util.c
rename to src/basic/time-util.c
index 12f1b193be550aa7b3962891c99ea7fe75943b7e..ecca227c74bb718cb2b1fc872200ad23b1b7b626 100644 (file)
@@ -173,9 +173,12 @@ char *format_timestamp(char *buf, size_t l, usec_t t) {
         return format_timestamp_internal(buf, l, t, false);
 }
 
+/// UNNEEDED by elogind
+#if 0
 char *format_timestamp_utc(char *buf, size_t l, usec_t t) {
         return format_timestamp_internal(buf, l, t, true);
 }
+#endif // 0
 
 static char *format_timestamp_internal_us(char *buf, size_t l, usec_t t, bool utc) {
         struct tm tm;
@@ -415,6 +418,8 @@ int dual_timestamp_deserialize(const char *value, dual_timestamp *t) {
         return 0;
 }
 
+/// UNNEEDED by elogind
+#if 0
 int parse_timestamp(const char *t, usec_t *usec) {
         static const struct {
                 const char *name;
@@ -615,6 +620,7 @@ finish:
 
         return 0;
 }
+#endif // 0
 
 int parse_sec(const char *t, usec_t *usec) {
         static const struct {
@@ -864,6 +870,8 @@ int parse_nsec(const char *t, nsec_t *nsec) {
         return 0;
 }
 
+/// UNNEEDED by elogind
+#if 0
 bool ntp_synced(void) {
         struct timex txc = {};
 
@@ -977,6 +985,7 @@ bool timezone_is_valid(const char *name) {
 
         return true;
 }
+#endif // 0
 
 clockid_t clock_boottime_or_monotonic(void) {
         static clockid_t clock = -1;