Using LTTNG_HOME environment variable if exists, with fallback to HOME
[lttng-tools.git] / src / common / utils.h
index 2d39cefb96b7bfa27c12f2ee1865d294ca0bca9c..9e6fb37f007bec6f0f321e8ebb5ebe29a9034d8e 100644 (file)
 #ifndef _COMMON_UTILS_H
 #define _COMMON_UTILS_H
 
+#include <sys/types.h>
+#include <unistd.h>
+#include <stdint.h>
+
+#define KIBI_LOG2 10
+#define MEBI_LOG2 20
+#define GIBI_LOG2 30
+
 char *utils_expand_path(const char *path);
 int utils_create_pipe(int *dst);
 int utils_create_pipe_cloexec(int *dst);
@@ -30,5 +38,8 @@ int utils_create_stream_file(char *path_name, char *file_name, uint64_t size,
                uint64_t count, int uid, int gid);
 int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
                uint64_t count, int uid, int gid, int out_fd, uint64_t *new_count);
+int utils_parse_size_suffix(char *str, uint64_t *size);
+int utils_get_count_order_u32(uint32_t x);
+char *utils_get_home_dir(void);
 
 #endif /* _COMMON_UTILS_H */
This page took 0.023521 seconds and 4 git commands to generate.