X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=ccb5874746b713f3872bee059d6a1998af3495d7;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=d084a3fddbdb5c462e5246fb83b9c336c4b898e9;hpb=5e5af4be7ee46668600e4cf72d5ac85a19d8ecd4;p=lttng-tools.git diff --git a/src/common/time.c b/src/common/time.c index d084a3fdd..ccb587474 100644 --- a/src/common/time.c +++ b/src/common/time.c @@ -9,23 +9,21 @@ #include #include #include +#include #include #include #include -#include #include #include #include static bool utf8_output_supported; -LTTNG_HIDDEN bool locale_supports_utf8(void) { return utf8_output_supported; } -LTTNG_HIDDEN int timespec_to_ms(struct timespec ts, unsigned long *ms) { unsigned long res, remain_ms; @@ -45,7 +43,6 @@ int timespec_to_ms(struct timespec ts, unsigned long *ms) return 0; } -LTTNG_HIDDEN struct timespec timespec_abs_diff(struct timespec t1, struct timespec t2) { uint64_t ts1 = (uint64_t) t1.tv_sec * (uint64_t) NSEC_PER_SEC + @@ -73,7 +70,6 @@ void __attribute__((constructor)) init_locale_utf8_support(void) } } -LTTNG_HIDDEN int time_to_iso8601_str(time_t time, char *str, size_t len) { int ret = 0; @@ -105,7 +101,6 @@ end: return ret; } -LTTNG_HIDDEN int time_to_datetime_str(time_t time, char *str, size_t len) { int ret = 0;