projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fd-tracker: remove use of VLA for unsuspendable_fd APIs
[lttng-tools.git]
/
src
/
common
/
time.h
diff --git
a/src/common/time.h
b/src/common/time.h
index dc07633e968b41eb8d7e2387f78a5aa43c749ac4..8588cf554c487912875253cd81f1631529bda38a 100644
(file)
--- a/
src/common/time.h
+++ b/
src/common/time.h
@@
-22,6
+22,7
@@
#include <time.h>
#include <stdbool.h>
#include <common/macros.h>
#include <time.h>
#include <stdbool.h>
#include <common/macros.h>
+#include <common/compat/time.h>
#define MSEC_PER_SEC 1000ULL
#define NSEC_PER_SEC 1000000000ULL
#define MSEC_PER_SEC 1000ULL
#define NSEC_PER_SEC 1000000000ULL
@@
-37,6
+38,7
@@
#define USEC_PER_HOURS (USEC_PER_MINUTE * MINUTE_PER_HOUR)
#define ISO8601_STR_LEN sizeof("YYYYmmddTHHMMSS+HHMM")
#define USEC_PER_HOURS (USEC_PER_MINUTE * MINUTE_PER_HOUR)
#define ISO8601_STR_LEN sizeof("YYYYmmddTHHMMSS+HHMM")
+#define DATETIME_STR_LEN sizeof("YYYYmmdd-HHMMSS")
LTTNG_HIDDEN
bool locale_supports_utf8(void);
LTTNG_HIDDEN
bool locale_supports_utf8(void);
@@
-73,4
+75,7
@@
struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
LTTNG_HIDDEN
int time_to_iso8601_str(time_t time, char *str, size_t len);
LTTNG_HIDDEN
int time_to_iso8601_str(time_t time, char *str, size_t len);
+LTTNG_HIDDEN
+int time_to_datetime_str(time_t time, char *str, size_t len);
+
#endif /* LTTNG_TIME_H */
#endif /* LTTNG_TIME_H */
This page took
0.023731 seconds
and
4
git commands to generate.