X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=ccb5874746b713f3872bee059d6a1998af3495d7;hp=3a10447e96011e01a9079d9b23d6213af0aebd1b;hb=f895927f329180ca1e6f4426e9d3c6250ae698ba;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/src/common/time.c b/src/common/time.c index 3a10447e9..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; @@ -88,7 +84,7 @@ int time_to_iso8601_str(time_t time, char *str, size_t len) goto end; } - tm_result = localtime_r(&time, &tm_storage); + tm_result = localtime_r(&time, &tm_storage); if (!tm_result) { ret = -1; PERROR("Failed to break down timestamp to tm structure"); @@ -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;