Improve trace output path and config path
[lttng-tools.git] / ltt-sessiond / utils.c
index 936d3e1b891034321e4f79c48b0ff2b14729d72e..d099c08031abf96221ac3028f3048fe4cd6ff266 100644 (file)
 
 #include "utils.h"
 
+/*
+ *  get_home_dir
+ *
+ *  Return pointer to home directory path using the env variable HOME.
+ *  No home, NULL is returned.
+ */
+const char *get_home_dir(void)
+{
+       return ((const char *) getenv("HOME"));
+}
+
+/*
+ *  mkdir_recursive
+ *
+ *  Create recursively directory using the FULL path.
+ */
 int mkdir_recursive(const char *path, mode_t mode)
 {
     int ret;
This page took 0.031499 seconds and 4 git commands to generate.