projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin: compile lttng as C++
[lttng-tools.git]
/
src
/
common
/
time.c
diff --git
a/src/common/time.c
b/src/common/time.c
index d084a3fddbdb5c462e5246fb83b9c336c4b898e9..ccb5874746b713f3872bee059d6a1998af3495d7 100644
(file)
--- a/
src/common/time.c
+++ b/
src/common/time.c
@@
-9,23
+9,21
@@
#include <common/error.h>
#include <common/macros.h>
#include <common/error.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/error.h>
+#include <common/compat/errno.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
-#include <errno.h>
#include <pthread.h>
#include <locale.h>
#include <string.h>
static bool utf8_output_supported;
#include <pthread.h>
#include <locale.h>
#include <string.h>
static bool utf8_output_supported;
-LTTNG_HIDDEN
bool locale_supports_utf8(void)
{
return utf8_output_supported;
}
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;
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;
}
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 +
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;
int time_to_iso8601_str(time_t time, char *str, size_t len)
{
int ret = 0;
@@
-105,7
+101,6
@@
end:
return ret;
}
return ret;
}
-LTTNG_HIDDEN
int time_to_datetime_str(time_t time, char *str, size_t len)
{
int ret = 0;
int time_to_datetime_str(time_t time, char *str, size_t len)
{
int ret = 0;
This page took
0.024677 seconds
and
4
git commands to generate.